How do I mount a Truecrypt volume with special options?

313

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 {} \;
    
Share:
313

Related videos on Youtube

Inderjit Singh
Author by

Inderjit Singh

Updated on September 18, 2022

Comments

  • Inderjit Singh
    Inderjit Singh over 1 year

    i am trying to send 2 responces to same connection. but i am having problem sending. some times 2nd request missing .

    can anybody help how to make sure 2nd request is going correctly on same connection.

    for some reason my clent accept two requests. 1. count of message. 2. message to show.

    $valCount = str_pad(strlen($message), 4, "0", STR_PAD_LEFT);
    socket_write($socket, $valCount) or die("[" . @date('H:i:s') ."] Could not send output\n");
    socket_write($socket, $message) or die("[" . @date('H:i:s') ."] Could not send output\n");
    
    • Jon
      Jon about 12 years
      It's quite possible that your socket writes are being done fine and the problem is on the receiving code. But without any proper attempt at debugging it's just a guess.
  • Kicsi Mano
    Kicsi Mano about 12 years
    The directory is there, I created that.
  • Kicsi Mano
    Kicsi Mano about 12 years
    I tried in this way also without success