When I type mount <device> <folder> I get message "mount: only root can do that", how so? if mount has -rwsr-xr-x. permissions?
Asked
Active
Viewed 1,024 times
0
Rami Chasygov
- 113
- 6
-
2This question was already answered here: https://unix.stackexchange.com/questions/65039/why-does-mount-require-root-privileges – Marin N. Mar 19 '19 at 15:38
1 Answers
1
If you want to mount as Normal user kindly make below entry in /etc/sudoers file Then you will able to mount
edit
/etc/sudoersfile as root usevisudo -f /etc/sudoersMention below entry in file
Suppose if you want to mount only paritcular partition then use below command
username ALL=(ALL:ALL) /bin/mount partition /directorySuppose if you want some directory also use below command
username ALL=(ALL:ALL) /bin/mountWhile mounting use
sudocommand infront ofmount
Archemar
- 31,554
Praveen Kumar BS
- 5,211