Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 03-24-2009, 07:54 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 20

Rep: Reputation: 0
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?
Old 03-24-2009, 11:05 PM   #2
Registered: Jan 2008
Location: San Diego, CA USA
Distribution: Debian / Ubuntu
Posts: 51

Rep: Reputation: 17
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.
Old 03-24-2009, 11:13 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,169

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
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 .
Old 03-24-2009, 11:57 PM   #4
Registered: Mar 2009
Distribution: Fedora, Slackware
Posts: 104

Rep: Reputation: 21
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

Last edited by JaksoDebr; 04-02-2009 at 05:07 AM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
change file permission external usb hdd tripled2006 Ubuntu 1 01-15-2007 03:15 PM
FC3 : how to change permission of directories where filesystems are mounted ? minnie Fedora 1 07-08-2005 11:23 AM
mounted HDD on hoary fireedo Ubuntu 1 06-06-2005 11:36 AM
cannot create symlinkoor change permission in a mounted fat32 drive Cii Linux - General 3 03-06-2005 01:44 PM
mounted but no write permission varunk123456 Red Hat 1 03-31-2004 02:54 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration