Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I managed to setup an encrypted partition that's mounted on boot using dm-crypt/LUKS.

The relevant entry from my /etc/fstab:

/dev/mapper/st_crypt     /media/st     ext4     defaults     0     2

The partition is mounted at boot, and I can write to it as root just fine, but I have no idea how to make it writable by a normal user (i.e the users group). Any suggestions?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

If the filesystem on the device were FAT or NTFS, you could use the uid, gid, and umask options to set permissions for the entire partition. Since it's ext4, however, the permissions are stored for individual files and directories (FAT and NTFS don't have this feature).

If you just want to change the user and group for all the files and directories on the partition, you could do something like this:

chown -R user:group /media/st

The -R (recursive) option tells chown to apply changes to all files and directories contained within the specified directory.

share|improve this answer
Thank you. The following commands (on the mounted /media/st) did the trick: # chown -R root:users /media/st && chmod -R 775 /media/st – Bill Jul 18 '11 at 0:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.