NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
using gkrellm to mount smbfs?I'm trying to setup Gkrellm to mount a smbfs share on my laptop (uses a wireless connection) but don't want to add a line in the fstab file saying any users can mount the file system. I've configured gkrellm to mount/umount with a button, but when i click the button, gkrellm pops up an error "only root can do that". How can i elevate standard users to use the mount command like root users without using sudo or adding a line to the fstab file? debian etch (current) i386 |
pmount
It looks like pmount may be what you need. It is supposed to allow users in the group plugdev to mount devices that are NOT in fstab. According to the man page, it doesn't work if there is an fstab entry.
pmount
Matt, checked the pmount man page and pmount only mounts a block device in /dev
I'm trying to mount a samba fileshare from one of my servers. I don't think pmount will work in this instance, but i appreciate your help.
Any other options available in this instance? Thanks in advance
Try the 'owner' option
According to the mount man page you might be able to specify the mount in fstab, but identify a user as the owner of the device. If I read it right, it should limit mounting rights to that user.
You may also have to specify -s to stop any noisy (but harmless) error messages.
Please post your results --- I'd be interested to hear how you get on.
--
A tidy house is the sign of a stolen computer.
defining "users" in fstab worked
after creating an entry in the /etc/fstab file and adding the "users" option, i then tested executing "mount -a" from a normal user account. This mounted the smbfs file system correctly.
ie the line in /etc/fstab
//server/sharename /local/mount/point smbfs users,noauto,credentials=/a/file/somewhere 0 0
note - all spaces are tabs and the credentials file was chowned to the normal user. The bolded line above is 1 line only.
In GKrellm, i added a Primary file system. Choose the Mount Point from the list available (GKrellm must read the fstab file as the /local/mount/point was available in the drop down list), added a label, ticked "Enable /etc/fstab mounting" and that was it.
A bar came up in GKrellm which i could toggle to mount and umount. Hope that makes sense for all.