Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am trying a normal user to mount a usb on linux box, I have given sudo permission to the normal user for mount, umount and modprobe.
Everything works as expected the normal user is able to mount the device but when i try to copy some file to the usb it says permission denied because the mount directory has permission 755 with owner and group "root".
The thing is the directory on which you are mounting the usb drive does not have write permissions for normal user. You will need to give permissions to the normal user to write into the directory.
Like if you do this:
sudo mount /dev/sdb1 /mnt/usb
Then /mnt/usb directory should have write permissions for the normal user. Keep in mind that you are just mounting the drive as root. All the other subsequent commands are run as a normal user.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.