Help answer threads with 0 replies.
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 05-20-2007, 02:17 AM   #1
LQ Newbie
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
quick permissions problem


I've just formatted my external hard drive. However, I don't know how to change the permissions to user (steve). I've tried the following to no avail:

chown steve /media/disk/*

How do I do this? Be gentle, I'm new to linux.

Thanks in advance.
Old 05-20-2007, 02:36 AM   #2
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
Post RE: quick permissions problem

chown -R user:group /path/to/drive
The -R makes the command recursive so it changes all files and folders to the user:group you specify, (as long as both user and group exists!).
Old 05-20-2007, 03:43 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
What is the filesystem on the external drive. If it is fat32 or ntfs, then you need to use the "uid=" and "gid=" options to change the ownership and group of the filesystem. You can only do it on the entire partition and not individual files.
Old 05-27-2007, 01:38 AM   #4
LQ Newbie
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Apologies for the delay in responding.

I have still failed to resolve this.

linux-azov:/ # chown -R steve /media/disk/
chown: changing ownership of `/media/disk/': Operation not permitted
I've entered the above as root.

Not sure whether the following helps (fstab):
/dev/sda1            /media/disk          vfat       users,gid=users,umask=0002,utf8=true 0 0
Old 05-27-2007, 11:00 PM   #5
Registered: May 2007
Location: CO
Distribution: Solaris , Redhat , Debian
Posts: 152

Rep: Reputation: 23
Try this(as root) and see if it works -

# umount /media/disk
# mount /dev/sda1 /mnt 
# chown -Rv steve: /mnt
If that doesnt work do this and then repeat the above

# chmod 0755 /dev/sda1
Forgive me if I am wrong, I am a Unix sys admin and am still getting used to the differences in Linux ..... and am having fun doing so


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
DISCUSSION: Quick and Dirty Guide to Linux File Permissions bulliver LinuxAnswers Discussion 32 12-19-2011 10:36 PM
Just a quick question about permissions InEeDhElPlInUx Linux - General 4 04-13-2004 02:57 PM
Quick permissions question Jestrik Linux - General 3 03-27-2004 01:54 PM
quick problem Cop Linux - Newbie 4 10-26-2003 01:50 PM
Quick Samba permissions question jamespetts Linux - Networking 2 10-07-2002 05:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:28 AM.

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
Open Source Consulting | Domain Registration