https://bugzilla.novell.com/show_bug.cgi?id=244670 Summary: Unable to mount smb shares as unprivilieged user Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: 178155@glocalnet.net QAContact: qa@suse.de Recently bought me a new Network Attached Storage (NAS) device, LaCie Ethernet Disk Mini, which system I think is Linux based. The NAS device uses smb for filesharing and I maybe it also uses something called CIFS UNIX extension.. I can access the shares in Konqueror with smb://devicename or smb://ip-adress with rw access as user "meriksson". In the NAS I have given user "meriksson" rw rights but disabled the "guest" account. Then I added this line in my fstab: //192.168.1.21/musik /home/meriksson/server/musik cifs uid=1000,gid=100,rw,iocharset=utf8,user=meriksson,password=mypassword When I mount as root with "mount //192.168.1.21/musik" the share is mounted into my filesystem at the specified mountpoint alright but all files and folders are owned by "root" instead of "meriksson". The "uid=1000" and "gid=100" (user 1000 is "meriksson") parameters are ignored. The mount point as you can see is in my home folder and is created by user "meriksson" with full rw access. According to "man mount.cifs" pages this happens when the server support CIFS UNIX extension (I have no idea what that is) which is why I think my NAS uses this CIFS UNIX extensions. I have tried to alter the line in my fstab using "setuids" and "nosetuids" but always with the same result, all files and folder are owned by root after mounting. After hours of searching I eventually found this page: http://www.linuxfromscratch.org/blfs/view/svn/server/samba3.html There is a section called "Mounting Shares by Unprivileged User" which says that if it is desired for unpriviliged user to directly mount (and unmount) SMB and CIFS shares, the smbmnt, smbumount, mount.cifs and umount.cifs commands must be setuid root. To do this one should run the following commands as root: chmod -v 4755 /usr/bin/smb{mnt,umount} /usr/sbin/{,u}mount.cifs So I went on and did so, I had to change the second row to /sbin/{,u}mount.cifs though, and all file attributes were successfully changed. After setuid to root I tried to mount the share as user "meriksson" with "mount //192.168.1.21/musik" but unfortunately the output is an error: "mount: endast root kan montera //192.168.1.21/musik på /home/meriksson/server/musik" (translated from Swedish it says that only root is allowed to mount...) I desperately need to be able to mount my smb shares with full rw access for user "meriksson" but this seems to be impossible. Since I have found many other users on various forums that have similar problems with this I think this is a bug but maybe I am doing something wrong? I am a big fan of Linux after using openSUSE for over a year now but some things just are to complicated for an average end-user compared with MS Windows. I.eg it is so easy in Windows explorer to right click the shared folder and select "map as network drive".... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.