vendredi 26 décembre 2014

files saves to ntfs drive adhere to umask, ext4 does not.


I have 2 storage drives, 1 is ntfs and the other is ext4.



  • Both mounted in /media as Storage_1 and Storage_2

  • I've run chmod -R user:user /media/Storage_*

  • I've tried putting umask=022 in /etc/bash.bashrc and ~/.bashrc


  • My fstab looks like this:


    #Entry for /dev/sdc2 : UUID=F88275C4827587C0 /media/Storage_1 ntfs-3g defaults,umask=022,uid=1000,gid=1000 0 0


    #Entry for /dev/sdb1 UUID=b4ef7aaa-97e8-4bdb-bba4-382469b23749 /media/Storage_2 ext4 defaults 0 2




When I save files to my ntfs drive they adhere to the umask variable (when I download a picture it's given -rwxr-xr-x) but when I save files to my ext4 drive they don't (it's given -rw-r-----). How do I get my ext4 drive to automatically save files with the same permissions as my ntfs, or will I have to format it to ntfs?



Aucun commentaire:

Enregistrer un commentaire