Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- groupadd -g 1002 felhasználó
- useradd -M -c 'Felhasználó' -g users -G felhasználó -N -u 1002 felhasználó
- passwd --stdin felhasználó <<<'ezegyjelszó'
- groupadd -g 1088 guest
- useradd -M -c 'Vendég' -g users -G guest -N -u 1088 guest
- passwd -d guest &>/dev/null
- chown -R felhasználó:users /usr/local/.home/felhasználó
- chmod 0700 /usr/local/.home/felhasználó
- chown -R guest:users /usr/local/.home/guest
- chmod 0700 /usr/local/.home/guest
- chown -R :users /usr/local/.home/zene
- mount --bind /usr/local/.home /home
- restorecon -R /home
- systemctl -q is-active chronyd || systemctl start chronyd
- if [ -x /usr/local/bin/valami ]; then
- /usr/local/bin/valami &
- fi
- exec /etc/rc.d/rc.local1
Advertisement
Add Comment
Please, Sign In to add comment