Re: USB stick permissions



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Felix Rawlings wrote:
I got a Lexar USB stick working fine on my Slackware 10.2 box. That is,
fine in the sense that, thanks to udev, immediately after I plug the stick
in I can start writing to and reading from it. There is a little source
of irritation though.

The ownership of every file that I copy to the stick gets changed to
root.usbstick, where usbstick is a group that I defined. Since I am a
member of that group, I can copy files to the stick - but their ownership
gets changed. When copying directories, this always elicits an error
message, presumably because the cp code is trying to preserve the
ownership to no avail.

Is there a way around this?

Nope.

Remember, on the usbstick, there are no such things as file permission
bits or user and group ids, because VFAT does not support those unixish
properties. Any permission bits or ownership ids shown to you are
fictions generated by the linux vfs layer that translates Unixish file
I/O into access to MSDOS filesystem data. Those characteristics that
don't fit in the VFAT fs are left behind in the virtual file system.

[snip]


- --

Lew Pitcher, IT Specialist, Corporate Technology Solutions,
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEPAHkagVFX4UWr64RAo+HAJsHY3XIlrYQ2uDmQg7v19/aVzQeVQCdGcsA
wNJAG83RWhNFcMLhxQANa6k=
=OS3K
-----END PGP SIGNATURE-----
.



Relevant Pages

  • Re: Sudo from scripts
    ... 'chown' allows changing ownership with out regard as to who change is being ... then change ownership and group to root, would this not be a security risk. ... Comment: Using GnuPG with Red Hat - http://enigmail.mozdev.org ...
    (Fedora)
  • Re: USB stick permissions
    ... The ownership of every file that I copy to the stick gets changed to ... bits or user and group ids, because VFAT does not support those unixish ... generated by the linux vfs layer that translates Unixish file I/O into ... the VFAT fs are left behind in the virtual file system. ...
    (comp.os.linux.misc)