-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, May 05, 2017 at 09:17:51AM +0000, Curt wrote: > On 2017-05-02, Greg Wooledge <wool...@eeg.ccf.org> wrote: > > On Tue, May 02, 2017 at 07:16:57PM +0430, Mostafa Shahverdy wrote: > >> I have a very annoying problem. I can't write to my usb drives (fat32, > >> ntfs, etc.) without root permissions. How can I fix this? > > > > Mount the file system with "-o uid=youruser" to have the files presented > > by the kernel as being "owned" by that user. > > > > > > I don't understand that advice entirely. > > Isn't there a difference between mounting the device as a regular user > and writing to the device as a regular user (which you might be > prevented from doing if the filesystem had root-only write permissions, > thus Brian's ls -l suggestion to eliminate that possibility)?
There is a difference. The "-o=foo" advice is betting on the file system being one without ownership info (i.e. a lower life form ;-) Once mounted, the operating system just "assumes" some ownership and permission info. The "user=" and "group=" options give you some say in it. The option "user" on the fstab just allows a regular user to activate a mount according to said entry (however perms & ownership of the "end result" might look like). The two things are (somewhat) orthogonal (if I understood your question correctly). cheers - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlkMRzQACgkQBcgs9XrR2kZ5LgCfVD5r7m+3e53QYAxNoUmk9aty MKIAnjCpqgVIHB8Z48BWTFD5hVpWt2Ji =eP+p -----END PGP SIGNATURE-----