Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 8349  / 2 Years ago, mon, august 22, 2022, 4:25:06

I would like to mount an ext4 truecrypt drive with --fs-options but it doesn't work. Also I created a FAT partition and the following command is working. What is the alternative command if my partition is ext3/ext4?



sudo truecrypt --mount /media/vulturus_data/test3 /media/true  --fs-options="users,uid=115,gid=123,fmask=0113,dmask=0002" 

More From » mount

 Answers
5

Those filesystem options are available for FAT because FAT does not support file permissions. Ext2/ext3/ext4 filesystems on the other hand do support file permissions. After mounting the container on /media/true:




  • Change ownership and group membership (corresponds to uid=115,gid=123):



    sudo chown -R 115:123 /media/true

  • fmask=0113 removes the executable bit from all files and write bit from the others. This is the default, so you should not need to change it. Anyway, the command to do so is:



    sudo find /media/true -type f -exec chmod a-x,o-w {} ;

  • dmask=0002 is supposed to remove the write bit from directories for the world. This bit is usually not set. To remove it in case it is set:



    sudo find /media/true -type d -exec chmod o-w {} ;


[#40514] Tuesday, August 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
eaderitable questions
Tue, May 24, 22, 07:37, 2 Years ago
Mon, Aug 23, 21, 02:31, 3 Years ago
Thu, Mar 2, 23, 23:23, 1 Year ago
Wed, Apr 6, 22, 13:20, 2 Years ago
Tue, Dec 14, 21, 16:57, 2 Years ago
;