remove root user password, add debian user to sudo group
This commit is contained in:
parent
f7fa7a2779
commit
791b68714b
2 changed files with 6 additions and 3 deletions
|
@ -130,13 +130,16 @@ message "set x-terminal-emulator to lxterminal"
|
||||||
$CHROOTCMD /usr/bin/update-alternatives --set x-terminal-emulator /usr/bin/lxterminal
|
$CHROOTCMD /usr/bin/update-alternatives --set x-terminal-emulator /usr/bin/lxterminal
|
||||||
|
|
||||||
### set root password
|
### set root password
|
||||||
message "set root password to 'debian'"
|
#message "set root password to 'debian'"
|
||||||
echo -e "debian\ndebian" | $CHROOTCMD /usr/bin/passwd root
|
#echo -e "debian\ndebian" | $CHROOTCMD /usr/bin/passwd root
|
||||||
|
|
||||||
### add debian user
|
### add debian user
|
||||||
message "create user debian, password 'debian'"
|
message "create user debian, password 'debian'"
|
||||||
echo -e "debian\ndebian\nDebian\n\n\n\n\y\n" | $CHROOTCMD /usr/sbin/adduser debian
|
echo -e "debian\ndebian\nDebian\n\n\n\n\y\n" | $CHROOTCMD /usr/sbin/adduser debian
|
||||||
|
|
||||||
|
message "add user debian to group sudo"
|
||||||
|
$CHROOTCMD /usr/sbin/usermod -a -G sudo debian
|
||||||
|
|
||||||
message "clear /tmp"
|
message "clear /tmp"
|
||||||
$CHROOTCMD /usr/bin/rm -Rf /tmp/* || error
|
$CHROOTCMD /usr/bin/rm -Rf /tmp/* || error
|
||||||
|
|
||||||
|
|
|
@ -180,7 +180,7 @@ do
|
||||||
$CHROOTCMD /usr/sbin/adduser $NEWUSER || error
|
$CHROOTCMD /usr/sbin/adduser $NEWUSER || error
|
||||||
|
|
||||||
message "adding $NEWUSER to sudo group"
|
message "adding $NEWUSER to sudo group"
|
||||||
$CHROOTCMD /usr/sbin/usermod -G sudo $NEWUSER || error
|
$CHROOTCMD /usr/sbin/usermod -a -G sudo $NEWUSER || error
|
||||||
$CHROOTCMD /usr/bin/ln -s -f /usr/share/nanodesk/pixmaps/nanodesk-installed.xpm /usr/share/nanodesk/pixmaps/nanodesk.xpm || error
|
$CHROOTCMD /usr/bin/ln -s -f /usr/share/nanodesk/pixmaps/nanodesk-installed.xpm /usr/share/nanodesk/pixmaps/nanodesk.xpm || error
|
||||||
$CHROOTCMD /usr/bin/ln -s -f /usr/share/nanodesk/pixmaps/nanodesk-bw-installed.xpm /usr/share/nanodesk/pixmaps/nanodesk-bw.xpm || error
|
$CHROOTCMD /usr/bin/ln -s -f /usr/share/nanodesk/pixmaps/nanodesk-bw-installed.xpm /usr/share/nanodesk/pixmaps/nanodesk-bw.xpm || error
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue