Commit 42350819 authored by Michael Baudino's avatar Michael Baudino Committed by OyyoDams

fix(system): mount FAT32/ExFAT/NTFS devices with 755/644 rights

This commit explicitely mounts FAT32, ExFAT and NTFS external devices
with 755 as directory rights and 644 as file rights.

For NTFS and ExFAT, the default before that was 777 (for both files and
directories), which was an issue for dropbear (it's insecure, so
dropbear wouldn't use `~/.ssh/authorized_keys` with 777 rights, thus
disabling key-based SSH login).

More accurately, they use `umask=0` as default. See their man pages.

For FAT32, it was already the default, but the more explicit the better
(and the more futureproof: who knows if default won't change someday).
parent 257ace67
......@@ -30,6 +30,7 @@ This project adheres to [Semantic Versioning](
- Support archive: switch to Temp File Hosting
- Add a CI stage for linting
- Update Theodore core: add emulation of Thomson MO6 and Olivetti Prodest PC128
- Fix key-based SSH login with NTFS and ExFAT external drives
## [6.0] - DragonBlaze
- Change name from 5.0 to 6.0 DragonBlaze
......@@ -31,6 +31,10 @@ fi
# vfat and ntfs
# Set correct access rights (755 for directories, 644 for files)
# default is 777 for NTFS and ExFAT otherwise (umask=0)
# change options
case "${FSTYPE}" in
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment