LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   could user (not is root) mount ? (https://www.linuxquestions.org/questions/linux-general-1/could-user-not-is-root-mount-393058/)

anhvuvnn 12-15-2005 04:08 AM

could user (not is root) mount ?
 
i have user permission in a Linux system , can i mount any device if i not a root ? pls help me !!!!

reddazz 12-15-2005 04:18 AM

Usually only root is allowed to mount devices, but also the setup of your /etc/fstab may enable users to mount devices.

geeman2.0 12-15-2005 09:29 AM

Alternatively you could configure sudo to give your user the ability to run the mount command.

Then stick an
Code:

alias mount="sudo mount"
in your .bashrc file and away you go.

nadroj 12-15-2005 11:28 AM

read the 'user' and/or 'users' options in 'man mount'

inescapeableus 12-15-2005 06:06 PM

The method in which I have used is the "chmod u+s" to both the /usr/bin/mount and /usr/bin/umount (this may change depending on what distribution you are using). I know many will call this unsafe to allow all users to mount devices but I feel if you have a locked down system this will be safe enough.

bye 12-15-2005 07:58 PM

set "sudo" configuration ,you can have some permission like root's.

anhvuvnn 12-18-2005 07:50 PM

thanks for all ur supporting !!!!


All times are GMT -5. The time now is 04:28 AM.