setup/set-TMOUT-300-and-set-default-umask.patch
2023-06-08 11:21:08 +08:00

33 lines
599 B
Diff

From 6a99b637893db19b8ec8279ee51ae9887ccb2a98 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Thu, 8 Jun 2023 11:20:24 +0800
Subject: [PATCH] set TMOUT=300 and set default umask
---
bashrc | 2 ++
profile | 1 +
2 files changed, 3 insertions(+)
diff --git a/bashrc b/bashrc
index a4021d9..d7fec78 100644
--- a/bashrc
+++ b/bashrc
@@ -86,3 +86,5 @@ if [ -z "$BASHRCSOURCED" ]; then
fi
# vim:ts=4:sw=4
+
+umask 0077
diff --git a/profile b/profile
index 542add4..8f086af 100644
--- a/profile
+++ b/profile
@@ -80,3 +80,4 @@ then
. /etc/bashrc
fi
+export TMOUT=300
--
2.33.0