LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I change the permission of a mounted HDD? (http://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-change-the-permission-of-a-mounted-hdd-714190/)

Hardcor3 03-24-2009 07:54 PM

How do I change the permission of a mounted HDD?
 
I am attempting to create a directory on a USB HDD I recently mounted.

However, only root can access this drive. I've checked the permissions, and I need to know how to open access. How do I change the permissions?

jeff_k 03-24-2009 11:05 PM

as root, create a directory. Then,
chown -R username directoryname
will change the user ownership of the directory.
chgrp -R groupname directoryname
You can change the write privileges to allow anyone to write to it by
chmod 777 directoryname
There are lots of tutorials on chmod that will provide details on how to use it.
Cheers

John VV 03-24-2009 11:13 PM

what distro are you using - the tag on this is debian is that what you are running ?
the chown command might not do anything IF it is being mounted as r/w for root only and read only for a normal user
that is the most likely if it is auto mounted
if you mounted it in "fstab" then that will need changing .

JaksoDebr 03-24-2009 11:57 PM

Try to mount the device as a regular user with kwikdisk, then it should be writeable to that user (if mounted at all). Recent distro's do an excellent job on auto-mounting USB devices - I wonder why that isn't working on your Linux box.

Linux Archive


All times are GMT -5. The time now is 11:39 AM.