mounting in linux the way users had full access to it

Seems simple enough, however I decided to create note for that.

For example, /etc/fstab has:

/dev/disk/by-id/scsi-SATA_Hitachi_HUA7230_MK0371ZZZZZZZZZ-part1 /mnt/3tb ext3 user 0 0

So, any user can mount it. But you must permit for mounted system to have permission. Lets see listing:

username@somehost:/mnt/3tb$ ls -alh
total 24K
drwxrwxr-x 3 username root 4.0K Feb 14 12:28 .
drwxr-xr-x 9 root root 4.0K Dec 27 2011 ..
drwx—— 2 root root 16K Feb 14 12:28 lost+found

The . directory (not mountpoint directy itself) should be given chmod 775 . and chown username .  for having correct permission rules.

 

 

 

This entry was posted in Administration, Linux/Unix. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *