Trying to put a mount point in fstab
Seth Hasani
sepheebear at gmail.com
Fri Dec 9 10:48:13 UTC 2005
<quote who="Luca Manganelli" on Fri, Dec 09, 2005 at 02:46:05AM EST>
> Hi, I tried to put this in fstab:
>
> //katia/D /mnt/katia smbfs rw,users,noauto,rw 1 1
>
> but I'm not able to mount as normal user:
>
> trap at acer:/mnt$ mount katia
> Password:
> smbmnt must be installed suid root for direct user mounts (1000,1000)
> smbmnt failed: 1
>
> what's wrong?
The problem is that in order to mount smb volumes, the mount command runs a
the command /usr/bin/smbmount which in turn runs the command
/usr/bin/smbmnt. The command smbmnt needs root permissions in order to run.
To get mount to run with root permissions, use sudo:
sudo mount /mnt/katia
You may want to add the volume in /etc/fstab this way:
//katia/D /mnt/katia smbfs rw,users,noauto,rw,uid=1000 1 1
The uid=1000 makes everything in that volume owned by the user with the uid
1000 instead of root.
If you want the volume to show up on the desktop and in the Gnome Places
menu, set the mountpoint to /media/katia in /etc/fstab. That way you will be
able to unmount from nautilus simply by right-clicking the volume and
selecting "Unmount".
Seth
More information about the ubuntu-users
mailing list