I'm running Mandrake 9.0, and when I'm logged in as root I can access
a samba share with the following fstab entry:
//wallace/web /mnt/web smbfs
fmask=0777,dmask=0777,user,username=root,password= 0 0
The /bin/mount command has read/write access to my particular user,
and the /usr/bin/smbmount does too. I can't get "mount /mnt/web" to
work as any user but root! Where am I going wrong?
Craig
Try removing "username-root" from the fstab entry.
JW
Thanks for your tip! I think I've just sorted the problem myself, I've
adjusted the owner of the problem directories from 'root' to 'craig'.
I also removed some of the extra options from fstab too - it now looks
like this:
//wallace/web /mnt/web smbfs user,defaults,password= 0 0
//wallace/shared /mnt/shared smbfs user,defaults,password= 0 0
Now - how do I go about making those samba shares locally available
(and mountable etc.) to all users on my client machine?
Craig
add umask=000 will make it read/write for all users.
you have user in the options line, that should make sure that all users can
mount and unmount it.
/Esben
The share is already read/write for 'root' and 'craig', regardless of
who mounted the share. I think this option is unnecessary in my setup.
> you have user in the options line, that should make sure that all users can
> mount and unmount it.
The problem is that it doesn't! I had to chown the local mount point
to craig, which is the non-root user. When craig owns it (/mnt/shared
that is), obviously root can mount/umount the drive, but I'm not sure
that other non-root users could. How do I make this share
mountable/umountable by everyone without mucking about with chown? Can
I make a group own a directory, then add everyone to the group?
> /Esben
Thanks
Craig
man mount; man fstab
Use the "user" or "users" option to allow non-root users to mount a
drive. (with "users", any user can umount the drive; with "user" it
can only be umounted by the user who mounted it).
--
Here I am, fifty-eight, and I still don't know what I want to be when
I grow up.
-- Peter Drucker
the OP; the replies
He already has that.