Mount cifs as user

Hi,
I'm trying to mount cifs as normal user using mount.cifs via fstab
Here is my fstab entry:
//server/zawart    /home/zawart/media    cifs    credentials=/etc/conf.d
/zawart.cifs,uid=1000,forceuid,gid=100,rw,perm=0600,noexec,nosuid,user,iocharset=utf8,directio,noauto    0    0
Here is what I get when I type mount ~/media as user zawart with uid 1000.
This mount.cifs program has been built with the ability to run as a setuid root program disabled.
So I read the man 8 mount.cifs and there is a note
'This command may be used only by root, unless installed setuid, in which case the noeexec and nosuid mount flags are enabled.
I set it chmod a+s /sbin/mount.cifs and now it still doesn't mount anything but shows different message:
This mount.cifs program has been built with the ability to run as a setuid root program disabled.
mount.cifs has not been well audited for security holes. Therefore the Samba team does not recommend installing it as a setuid root program.
Mounting it as root works but not as normal user, if you could help please leave a post here
Last edited by zawart (2010-06-04 16:13:35)

this is a security restriction with mount commands, so that only root can mount volumes. by default mount.cifs does not come with setuid enabled, you can however compile it yourself from sources and enable setuid for it,

Similar Messages

  • Mounting CIFS on MAC with large file support

    Dear All,
    We are having issues copying large files ( > 3.5 GB) from MAC to a CIFS Share (smb mounted on MAC) whereby the copy fails if files are larger than 3.5 GB in size and hence I was wondering if there is any special way to mount CIFS Shares (special option in the mount_smbfs command perhaps ) to support large file transfer?
    Currently we mount the share using the command below
    mount_smbfs //user@server/<share> /destinationdir_onMAC

    If you haven't already, I would suggest trying an evaluation of DAVE from Thursby Software. The eval is free, fully functional, and supported.
    DAVE is able to handle large file transfer without interruption or data loss when connecting to WIndows shared folders. If it turns out that it doesn't work as well as you like, you can easily remove it with the uninstaller.
    (And yes, I work for Thursby, and have supported DAVE since 1998)

  • Mount error: ...not superuser and mount.cifs not installed SUID

    I'm trying to automount Samba shares but get this everytime I try to mount the partition:
    mount error: permission denied or not superuser and mount.cifs not installed SUID
    I have this entry in the fstab:
    //192.168.2.1/Capsule /media/capsule cifs auto,noserverino,username=xxx,password=xxx,workgroup=WORKGROUP,iocharset=utf8,file_mode=0777,dir_mode=0777,suid,users 0 0
    I tried different options (suid,users or without them) same results.
    I also tried to chown like this:
    chmod u+s mount.cifs
    But still no luck
    Need help please.

    It seems that mount.cifs will only let you mount at directory that you are the owner of.  I think this may be changeable with the UID option but I have not figured it out.

  • [SOLVED] mount.cifs failing to mount after update to 3.8.x

    When trying to mount a CIFS share in Arch with kernel 3.8.3-2-ARCH, I get this:
    mount error(22): Invalid argument
    dmesg shows this:
    FS-Cache: Loaded
    FS-Cache: Netfs 'cifs' registered for caching
    Key type cifs.spnego registered
    Key type cifs.idmap registered
    For clarity, I'm running this command (and have tried many others):
    sudo mount.cifs //desktop/mydata /mnt/mydata -o user=me
    Also, I am able to browse this share properly with smbclient, and I'm also able to mount it in distributions using older kernels.
    I tested this on Ubuntu 13.04 as well, and the same problem happens there (also has kernel 3.8.x, so it seems likely that this is a kernel issue). From what I understand, portions of the mount.cifs client code were moved into the kernel recently, and the argument parser was overhauled at the same time (I found similar bug reports for Fedora, Gentoo, etc). Any ideas?
    SOLVED:
    The fix is to add "sec=ntlm" to the -o flag:
    sudo mount.cifs //desktop/mydata /mnt/mydata -o user=me,sec=ntlm
    Last edited by willroberts (2013-03-22 03:32:46)

    While the "Permission denied" error seems completely different from an "Invalid argument" error, adding sec=ntlm to my -o flag fixed my issue as well.
    For the record, I did search for my error message via Google, and got this:
    https://www.google.com/search?q=site%3A … today&tbm=
    No results for my "invalid argument" problem, but maybe that thread hasn't been indexed by Google yet. I'll try the built-in search next time. Most sites have notoriously awful built-in search, so I didn't even try.

  • Mount.cifs does nothing

    When I run, as root:
    mount -t cifs //storage01.stevens.edu/public /media/storage01/public/ -o username=myuser workgroup=campus
    I get a password prompt. When I enter my password and press enter mount does nothing. It just hangs.
    Stranger yet, if I specify a password as an option I still get the password prompt.
    Any ideas?
    (I really want to get Mathematica 7 off my school's server!)
    Thanks

    One thing I noticed is that options following the -o flag should be comma separated rather than space separated.
    And man mount.cifs says to set the domain (workgroup) of the user by using domain=xxx.
    So perhaps:
    mount -t cifs //storage01.stevens.edu/public /media/storage01/public/ -o username=myuser,domain=campus
    Bob
    Last edited by Hrod beraht (2009-01-29 21:05:08)

  • Auto mount CIFS

    I know that there are many post and solutions regarding how to auto mount CIFS shares.... but for some reason I cannot get any of them to work.
    Here is what I know.
    1) I used to use fstab.  But not fstab requires root access to mount CIFS Shares
    2) I have tried smbnetfs as described here: [url= https://wiki.archlinux.org/index.php/sa … c_mounting ] Samba .  This results in extremely slow browsing to the network share and my credentials being denied.  It is possible that I have not set up the ~/.smb/smbnetfs.auth file correctly.  I also get the message:
    WARNING: Unkown libsmbclient version: 4.1.6
    SMBNetFS may not work as expected.
    3) I have tried autofs Autofs with no luck.
    4) I would be willing to mount from the terminal or a script file.  However, when I mount with
    sudo mount -t cifs //networkstorage/01_media  /home/user/Network/01_media -o username=xxxx,password=xxxxx
    I do not get rear/write privileges.
    5) I know the CIFS share is set up correctly.  Because if I brows to the share using thunar I can mount the location (with password and username) and get full read write access.
    Can anyone suggest what is the best method for mounting.  So that I can begin trying to fiqure out how to make it work for my system.  Or if I could get some advice on what I am doing wrong in the terminal so that I could get R/W privileges.
    Thanks!

    You tried the fstab, but you didn't specify what youactually put in the fstab.  There is an option which should enable you to mount the cifs filesystem as a normal user... it is the same option as any other filesystem.  Have a look at the mount man page, as it has the information you are looking for.
    I don't know what smbnetfs is or how one would use that, but from a quick gander at the package info it appears to be a fuse filesystem.  You also didn't give even a hint of what happened when you tried autofs, or in what way you failed.
    I think what you might really be looking for is an automounting daemon though.  I'm not sure how they work with network shares that require a password, but you might want to have a look.  This would be how the DEs handle automounting.  In particular, there is udev{,2} that seems to be the most common solution.

  • How to share an autofs mounted drive between users?

    Hi all,
    I've spent a frustrating (albeit informative) couple of days trying to share my ITunes library between two users on the same MacBook Pro. I've managed to share the iTunes library files themselves by placing the iTune.xml in the /Users/Shared folder and creating aliases in each user's /Users/username/Music folder. However, it's getting the iTunes library to recognise the remote media location thats the problem. All the iTunes media files are on a Synology DiskStation NAS which I am trying to mount in such a way that it can be seen the same way - regardless of which user is logged in.
    Firstly, I tried mounting the DiskStation/itunes folder and placing a link to the mount in each user's Login Items, but that never seems to give me a persistent mount.
    Secondly, I tried creating an /etc/auto_afp file to specify the mount location and using the /etc/auto_master file to mount the Diskstation/itunes folder to /Users/Shared/itunes.  This works great - but only for the first user to log in. When I look at the permissions for the mounted share that this creates I see that it is owned by 'User1'. When User2 logs in they cant access the share due to a lack of permissions, so when they start up the shared iTunes it complains that it cant see any of the media files!
    Does anyone know  a way to create a mount using autofs that can be mounted by multiple users and give all of them the permission to read/write to it?

    Niel's instructions don't cover you 100%.  You want to keep things on a different drive and there won't be a "shared" folder there. That's only on your main drive.  You also have to migrate media and/or your library to a different drive using a special process or you will end up breaking all your music links.
    You need to clearly state what you want to share.  You can share just media or you can share your whole library structure.  Sharing only media is safest but if you share a common media pool you will all have to keep each other appraised of additions (and deletions, because those too will affect everybody) from the pool.  You have to be pretty trusting and coordinated on this.  Alternatively you can make it so others can copy your media but you will each have your own copy of the file so if somebody else wants to change the name on a track it doesn't do it to the copy you use too.  Of course this takes up the most space but is the safest.  Which migration procedure to do will depend upon your answers to this section.
    Finally, I hope you have a backup plan implemented on this.  Nobody will be happy when that external drive fails and it all disappears.

  • Trying to resolve ntlmv errros mounting CIFS network shares via fstab

    Kernel: 3.4.2-2
    WM: Openbox
    About 6 months or so ago, which was after about a year on my current install with no issue, I began getting an ntlmv error when auto mounting samba shares at
    boot.  Everything still worked but I continued getting an error message.
    My fstab entry at that time looked like this:
    //<LAN_IP>/<share name>/ /mnt/Serverbox cifs credential=/path/to/file,file_mode=0777,dir_mode=0777 0 0
    The error I recieved looked like this:
    CIFS VFS: default security mechanism requested. The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.3
    So I did what research I could on the error, found the "sec" option and discovered that adding the "sec=ntlmv2" option to my above noted fstab entry got
    rid of the error message and everything still worked perfectly; that is until this weekend.
    After upgrading both machines this weekend I noticed a new boot time error message and saw that my shares were no longer being mounted.
    relevant boot log:
    Mounting Network Filesystems [BUSY] mount error(22): Invalid argument
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    relevant everything log:
    CIFS VFS: bad security option: ntlmv2
    /var/log/pacman from the the weekend's upgrade:
    [2012-06-16 13:03] Running 'pacman -Syu'
    [2012-06-16 13:03] synchronizing package lists
    [2012-06-16 13:03] starting full system upgrade
    [2012-06-16 13:10] removed dbus-python (1.0.0-1)
    [2012-06-16 13:10] upgraded linux-api-headers (3.3.2-1 -> 3.3.8-1)
    [2012-06-16 13:10] Generating locales...
    [2012-06-16 13:10] en_US.UTF-8... done
    [2012-06-16 13:10] en_US.ISO-8859-1... done
    [2012-06-16 13:10] Generation complete.
    [2012-06-16 13:10] upgraded glibc (2.15-10 -> 2.15-11)
    [2012-06-16 13:10] upgraded bison (2.5-3 -> 2.5.1-1)
    [2012-06-16 13:10] upgraded libpng (1.5.10-1 -> 1.5.11-1)
    [2012-06-16 13:10] upgraded cairo (1.12.2-1 -> 1.12.2-2)
    [2012-06-16 13:10] upgraded libwbclient (3.6.5-2 -> 3.6.5-3)
    [2012-06-16 13:10] upgraded cifs-utils (5.4-1 -> 5.5-1)
    [2012-06-16 13:10] upgraded sqlite (3.7.12.1-1 -> 3.7.13-1)
    [2012-06-16 13:10] upgraded colord (0.1.21-1 -> 0.1.21-2)
    [2012-06-16 13:10] installed pambase (20120602-1)
    [2012-06-16 13:10] upgraded pam (1.1.5-3 -> 1.1.5-4)
    [2012-06-16 13:10] upgraded libcups (1.5.3-4 -> 1.5.3-5)
    [2012-06-16 13:10] upgraded cups (1.5.3-4 -> 1.5.3-5)
    [2012-06-16 13:10] installed python-dbus-common (1.1.0-2)
    [2012-06-16 13:10] installed python2-dbus (1.1.0-2)
    [2012-06-16 13:10] upgraded dconf (0.12.1-1 -> 0.12.1-2)
    [2012-06-16 13:10] upgraded desktop-file-utils (0.19-1 -> 0.20-1)
    [2012-06-16 13:10] upgraded firefox (13.0-2 -> 13.0.1-1)
    [2012-06-16 13:10] upgraded freetype2 (2.4.9-2 -> 2.4.10-1)
    [2012-06-16 13:10] upgraded initscripts (2012.05.1-3 -> 2012.06.1-1)
    [2012-06-16 13:10] upgraded jre7-openjdk-headless (7.u4_2.2-1 -> 7.u5_2.2.1-1)
    [2012-06-16 13:10] upgraded jre7-openjdk (7.u4_2.2-1 -> 7.u5_2.2.1-1)
    [2012-06-16 13:10] upgraded jdk7-openjdk (7.u4_2.2-1 -> 7.u5_2.2.1-1)
    [2012-06-16 13:10] upgraded kdelibs (4.8.4-1 -> 4.8.4-2)
    [2012-06-16 13:10] upgraded libdrm (2.4.33-1 -> 2.4.35-1)
    [2012-06-16 13:10] upgraded libglapi (8.0.3-2 -> 8.0.3-3)
    [2012-06-16 13:10] upgraded liblrdf (0.4.0-9 -> 0.5.0-1)
    [2012-06-16 13:10] upgraded libmysqlclient (5.5.24-1 -> 5.5.25-1)
    [2012-06-16 13:10] installed khrplatform-devel (8.0.3-3)
    [2012-06-16 13:10] installed libegl (8.0.3-3)
    [2012-06-16 13:10] upgraded nvidia-utils (295.53-1 -> 295.59-1)
    [2012-06-16 13:10] upgraded libva (1.0.15-1 -> 1.1.0-1)
    [2012-06-16 13:10] upgraded mkinitcpio (0.9.1-1 -> 0.9.2-2)
    [2012-06-16 13:10] >>> Updating module dependencies. Please wait ...
    [2012-06-16 13:10] >>> Generating initial ramdisk, using mkinitcpio. Please wait...
    [2012-06-16 13:10] ==> Building image from preset: 'default'
    [2012-06-16 13:10] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
    [2012-06-16 13:10] ==> Starting build: 3.4.2-2-ARCH
    [2012-06-16 13:10] -> Running build hook: [base]
    [2012-06-16 13:10] -> Running build hook: [udev]
    [2012-06-16 13:10] -> Running build hook: [autodetect]
    [2012-06-16 13:10] -> Running build hook: [pata]
    [2012-06-16 13:10] -> Running build hook: [scsi]
    [2012-06-16 13:10] -> Running build hook: [sata]
    [2012-06-16 13:10] -> Running build hook: [filesystems]
    [2012-06-16 13:10] -> Running build hook: [usbinput]
    [2012-06-16 13:10] -> Running build hook: [fsck]
    [2012-06-16 13:10] ==> Generating module dependencies
    [2012-06-16 13:10] ==> Creating xz initcpio image: /boot/initramfs-linux.img
    [2012-06-16 13:10] ==> Image generation successful
    [2012-06-16 13:10] ==> Building image from preset: 'fallback'
    [2012-06-16 13:10] -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
    [2012-06-16 13:10] ==> Starting build: 3.4.2-2-ARCH
    [2012-06-16 13:10] -> Running build hook: [base]
    [2012-06-16 13:10] -> Running build hook: [udev]
    [2012-06-16 13:10] -> Running build hook: [pata]
    [2012-06-16 13:10] -> Running build hook: [scsi]
    [2012-06-16 13:10] -> Running build hook: [sata]
    [2012-06-16 13:10] -> Running build hook: [filesystems]
    [2012-06-16 13:10] -> Running build hook: [usbinput]
    [2012-06-16 13:10] -> Running build hook: [fsck]
    [2012-06-16 13:10] ==> Generating module dependencies
    [2012-06-16 13:10] ==> Creating xz initcpio image: /boot/initramfs-linux-fallback.img
    [2012-06-16 13:11] ==> Image generation successful
    [2012-06-16 13:11] upgraded linux (3.3.8-1 -> 3.4.2-2)
    [2012-06-16 13:11] upgraded lirc-utils (1:0.9.0-16 -> 1:0.9.0-18)
    [2012-06-16 13:11] upgraded mesa (8.0.3-2 -> 8.0.3-3)
    [2012-06-16 13:11] upgraded mysql-clients (5.5.24-1 -> 5.5.25-1)
    [2012-06-16 13:11] upgraded mysql (5.5.24-1 -> 5.5.25-1)
    [2012-06-16 13:11] upgraded nvidia (295.53-1 -> 295.59-1)
    [2012-06-16 13:11] upgraded opencl-nvidia (295.53-1 -> 295.59-1)
    [2012-06-16 13:11] upgraded pango (1.30.0-1 -> 1.30.1-1)
    [2012-06-16 13:11] upgraded pcmanfm (0.9.10-1 -> 0.9.10-2)
    [2012-06-16 13:11] upgraded psmisc (22.16-1 -> 22.17-1)
    [2012-06-16 13:11] upgraded smbclient (3.6.5-2 -> 3.6.5-3)
    [2012-06-16 13:11] upgraded thunderbird (13.0-1 -> 13.0.1-1)
    [2012-06-16 13:11] upgraded udisks2 (1.94.0-1 -> 1.94.0-2)
    [2012-06-16 13:11] upgraded unrar (4.2.3-1 -> 4.2.4-1)
    [2012-06-16 13:11] upgraded virtualbox-archlinux-modules (4.1.16-1 -> 4.1.16-2)
    [2012-06-16 13:11] In order to use the new version, reload all virtualbox modules manually.
    [2012-06-16 13:11] upgraded virtualbox-modules (4.1.16-1 -> 4.1.16-2)
    [2012-06-16 13:11] upgraded xine-ui (0.99.6-5 -> 0.99.7-1)
    [2012-06-16 13:11] Running 'pacman -Syy'
    [2012-06-16 13:11] synchronizing package lists
    [2012-06-16 13:12] Running 'pacman -Syu'
    [2012-06-16 13:12] synchronizing package lists
    [2012-06-16 13:12] starting full system upgrade
    [2012-06-16 13:13] upgraded lib32-freetype2 (2.4.9-1 -> 2.4.10-1)
    [2012-06-16 13:13] upgraded lib32-gnutls (3.0.19-1 -> 3.0.20-1)
    [2012-06-16 13:13] upgraded lib32-krb5 (1.10.1-2 -> 1.10.2-1)
    [2012-06-16 13:13] upgraded lib32-libpng (1.5.10-2 -> 1.5.11-1)
    [2012-06-16 13:13] upgraded lib32-libx11 (1.4.99.902-1 -> 1.5.0-1)
    [2012-06-16 13:13] upgraded lib32-nvidia-utils (295.53-1 -> 295.59-1)
    [2012-06-16 13:13] upgraded lib32-sqlite3 (3.7.11-1 -> 3.7.13-1)
    [2012-06-16 13:13] upgraded lib32-util-linux (2.21.1-1 -> 2.21.2-1)
    [2012-06-16 13:13] upgraded lib32-xcb-util (0.3.8-1 -> 0.3.9-1)
    [2012-06-16 13:13] upgraded wine (1.5.5-1 -> 1.5.6-1)
    Currently returning to the old fstab entry once again gives the initial error code about the security mechanism being upgraded in kernal release x.x (it always seemed to change with each kernel change) though the shares seem to mount just fine. I've looked through the wiki, man pages on die.net and googled everything I can think of and I find a lot pages mentioning ntlmv errors with no solutions, many telling me that ntlmv and ntlmv2 are mount options, but nothing that gives me any indication on why I might be getting this error or how to go about looking for a solution.
    I've looked through the pacman logs on both my desktop and my file server that I'm connecting to in an effort to determine what might have changed and I found that:
    the smbclient had been upgraded on both machines so I tried downgrading back to version 3.6.5-2 but there was no change when rebooting.
    I also found cifs-utils had been upgraded on the file server.  So I downgraded that as well to the previous version (5.4-1), rebooted both machines and I'm still getting the same invalid arguement error.
    I've now gone back and upgraded to the most recent versions of the downgraded packages on each machine but I'm at a loss as to what my next steps should be.  Where do I go from here to track this down and determine if this is a bug or configuration error.  Is there a cleaner way of mounting these shares that I should be using instead of fstab?
    Thank you.

    I had the same issue. After upgrading kernel to 3.4.5 today the cifs share mounted with original fstab settings. I believe it was caused by this bug:
    kernel changelog wrote:    The double delimiter check that allows a comma in the password parsing code is
        unconditional. We set "tmp_end" to the end of the string and we continue to
        check for double delimiter. In the case where the password doesn't contain a
        comma we end up setting tmp_end to NULL and eventually setting "options" to
        "end". This results in the premature termination of the options string and hence
        the values of UNCip and UNC are being set to NULL. This results in mount failure
        with "Connecting to DFS root not implemented yet" error.

  • Change MOT in purchase order using CIF Inbound user exit

    Hello APO Experts,
    Objective is to change start date of purchase order ( date at source location) in APO based on some date in R3.
    Planning to bring R3 date using CIF Outboud user exit( CIFPUR01)  in R3 and then further requirement is to a) calculate lead time in inbound user exit ( APOCF006) of purchase order in APO   b) compare it with lead time of all available Means of Transport in that particular TLane  and select  one MOT say XX which matches that lead time c) Next part is to change existing MOT in the Purchase order and replace it with the new XX MOT.
    For part c....I am wondering how can we change existing MOT in purchase order and replace it with a new one.Can it be achieved by the user exit APOCF006 in APO or something else is required.
    Will appreciate your quick reply on this issue.
    Thanks
    Best Regards

    Hi Nilesh
    We have a similar requirement. I know its way long for you to remember but i would appreciate if you could share what did you do to achieve this.  
    Thanks
    Abhishek Rai

  • Mount.cifs(8) on Solaris 10 8/07?

    I have Solaris 10 8/07 installed on my workstation, and would like to mount a directory shared from my Windows machine. "apropos cifs" shows mount.cifs(8), and there is a man page, but the binary is no-where to be found. "find / -name \*cifs\*" did not return anything useful, and mount(1M) does not seem to accept "-F cifs". A quick search on Sunsolve does not turn up much.
    Any ideas?
    Thanks,
    -Andrew

    Yea, the one over on Opensolaris probably isn't a suitable replacement.
    http://docs.sun.com/app/docs/doc/816-5166/6mbb1kps6?a=expand
    only lists the following:
    # mount_hsfs(1M) � mount hsfs file systems
    # mount_nfs(1M) � mount remote NFS resources
    # mount_pcfs(1M) � mount pcfs file systems
    # mount_tmpfs(1M) � mount tmpfs file systems
    # mount_udfs(1M) � mount a udfs file system
    # mount_ufs(1M) � mount ufs file systems
    You might try recompiling Samba yourself from source and see it that fixes the issue.
    alan

  • Failed to mount database "General Users". Error: An Active Manager operation failed

    Failed to mount database "General Users". Error: An Active Manager operation failed. Error: The database action failed. Error: Database 'General Users' on server 'EX02' cannot be mounted due to a previous error: At '12/3/2014
    3:52:17 PM' the Exchange store database 'General Users' copy on this server appears to be inconsistent with the active database copy or is corrupted. For more details about the failure, consult the Event log on the server for other storage and "ExchangeStoreDb"
    events. A successful failover restored service. If you have addressed the underlying problem, or if you have decided to attempt to mount the database despite this error, the mount operation may be attempted by using the '-Force' parameter of the Mount-Database
    cmdlet. [Database: General Users, Server: EX02.domain.com]
    Md. Ramin Hossain

    Hi,
    From your description, it is recommended to suspend the failed database copy at first using the cmdlet below.
    Suspend-MailboxDatabaseCopy -Identity "xxx"
    And then reseed the database with a new copy using Update-MailboxDatabaseCopy -Identity "xxx" -DeleteExistingFiles cmdlet.
    What's more, here is a helpful thread for your reference.
    Update-MailboxDatabaseCopy
    http://technet.microsoft.com/en-us/library/dd335201(v=exchg.150).aspx
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • [SOLVED] How to make pendrive be available to mount by nonroot user?

    Hello,
    So I'm 2 days old arch linux user. I've managed to install everything I wanted so fat without much problem (basic tools, xmonad), so far I like it. It's fun.
    Since arch doesn't automatically mounts pendrives like I'm used to in Ubuntu so I decided to be able to mount as normal user and added:
    /dev/sdb /media/pendrive vfat defaults,user 0 1
    Everything worked fine until I installed dosfstools (so as to have mkfs.vfat). After that my system wouldn't start without pendrive in USB slot. (Probably because dosfsck couldn't check it). So I tried changing that fstab line to:
    /dev/sdb /media/pendrive vfat rw,suid,dev,exec,noauto,user,async 0 1
    (Same as defaults but with noauto instead auto).
    It didn't work. So I have commented the fail entry. Is there any solution to my problem (mounting as non-root user)?
    Last edited by gregorias (2011-09-09 17:56:58)

    This is what I have in my fstab:
    $ grep TOMLAD /etc/fstab
    /dev/disk/by-label/TOMLAD /media/TOMLAD auto rw,user,noauto,async 0 0
    The mount point has the following permissions:
    $ ls -l /media/ | grep TOMLAD
    drwxrwx--- 2 root storage 4.0K May 25 19:56 TOMLAD/
    That is, it is owned by root, but anyone in the group 'storage' has rwx access. Any user in the storage group can now just type:
    $ mount /media/TOMLAD
    Simple. I actually have a whole bunch of mount points so I can mount any external disks whenever.
    Auto means that it will auto mount the device during boot. If the OS doesn't find it then it won't boot because there must be a problem. Remember, this was invented for servers were the storage doesn't just disappear.
    Also, it's a good idea to give your pendrive a name so that you can refer to it by name instead of /dev/sdb since this changes as you plug in more devices.
    Last edited by BaconPie (2011-09-08 17:49:22)

  • CIFS Kernel Module Needed for A7600-F. Can't mount CIFS Shares.

    Does anyone have, or could compile a CIFS Kernel for the A10 (A7600-F) please.
    I am trying to mount CIFS shares on my NAS, nut don't have the cifs.ko file required.
    Help would be greatly appreciated.
    Thanks.
    Model Number: Levono A7600-F
    Android Version 4.4.2
    Kernel Version: 3.4.67
    Build Number: A7600F_A442_000_022_140829_ROW
    The tablet was rooted using Kingo Root.

    Hi Gmarkall,
    You really seem to know what you're doing.
    I need the same module files for my A10-70 (A7600-F).
    Are you able to complie these please?
    Lenovo make the source code available here
    http://support.lenovo.com/gb/en/products/tablets/a​-series/a10-70-tablet?TabName=Downloads
    I've tried to do this myself, but can't figure it out.
    Can you help me please?
    Thanks
    Moderator comment: This post and its replies below were pulled out of an old thread about a different model and merged here. Subjects here and below edited to match. Was: Re: CIFS Kernel Module? - can't mount CIFS share on IdeaPad A2109

  • Mounting cifs via fstab?

    so i have 3 shares on my windows server. i can access them from my arch box fine. but the problem is, although i have them setup in my fstab, they don't seem to mount on boot. i have to run mount -a after i'm logged in
    any way to fix this?
    here's teh lines i have in fstab, is there maybe something missing?
    //srv-data/share /home/network/share cifs users,auto,credentials=/etc/samba/credentials,noexec,noperm 0 0
    //srv-data/stuff /home/network/stuff cifs users,auto,credentials=/etc/samba/credentials,noexec,noperm 0 0
    //srv-data/users/urmom /home/network/urmom cifs users,auto,credentials=/etc/samba/credentials,noexec,noperm 0 0
    i was thinking maybe there's something i could add to teh end of my rc.conf, but i wouldn't know what to add to force it to mount them?

    ok, done. i'll see if it works next time i reboot.......which may not be for a while if i can help it

  • Mount CIFS filesystem permissions

    Hi , i have a very strange issue. 3 servers with OEL 5.6 installed; 2 for OFM forms &report the last for OBIEE all 11g.
    Need to mount 2 cifs file systems provided by a windows share in read-write.
    The first 2 servers are mounting the shares but none except root can write on them (755), same shares mounted on OBIEE servers are mounted writable for all users (777). I do not remember to have done anything to obtain this. What can i serach for ?
    Thanks.

    Hi, first of all thanks for your answer i'll read your doc. But the situation in quite different, i have to mount the same file system from 3 dirrerent server, when i mount the share form server 1 and 2 i have the mount point and all descending folders owned by user root with 755 permission, when i mount the same share from server number 3 i have the mount point owned by root but with 777 permission and i have done nothing different between those servers.

