1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-22 01:41:34 -05:00

Fix whonix scripts

This commit is contained in:
Tommy 2024-11-11 22:45:24 -07:00 committed by GitHub
parent b99636a3d7
commit 3afee9f2cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -eu -o pipefail set -eu
unpriv(){ unpriv(){
sudo -u nobody "${@}" sudo -u nobody "${@}"
@ -29,7 +29,7 @@ download() {
umask 077 umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc sudo sed -i 's/umask 022/umask 077/g' /etc/bash.bashrc
# Make home directory private # Make home directory private
sudo chmod 700 /home/* sudo chmod 700 /home/*

View File

@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations under # License for the specific language governing permissions and limitations under
# the License. # the License.
set -eu -o pipefail set -eu
unpriv(){ unpriv(){
sudo -u nobody "${@}" sudo -u nobody "${@}"
@ -29,7 +29,7 @@ download() {
umask 077 umask 077
sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs sudo sed -i 's/^UMASK.*/UMASK 077/g' /etc/login.defs
sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs sudo sed -i 's/^HOME_MODE/#HOME_MODE/g' /etc/login.defs
sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc sudo sed -i 's/umask 022/umask 077/g' /etc/bash.bashrc
# Make home directory private # Make home directory private
sudo chmod 700 /home/* sudo chmod 700 /home/*