calliope-edu / CalliopEO_AstroPi

MIT License
1 stars 2 forks source link

setup.sh: Set permissions of /home/calliope to 700 #85

Closed rzbrk closed 2 years ago

rzbrk commented 3 years ago

See mail from Domenico from 2021/08/16.

rzbrk commented 3 years ago

Shall we set umask 077 in ~/.bashrc during installation?

rzbrk commented 3 years ago

To be discussed with Roland vom Biotesc to incorporate operational needs.

rzbrk commented 3 years ago

On my AstroPI-IR the files in the home directory of the newly created user calliope have the permission 700:

calliope@astropiir:~ $ ls -al
total 36
drwx------ 5 calliope calliope 4096 Aug 18 15:21 .
drwxr-xr-x 4 root     root     4096 Aug 18 15:19 ..
-rw-r--r-- 1 calliope calliope  220 Apr 18  2019 .bash_logout
-rw-r--r-- 1 calliope calliope 3523 Jan 11  2021 .bashrc
drwx------ 7 calliope calliope 4096 Aug 18 15:19 calliopEO
drwx------ 4 calliope calliope 4096 Aug 18 15:19 .local
drwx------ 3 calliope calliope 4096 Aug 18 15:19 mnt
-rw-r--r-- 1 calliope calliope  807 Apr 18  2019 .profile
-rw------- 1 calliope calliope    0 Aug 18 15:20 test.txt
-rw------- 1 calliope calliope  699 Aug 18 15:21 .viminfo
calliope@astropiir:~ $ ls -al calliopEO/
total 104
drwx------ 7 calliope calliope  4096 Aug 18 15:19 .
drwx------ 5 calliope calliope  4096 Aug 18 15:21 ..
drwx------ 2 calliope calliope  4096 Aug 18 15:19 assets
-rwx------ 1 calliope calliope 16593 Aug 18 15:19 CalliopEO.py
-rw------- 1 calliope calliope  2398 Aug 18 15:19 CHANGELOG.md
drwx------ 8 calliope calliope  4096 Aug 18 15:19 .git
-rw------- 1 calliope calliope    38 Aug 18 15:19 .gitignore
-rw------- 1 calliope calliope  1065 Aug 18 15:19 LICENSE
drwx------ 2 calliope calliope  4096 Aug 18 15:19 modules
-rw------- 1 calliope calliope 14429 Aug 18 15:19 ProgramDescription.md
-rw------- 1 calliope calliope  9136 Aug 18 15:19 README.md
-rw------- 1 calliope calliope    72 Aug 18 15:19 requirements.txt
-rwx------ 1 calliope calliope  3346 Aug 18 15:19 setup.sh
drwx------ 4 calliope calliope  4096 Aug 18 15:19 testcases
-rw------- 1 calliope calliope   406 Aug 18 15:19 testing.conf
-rwx------ 1 calliope calliope  3411 Aug 18 15:19 testing.sh
drwx------ 2 calliope calliope  4096 Aug 18 15:19 testresults
calliope@astropiir:~ $

I even created a test file with touch test.txt (see above). Also this file has the right permissions.

We can check, if this feature will still be present in the final version of the OS of AstroPi-IR and then close the issue without any changes on our software.

rzbrk commented 2 years ago

I think we can close this issue after Domenico's email from 2021-08-19:

I tested today the setup file and I can confirm about new home directory permissions, there is no need to change them.