08f385e20f
modified: install/openwrt.sh modified: install/pacman.sh modified: install/tree_cpy.sh modified: usr/bin/aur modified: usr/bin/brc new file: usr/bin/idea modified: usr/bin/mountcrypt new file: usr/bin/regex_gen modified: usr/etc/pam.d/system-local-login modified: usr/etc/resolv.conf modified: usr/etc/systemd/resolved.conf modified: usr/etc/systemd/system/tcpd.service modified: usr/home/.bash_aliases modified: usr/home/.bashrc
17 lines
312 B
Bash
Executable File
17 lines
312 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
groupadd $MACHINE
|
|
usermod -aG svr $SUDO_USER
|
|
chmod -R g+s $MACHINE_DIR
|
|
chown -R root $MACHINE_DIR
|
|
chgrp -R $MACHINE $MACHINE_DIR
|
|
chmod -R 771 $MACHINE_DIR/install
|
|
chmod -R 771 $BIN_DIR
|
|
chmod -R 751 $SBIN_DIR
|
|
find $MACHINE_DIR -type d -exec chmod 775 {} \;
|
|
chown root:root /etc/pam.d/*
|
|
|
|
exit 0
|
|
|
|
|