|
|
|
|
|
|
|
|
|
|
|
|
|
|
ユーザ追加しなおし
|
|
|
|
|
|
adduser -G staff peritan
|
|
|
|
|
パスワード
|
|
|
|
|
|
パスワード
|
|
|
|
|
|
|
|
|
|
|
|
|
sudo su
|
|
|
|
|
|
|
echo peritan ALL=NOPASSWD: ALL>>/etc/sudoers
|
|
|
cd /opt
|
|
|
|
|
|
|
grep peritan /etc/passwd>>passwdAppend
|
|
|
grep peritan /etc/shadow>>shadowAppend
|
|
|
grep peritan /etc/group>>groupAppend
|
|
|
grep peritan /etc/sudoers>>sudoersAppend
|
|
|
|
|
|
|
|
|
|
echo #!/bin/sh>/opt/userAppend.sh
|
|
|
|
echo cat /opt/passwdAppend\>\>/etc/passwd>>userAppend.sh
|
echo cat /opt/shadowAppend\>\>/etc/shadow>>userAppend.sh
|
echo cat /opt/groupAppend\>\>/etc/group>>userAppend.sh
|
echo cat /opt/sudoersAppend\>\>/etc/sudoers>>userAppend.sh
|
|
|
|
|
|
|
|
chmod 775 userAppend.sh
|
|
|
|
|
echo /opt/userAppend.sh>>bootlocal.sh
|
|
|
|
|
|
|
|
|
|
再起動しても残る
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
![IF>
|
|
|
|
|
|
|
![ENDIF]>