James, El Jue 04 Nov 2004 20:35, James Knott escribió:
Andreas Philipp wrote:
So what exactly is the error you get when trying to mount smb shares as a user different from root? What are you trying to configure in fstab? To do an interactive mount there is no need to modify anything in /etc/fstab.
Permissions are set to 777. If fstab contains: //OS2/EDRIVE /mnt/os2/e smbfs username=xxxx,password=yyyy,rw,users,noauto 0 0
The error I get is: cannot mount on /mnt/os2/e: Operation not permitted smbmnt failed: 1
With this in fstab: //OS2/EDRIVE /mnt/os2/e smbfs credentials=/home/jknott/.smbpw,uid=jknott,gid=users,fmask=664,dmask=775 0 0
I get: mount: only root can mount //OS2/EDRIVE on /mnt/os2/e
What I still don't get is why you would put these entries into fstab; do you wish the share to be mounted at boot time? Here's some lines from the smbmnt manual page: ** DESCRIPTION smbmnt is a helper application used by the smbmount program to do the actual mounting of SMB shares. smbmnt can be installed setuid root if you want normal users to be able to mount their SMB shares. A setuid smbmnt will only allow mounts on directories owned by the user,and that the user has write permission on. ** I suppose your /mnt/os2/e mount point is owned by root, so even if permission were set to 777, only root would be able to mount the share on it. Have you tried to mount the share on a directory under your home directory? Let's say, you create /home/jknott/edrive, and then try to mount the share interactively 'smbmount //OS2/EDRIVE /home/jknott/edrive', you should be prompted for your user's password and, if you have permission on the share, it should get mounted all right. Regards, -- Andreas Philipp Noema Ltda. Bogotá, D.C. - Colombia