Re: How to make mount command mount partions as user not only as root ?



"=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

.



Relevant Pages

  • Re: [SLE] Cannot list files under root from ssh(SOLVED)
    ... I found through the ps -aux command, there was what looked like a konq ... >>have freenx install and going into the kde gui with freenx, ... >>cannot see the files under root with Konqueror or Firefox. ... > 'mount' You want to see what is mounted. ...
    (SuSE)
  • Re: newbie cannot mount primary slave harddrive
    ... permissions to the root permissions without having to log on as root. ... are all about the same as a a dos command line. ... At this same command line prompt you can type "man mount" to see the ... I think your problem is in the fstab file. ...
    (alt.os.linux.suse)
  • RE: Machine not Booting - Continued
    ... mkraid command and the mount command in the script as you suggested (in no ... Otherwise specify the same mkraid and mount command in /etc/rc.local. ... it has no proper file system to mount. ...
    (RedHat)
  • Re: FC6 mount ntfs-3g problem.
    ... > Thats because by default only root can use the mount command. ... If it was just a permissions problem, 'mount' would give an error ...
    (Fedora)
  • Re: [SLE] Still cannot update beyond original KDE3.3--Exhausted and Depressed
    ... Open Yast, Click on Software, ... to attach the contents of the disks to the existing filesystem. ... mount point is the directory in the filesystem you will attach those ... > Like perhaps give the the exact command and where to ...
    (SuSE)