How do I allow users to use the mount command to mount and umount
partitions across a few linux systems ?
Any help is appreciated.
How do I allow users to use the mount command to mount and umount
partitions across a few linux systems ?
Any help is appreciated.
Put them in /etc/fstab with options 'user,noauto'.Quote:>How do I allow users to use the mount command to mount and umount
>partitions across a few linux systems ?
- Mjr, sivari
I speak for me, myself and I only
: How do I allow users to use the mount command to mount and umount
: partitions across a few linux systems ?
In your /etc/fstab file, you add the option "user" to the filesystems you want the users
to mount.
Note that the user option add "noexec, nosuid, nodev" unless overriden.
--
Christophe Dupre Universite de Montreal
Montreal, Qc, Canada
"Nous ne sommes pas libres de ne pas etre libres, nous sommes obliges de
l'etre" - Fernando Savater
-- Geek Code 2.1 --
GCS d-- H+ s:++ g+ !p au-* a19 w+ v+ C++(+++) UIL++>+++ P+>++ L++
3- E---- N++ K W- M- V-- Y+ t++ 5++ !j R+ G- tv b++
D+ e+ u** h->++ f+ r++ n---(----) y+
#include <disclaimer.h>
: How do I allow users to use the mount command to mount and umount
: partitions across a few linux systems ?
Install 'sudo' and edit /etc/sudoers with 'visudo' in this way:
User 'rhoenie' then can do a 'sudo mount /dev/hda9 /mnt -t msdos' by onlyQuote:> rhohost:~ # cat /etc/sudoers
> # sudoers file.
> # Cmnd alias specification
> Cmnd_Alias MISC=/bin/rm,/bin/cat,/bin/mount,/bin/umount
> # User specification
> root ALL=ALL
> rhoenie ALL=MISC
--
Find my homepage on /\ www.franken.de \/
As my mother said: "Don't eat *yellow* snow!"
just add the option "user" in your /etc/fstab for the partitionQuote:> How do I allow users to use the mount command to mount and umount
> partitions across a few linux systems ?
--
Cedric LE GOATER
------------------------------------------------------------------
Civil Aviation TAHITI, French Polynesia
It is extremely easy to allow a user to mount/unmount drives in Linux.
All you have to do is add the user option in /etc/fstab.
For example, I allow users to mount and unmount the cdrom drive. Here
is my entry from /etc/fstab:
/dev/hdc /cdrom iso9660 ro,user,exec,async,noauto 1 1
Any user on my system can type 'mount /cdrom' or 'umount /cdrom' and
have it work. If you want more precise controll, then you will need
to use some other method. But if you just wany any user to be able
to mount/umount cd's and floppys, the /etc/fstab will do the trick.
Dan
#--------------------------------#
# Dan Niles Signatures #
#--------------------------------#
1. New user: making more space available under root ?
2. Sound with compaq Armada 7710MT
3. Making vfat mounts accessible to users other than root.
5. Making seleted user root user
6. SoundCard Screeched and Died
7. Changing others passwords, as non-root user
8. Print to another UNIX server
9. Making the Linux kernel do the right thing on vfat and others
10. making Sparcs available to NT Users
11. Making FAT32 Partitions Available to Normal Users
12. Help with kppd - making it available to all users
13. Root is mounted -- how how you mount root to another drive?