cryptsetup-veracrypt.sh: set secure enough umask

This commit is contained in:
minoplhy 2024-12-12 12:34:20 +07:00
parent 135ab85010
commit 4d0d5bb918
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -64,7 +64,8 @@ mount_parameters_prompt() {
local group_uid=$(id -g "$user" 2>/dev/null)
if [ $? -eq 0 ] && [ -n "$user_uid" ] && [ -n "$group_uid" ]; then
MOUNT_PARAMETERS+="gid=$user_uid,uid=$group_uid"
# mount with owner,group and umask is owner r/w/e only
MOUNT_PARAMETERS+="gid=$user_uid,uid=$group_uid,umask=077"
else
printf "User id for %s not found!\n" $user
mount_parameters_prompt