How can non root users mount and unmount in Linux

File systems / partitions are normally managed by root and only root would be able to mount or un-mount.

However, if you want everyone on your machine to have the same privilege for a specific mount point, this is how you can do that.

Add “user” to the mount options for the desired mount point in your /etc/fstab file. In my case “/media/music”

I changed mine from

//192.168.1.200/Music /media/music rw,noauto 0 0

to

//192.168.1.200/Music /media/music cifs user,rw,noauto 0 0

© 2008-2012 The Danesh Project
Powered by Wordpress and made by Guerrilla. Hosted at ServerFreak