[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ownership of pluggable devices.



 Hi.

On Thu, 5 Sep 2013 11:19:25 -0700
peasthope@shaw.ca wrote:

> /dev/KingstonUSB  /home/peter/MY   ext2  defaults,noauto,user  0       0

This line is the reason.

ext2 filesystem stores information about file/directory permissions
inside itself, and root of this filesystem (/home/peter/MY) is owned by
root (uid=0 user).

user=peter mount option allow this ordinary user to unmount filesystem,
but has nothing in common with filesystem permissions.

No amount of tinkering with mount options or device permissions will
change filesystem permissions, you'll need to use chown(1) and chmod(1)
for this.

vfat filesystem (you use it for /home/peter/mylo) does not support
file/directory permissions, so mount option user=peter also allows said
user to do anything with filesystem contents.

In short, invoke (after mounting the filesystem):

chown -R peter /home/peter/MY

it'll solve you problem.

Reco


Reply to: