Re: How to make mount command mount partions as user not only as root ?
- From: Henrik Carlqvist <Henrik.Carlqvist@xxxxxxxxxxxx>
- Date: Wed, 14 May 2008 20:34:55 +0200
"=SERGE=" <serge_mtu@xxxxxxxxxx> wrote:
I'd be grateful if you'd explain me howto get mount
command to mount partions as user not only as root (w/o fstab)
If you for some reason do not want to edit fstab you can instead configure
sudo to allow ordinary users run the mount command with root privileges.
Use visudo to add a line something like this:
myuser ALL=(ALL) NOPASSWD: /sbin/mount -t vfat /dev/hda4 /mnt/hda4
Or, if you want the user to be able to fool around as he/she wishes with
mount:
myuser ALL=(ALL) NOPASSWD: /sbin/mount
Before doing any of the above you should consider the damages a user could
cause with mount.
regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc3(at)poolhem.se Examples of addresses which go to spammers:
root@localhost postmaster@localhost
.
- References:
- Prev by Date: Re: How to make mount command mount partions as user not only as root ?
- Next by Date: Re: Disk noise in audio
- Previous by thread: Re: How to make mount command mount partions as user not only as root ?
- Index(es):
Relevant Pages
|