From ee3879d4e8277daac70b5deadefbf0b9deb44278 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 11 May 2024 23:33:51 -0700 Subject: [PATCH] Add notes on weird umask Signed-off-by: Tommy --- fedora/edge.sh | 7 ++++++- fedora/fedora-gnome.sh | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fedora/edge.sh b/fedora/edge.sh index bebcf76..67c20a0 100644 --- a/fedora/edge.sh +++ b/fedora/edge.sh @@ -14,6 +14,10 @@ # License for the specific language governing permissions and limitations under # the License. +# Note: Qubes does something that makes the umask for root stay at 022. Need to debug. The umask commands are unnecessary for now. +umask 022 + +# Install Edge echo '[microsoft-edge] name=microsoft-edge baseurl=https://packages.microsoft.com/yumrepos/edge/ @@ -28,7 +32,6 @@ curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/TommyTran73 curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/TommyTran732/Microsoft-Edge-Policies/main/Linux/recommended.json | sudo tee /etc/opt/edge/policies/managed/recommended.json # Work around for Edge audio bug - sudo dnf install -y pulseaudio-utils echo '[Unit] @@ -48,3 +51,5 @@ echo 'enable pactl.service' | sudo tee /etc/systemd/user-preset/10-pactl.preset # For some uncomprehensible reason, manually enabling pipewire-pulse.service will not work for Edge audio. # We are using preset as `/rw/home/user` is broken: https://forum.qubes-os.org/t/how-does-rw-home-user-directory-work/15602 + +umask 077 \ No newline at end of file diff --git a/fedora/fedora-gnome.sh b/fedora/fedora-gnome.sh index e90d149..b03c7f0 100644 --- a/fedora/fedora-gnome.sh +++ b/fedora/fedora-gnome.sh @@ -23,6 +23,7 @@ sudo systemctl mask debug-shell.service sudo systemctl mask kdump.service # Setting umask to 077 +# Note: Qubes does something here that makes the umask for root stay at 022. Need to debug. umask 077 sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc echo 'umask 077' | sudo tee -a /etc/bashrc