Mount Hard Drive Permission Setting
Edit /etc/fstab
, e.g.
/dev/xvdb1 /home/git/data ext4 defaults 0 0
ext4 file system does not support
uid
,gid
andumask
(which are very useful for FAT file system) options
Mount the hard drive
simple run mount -a
Change the disk owner
simply change the owner of the drive which will be remember by the file system after remount
chown -R username mount-point
You can also change the permission using
chmod
andchgrp
for owner group (useusermod
for group editing)