Cant read/write to second hard disk under normal user
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware: in progress, Mandrake 9.2, Libranet, Vector
Posts: 373
Rep:
Cant read/write to second hard disk under normal user
I have recently installed a second hard disk on my computer. But the problem is that I can't read or write to this second disk under a normal user account. When I mount it and open it, I get the message saying, "Access Denied".
But when I log in as root, I can read and write with no problem. This is like my second week using linux and I seriously want to fix this. I looked at fstab and mtab, but I can't understand it. This is how they looks like.
Is partition that you are having trouble with /dev/hdb1. It is vfat there is no user/group user info stored in that file system. Allow user access to it you need to force the group to users (gid=100).
Modify /etc/fstab
/dev/hdb1 /second vfat gid=100 1 1
That was amazing... the above method worked perfectly..... The problem is now solved
Good to see its now working Nukem - regards umask, think of it as a "filter" of permissions, sort of "opposite" of chmod - on Linux filesystems it can be used to set default permissions for all new files and directories created.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.