SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi everyone,
i have this situation and i do not know where im thinking wrongly.
up until now, i have te following entry in my fstab file:
/dev/sdb1 /mnt/memstick auto noauto,owner,users,rw 0 0
so users of te groups 'users' can mount a flash device.
to keep things nice and clean i decided to add a group 'flash' who's members will have access to a flash memory. so as to restrict some members of the group 'users' to have access to the memory stick.
so i replaces the word 'users' in the fstab entry shown above with 'flash' (from te group) and i also chgrp of /dev/sdb1 to flash. i thought that would do it but it didn't.. what am i forgeting?
nass
I can't get to a box here to check this on, but the following /etc/fstab entry should work since the group option is the one to specify that group membership must be checked:
That entry in fstab isn't for the group 'users'. Notice that you can use 'user' as well. Using 'user' in fstab options means that only the smae person who mounted the device can unmount it. If yopu use 'user' then anyone can unmount it. If you want to control access to the device in fstab, try using uid= or gid= in the options.
What you decribe works when you put each user in the group that owns the device. then the owner(root) or any mamber of that group can mount unmount.
Usually for home systems you'd just use 'user' or 'users' to give users access.
If you are using a 2.4 series kernel, quit reading, but making your own links with a 2.6 series kernel will fail when the system is rebooted, because /dev is is ram based & not persistent from session to session. You need to write a new udev rule to cover your requirements, or just use "users", as gnashley has suggested.
Regards,
Bill
hi everyone,
i have this situation and i do not know where im thinking wrongly.
up until now, i have te following entry in my fstab file:
/dev/sdb1 /mnt/memstick auto noauto,owner,users,rw 0 0
so users of te groups 'users' can mount a flash device.
to keep things nice and clean i decided to add a group 'flash' who's members will have access to a flash memory. so as to restrict some members of the group 'users' to have access to the memory stick.
so i replaces the word 'users' in the fstab entry shown above with 'flash' (from te group) and i also chgrp of /dev/sdb1 to flash. i thought that would do it but it didn't.. what am i forgeting?
nass
If you are using a 2.4 series kernel, quit reading, but making your own links with a 2.6 series kernel will fail when the system is rebooted, because /dev is is ram based & not persistent from session to session. You need to write a new udev rule to cover your requirements, or just use "users", as gnashley has suggested.
Regards,
Bill
actually i am writing to say eexactly that.
while /dev/flash is owned by root flash,
/dev/sdb1 that it points to on reboot is root disk, not root flash as i set it.
which is kind of irritating since i basically lose the functionality.
ganshley where do you suggest i put the 'users' keyword ?
instead of 'group' in fstab? cause i thought the keyword in fstab that enabled groups checking is 'group' ...
Yes, the easy way is to use 'users' or 'user' instead of 'group' in the fstab mount options field.
If you put 'user' only the person who mounts the device will be able to unmount it. If you put 'users' then any user can unmount the devide, even if another user mounted it.
Links that you create to /dev files shouldn't affect the real device, because links are always rwxrwxrwx (777) anyway.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.