# HG changeset patch # User Christophe Lincoln # Date 1236279637 -3600 # Node ID 31c1dadc0a0a0ded2c4a27e19bc253123efe0e61 # Parent 99ede412a318e24913240ab19b7d3dae17a07273 Remove obsolet addhacker diff -r 99ede412a318 -r 31c1dadc0a0a doc/tazlito.html --- a/doc/tazlito.html Wed Feb 25 23:29:58 2009 +0100 +++ b/doc/tazlito.html Thu Mar 05 20:00:37 2009 +0100 @@ -214,16 +214,6 @@
  # tazlito clean-distro
 
-

addhacker

-

-La commande 'addhacker' permet d'ajouter l'utilisateur Hacker à la distribution, -cela permet d'avoir un compte utilisateur sans mot de passe. A noter que cette -commande effectue un changement de permissions sur tous les fichiers contenus -dans /home/hacker : -

-
- # tazlito addhacker
-

check-distro

Cette commande permet simplement de vérifier si les fichiers non installés par diff -r 99ede412a318 -r 31c1dadc0a0a tazlito --- a/tazlito Wed Feb 25 23:29:58 2009 +0100 +++ b/tazlito Thu Mar 05 20:00:37 2009 +0100 @@ -87,7 +87,6 @@ extract-distro Extract an ISO to a directory and rebuild LiveCD tree. gen-distro Generated a Live distro and ISO from a list of packages. clean-distro Remove all files generated by gen-distro. - addhacker Add Linux User Hacker to the current distro. check-distro Help to check if distro is ready to release. burn-iso Burn ISO image to a cdrom using Wodim.\n" } @@ -739,7 +738,7 @@ # check_root if [ -d $ROOTFS ] ; then - echo "A rootfs exist in : $DISTRO" + echo -e "\nA rootfs exist in : $DISTRO" echo -e "Please clean the distro tree or change directory path.\n" exit 0 fi @@ -954,55 +953,6 @@ echo "================================================================================" echo "" ;; - addhacker) - # Without /etc/passwd... - # - check_root - echo "" - echo -e "\033[1mAdduser hacker to :\033[0m $ROOTFS" - echo "================================================================================" - if [ ! -d "$ROOTFS/etc" ] ; then - echo -e "\nUnable to find : $ROOTFS/etc" - echo -e "Users and passwords config files will not be found.\n" - exit 0 - fi - # Go for echoing on configuration files if any hacker was found. - # - if ! grep -q hacker $root/etc/passwd; then - echo -n "Configuring $ROOTFS/etc..." - echo 'hacker:x:500:500:Linux User,,,:/home/hacker:/bin/ash' >> $ROOTFS/etc/passwd - echo 'hacker::13646:0:99999:7:::' >> $ROOTFS/etc/shadow - echo 'hacker:x:500:' >> $ROOTFS/etc/group - echo 'hacker:!::' >> $ROOTFS/etc/gshadow - status - else - echo "Hacker is already in : $ROOTFS/etc/passwd" - fi - # Hacker can listen to music - # - if grep -q audio $root/etc/group; then - if ! grep -q "audio:x:20:hacker" $root/etc/group; then - sed -i s/'audio:x:20:'/'audio:x:20:hacker'/ $root/etc/group - fi - fi - # /home/hacker directories. - # - echo -n "Creating default directories... " - mkdir -p $fs/home/hacker/Documents \ - $fs/home/hacker/Downloads \ - $fs/home/hacker/Templates \ - $fs/home/hacker/.local/bin \ - $fs/home/hacker/.local/share - status - # Change permissions. - # - echo -n "Chmoding all files in /home/hacker..." - chown -R 500.500 $ROOTFS/home/hacker - status - echo "================================================================================" - echo "Linux User Hacker have an account in the distro." - echo "" - ;; check-distro) # Check for a few LiveCD needed files not installed by packages. #