Maybe you are looking for

  • Insert ITAB INDEX SY-TABIX Problem

    Hi Experts, I have a problem in my report. Please look into the code. loop at li_basez980.    read table i_z980 with key spmon = l_spmon                               matnr = li_basez980-matnr                               kunnr = li_basez980-kunnr  

  • Online self-paced courses accessible?

    I'm not sure if this is the right place to ask this question, but I couldn't find anywhere else seemingly more appropriate. I am seriously considering purchasing Adobe's online self-paced courses, Adobe Flash CS3 levels 1 and 2. However, I am deaf so

  • Anyway to disable Smart Dialing and add Edit before dial in phone dialer

    Is there any way to disable Smart Dialing in OS 10.2, my old BB with OS 7 can set the country code to "null" The feature is annoying as in Greater China, we have have 1 sim card with 4 nnumber for HK, China, Taiwan and Macau all with different countr

  • Is it possible to 'reset/clean' your main user account?

    For various reasons I'd like to 'reset' my original user account. Basically keep all my apps but wipe my settings clean and ect. Is this possible? If so how?

  • Good tutorials for Automator

    Hi there, I was wondering if any of the Automator community could point me in the direction of some good tutorials.. I have a couple of tasks that I want to automate, though I think they require some Apple script at some point too. 1) I run a localho