X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fprofile.d%2Fenvironment.sh;h=95dce05679534846aad55c42eff9b722136822d5;hb=eb9b839bb5a91c60cc4f6eb9d7e38ffbf73f0e90;hp=bc816738355aba0f3a7a290ed853b106cbd6e2f3;hpb=8c9f3c9c69a1f76d8ffba1343fc0ab308fb4661a;p=distro-setup diff --git a/filesystem/etc/profile.d/environment.sh b/filesystem/etc/profile.d/environment.sh index bc81673..95dce05 100644 --- a/filesystem/etc/profile.d/environment.sh +++ b/filesystem/etc/profile.d/environment.sh @@ -60,8 +60,12 @@ fi # every user in a same group, so if you copy files there with exact # perms, that is probably not what you want. I don't use a system like # that. I don't care much either way, but the ubuntu one seems a bit -# more user friendly, and copying files between them is a pita with -# different umasks. -if test "$(id -u)" -ge 1000; then - umask 002 -fi +# more user friendly, and copying files between them is a annoying with +# different umasks. However, it also makes it so if you create a file as +# a regular user then move it to become a system file, it's got slightly +# wrong permissions, and sometimes thing break. So, this outweighs the +# other things, stick with 022 umask always. +umask 022 +# this is how we could test for non-system user + +#if test "$(id -u)" -ge 1000; then : fi