- default permission change
> check permission
cd /data
ls -alh
> change permission (this will change all the prmission)
(be carefull)
: sudo find [PATH] -type [d|f] -exec chmod 755 {} \;
: change all sub directory with perm. 755 == rwxr-xr-x
find . -type d -exec chmod -R 755 {} \;
find . -type f -exec chmod -R 644 {} \;
755 -> -rwxr-xr-x ; directory default
644 -> -rw-r--r-- ; file default
> mount permisiion
sudo chown (First_Account).(First_Account) /data
; /media is ubuntu linux default auto mount directory
sudo chown (First_Account).(First_Account) /media
- fstab option
> assign user
UUID=123.. /media/mnt_point ntfs defaults 0 0
> Add to it the umask, uid and gid masks like this, be sureto change uid, gid
UUID=123.. /media/mnt_point ntfs defaults,umask=007,uid=1000,gid=1000 0 0
No comments:
Post a Comment