Re: Changing ownership & permissions of Free Agent USB drive



Raj Kiran Grandhi wrote:
andy wrote:
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.
Thanks Raj for the steer - that it is a fat32/ntfs and hence doesn't recognise permissions, etc., would make sense.

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



Relevant Pages

  • Re: Excellent news.. Malware for OS X!
    ... It stems from what the processes ownership and rights are. ... The Permissions can get a bit sticky on the system side. ... If you'll note that some files ownerships are 'root' 'wheel' and then ...
    (comp.sys.mac.advocacy)
  • permissions changed in tar
    ... which should unpack the path tree with all the ownerships and ... permissions exactly as they were in the source tree (if I understand ... Problem is that if I unpack as root then everything in the unpack ... --same-owner try extracting files with the same ownership as exists in ...
    (alt.os.linux)
  • Re: [opensuse] command line question
    ... can't do something but root can, the problem is usually one of permissions. ... Absent recompilation, VLC does not ... No one has as yet explained what security issues could possibly exist playing a local source DVD, .ts, .mpeg, .mp3 or the like outside a Windows desktop environment. ...
    (SuSE)
  • Re: Changing ownership & permissions of Free Agent USB drive
    ... I am attempting to change the ownership of and permissions for the contents of a USB Seagate Free Agent drive. ... As root, I have attempted: ... This doesn't interfere with my playing the music listed under MUZAK as andy, ...
    (Debian-User)
  • Re: [RFC] FUSE permission modell (Was: fuse review bits)
    ... >> root is denied all access. ... and the kernel checks the permission. ... The userspace can't enforce the permissions. ...
    (Linux-Kernel)