tazlito rev 93
Remove obsolet addhacker
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 05 20:00:37 2009 +0100 (2009-03-05) |
parents | 99ede412a318 |
children | a2da441d750f |
files | doc/tazlito.html tazlito |
line diff
1.1 --- a/doc/tazlito.html Wed Feb 25 23:29:58 2009 +0100 1.2 +++ b/doc/tazlito.html Thu Mar 05 20:00:37 2009 +0100 1.3 @@ -214,16 +214,6 @@ 1.4 <pre> 1.5 # tazlito clean-distro 1.6 </pre> 1.7 -<h3><font color="#6c0023">addhacker</font></h3> 1.8 -<p> 1.9 -La commande 'addhacker' permet d'ajouter l'utilisateur Hacker à la distribution, 1.10 -cela permet d'avoir un compte utilisateur sans mot de passe. A noter que cette 1.11 -commande effectue un changement de permissions sur tous les fichiers contenus 1.12 -dans <code>/home/hacker</code> : 1.13 -</p> 1.14 -<pre> 1.15 - # tazlito addhacker 1.16 -</pre> 1.17 <h3><font color="#6c0023">check-distro</font></h3> 1.18 <p> 1.19 Cette commande permet simplement de vérifier si les fichiers non installés par
2.1 --- a/tazlito Wed Feb 25 23:29:58 2009 +0100 2.2 +++ b/tazlito Thu Mar 05 20:00:37 2009 +0100 2.3 @@ -87,7 +87,6 @@ 2.4 extract-distro Extract an ISO to a directory and rebuild LiveCD tree. 2.5 gen-distro Generated a Live distro and ISO from a list of packages. 2.6 clean-distro Remove all files generated by gen-distro. 2.7 - addhacker Add Linux User Hacker to the current distro. 2.8 check-distro Help to check if distro is ready to release. 2.9 burn-iso Burn ISO image to a cdrom using Wodim.\n" 2.10 } 2.11 @@ -739,7 +738,7 @@ 2.12 # 2.13 check_root 2.14 if [ -d $ROOTFS ] ; then 2.15 - echo "A rootfs exist in : $DISTRO" 2.16 + echo -e "\nA rootfs exist in : $DISTRO" 2.17 echo -e "Please clean the distro tree or change directory path.\n" 2.18 exit 0 2.19 fi 2.20 @@ -954,55 +953,6 @@ 2.21 echo "================================================================================" 2.22 echo "" 2.23 ;; 2.24 - addhacker) 2.25 - # Without /etc/passwd... 2.26 - # 2.27 - check_root 2.28 - echo "" 2.29 - echo -e "\033[1mAdduser hacker to :\033[0m $ROOTFS" 2.30 - echo "================================================================================" 2.31 - if [ ! -d "$ROOTFS/etc" ] ; then 2.32 - echo -e "\nUnable to find : $ROOTFS/etc" 2.33 - echo -e "Users and passwords config files will not be found.\n" 2.34 - exit 0 2.35 - fi 2.36 - # Go for echoing on configuration files if any hacker was found. 2.37 - # 2.38 - if ! grep -q hacker $root/etc/passwd; then 2.39 - echo -n "Configuring $ROOTFS/etc..." 2.40 - echo 'hacker:x:500:500:Linux User,,,:/home/hacker:/bin/ash' >> $ROOTFS/etc/passwd 2.41 - echo 'hacker::13646:0:99999:7:::' >> $ROOTFS/etc/shadow 2.42 - echo 'hacker:x:500:' >> $ROOTFS/etc/group 2.43 - echo 'hacker:!::' >> $ROOTFS/etc/gshadow 2.44 - status 2.45 - else 2.46 - echo "Hacker is already in : $ROOTFS/etc/passwd" 2.47 - fi 2.48 - # Hacker can listen to music 2.49 - # 2.50 - if grep -q audio $root/etc/group; then 2.51 - if ! grep -q "audio:x:20:hacker" $root/etc/group; then 2.52 - sed -i s/'audio:x:20:'/'audio:x:20:hacker'/ $root/etc/group 2.53 - fi 2.54 - fi 2.55 - # /home/hacker directories. 2.56 - # 2.57 - echo -n "Creating default directories... " 2.58 - mkdir -p $fs/home/hacker/Documents \ 2.59 - $fs/home/hacker/Downloads \ 2.60 - $fs/home/hacker/Templates \ 2.61 - $fs/home/hacker/.local/bin \ 2.62 - $fs/home/hacker/.local/share 2.63 - status 2.64 - # Change permissions. 2.65 - # 2.66 - echo -n "Chmoding all files in /home/hacker..." 2.67 - chown -R 500.500 $ROOTFS/home/hacker 2.68 - status 2.69 - echo "================================================================================" 2.70 - echo "Linux User Hacker have an account in the distro." 2.71 - echo "" 2.72 - ;; 2.73 check-distro) 2.74 # Check for a few LiveCD needed files not installed by packages. 2.75 #