Re: Changing ownership & permissions of Free Agent USB drive
- From: andy <geek_show@xxxxxxxxxxxxx>
- Date: Sat, 01 Mar 2008 10:37:35 +0000
Raj Kiran Grandhi wrote:
andy wrote:Thanks Raj for the steer - that it is a fat32/ntfs and hence doesn't recognise permissions, etc., would make sense.Hello
I am attempting to change the ownership of and permissions for the contents of a USB Seagate Free Agent drive. At present, root has ownership, although everybody and their dog can rwx files:
$ ls -l /media/FreeAgent\ Drive/
total 24
drwxrwxrwx 1 root root 0 2007-11-27 20:28 BAKUPS
drwxrwxrwx 1 root root 0 2007-11-19 20:39 DVD
drwxrwxrwx 1 root root 24576 2008-02-16 15:50 MUZAK
drwxrwxrwx 1 root root 0 2007-11-04 00:04 System Volume Information
As root (actually, both attempted as root via su as well as via sudo), I have attempted:
chown andy /media/FreeAgent\ Drive/ -R
as well as
chmod -R og-rwx /media/FreeAgent\ Drive/
and
chmod -R u+rw /media/FreeAgent\ Drive/
Unfortunately, the output of ls -l /media/FreeAgent\ Drive/ remains
total 24
drwxrwxrwx 1 root root 0 2007-11-27 20:28 BAKUPS
drwxrwxrwx 1 root root 0 2007-11-19 20:39 DVD
drwxrwxrwx 1 root root 24576 2008-02-16 15:50 MUZAK
drwxrwxrwx 1 root root 0 2007-11-04 00:04 System Volume Information
This doesn't interfere with my playing the music listed under MUZAK as andy, nor adding to the files. But, it does not change the description of the permissions related to those files.
Can someone explain what's going on here please?
What is the filesystem on your usb drive? It appears to be fat32/ntfs. fat32 does not know anything about file owners/group permissions. You have to specify everything you want when you mount it. Try passing the uid=<your uid> option when mounting the drive. For the permissions you can pass the umask option. Refer to the mount manpage for more details.
Cheers
Andy
--
"If they can get you asking the wrong questions, they don't have to worry about the answers." - Thomas Pynchon, "Gravity's Rainbow"
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- Re: Changing ownership & permissions of Free Agent USB drive
- From: Raj Kiran Grandhi
- Re: Changing ownership & permissions of Free Agent USB drive
- Prev by Date: Re: Additional RAM brings Lenny to a slow-down
- Next by Date: 8139cp 0000:03:08.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
- Previous by thread: Re: Changing ownership & permissions of Free Agent USB drive
- Next by thread: Re: apt-get update on ftp.uk.debian.org
- Index(es):
Relevant Pages
|