Debian GNU/Linux lenny/sid hackkit login: guest Password: Linux hackkit 2.6.22.7 #334 Tue Sep 30 22:14:38 JST 2008 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. guest@hackkit:~$
guest@hackkit:~$ su - root Password: hackkit:~#
hackkit:~# date Thu Jan 1 09:04:41 JST 1970 hackkit:~# date 112212402008 Sat Nov 22 12:40:00 JST 2008 hackkit:~#バッテリバックアップされていないので、 AC アダプタを抜くと初期化されてまた合わせないといけないのだが、、、
hackkit:~# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully hackkit:~#
hackkit:~# addgroup yamasita Adding group `yamasita' (GID 1001) ... Done. hackkit:~# mkdir /home/yamasita hackkit:~# adduser --home /home/yamasita/yasunari --ingroup yamasita yasunari Warning: The home dir /home/yamasita/yasunari you specified already exists. Adding user `yasunari' ... Adding new user `yasunari' (1001) with group `yamasita' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for yasunari Enter the new value, or press ENTER for the default Full Name []: yasunari yamashita Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] y hackkit:~#
Debian GNU/Linux lenny/sid hackkit login: yasunari Password: Linux hackkit 2.6.22.7 #334 Tue Sep 30 22:14:38 JST 2008 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. yasunari@hackkit:~$ su - root Password: hackkit:~# deluser -r guest Option r is ambiguous (remove-all-files, remove-home) deluser USER remove a normal user from the system example: deluser mike --remove-home remove the users home directory and mail spool --remove-all-files remove all files owned by user --backup backup files before removing. --backup-to/home/guest も消そうと -r をつけたら「どっちにも取れる」だと。target directory for the backups. Default is the current directory. --system only remove if system user delgroup GROUP deluser --group GROUP remove a group from the system example: deluser --group students --system only remove if system group --only-if-empty only remove if no members left deluser USER GROUP remove the user from a group example: deluser mike students general options: --quiet | -q don't give process information to stdout --help | -h usage message --version | -v version number and copyright --conf | -c FILE use FILE as configuration file hackkit:~#
hackkit:~# deluser --remove-home guest /usr/sbin/deluser: In order to use the --remove-home, --remove-all-files, and --backup features, you need to install the `perl-modules' package. To accomplish that, run apt-get install perl-modules. hackkit:~#も~うるさい。
hackkit:~# deluser guest Removing user `guest' ... Warning: group `guest' has no more members. Done. hackkit:~# rm -fr /home/guest hackkit:~# delgroup guest The group `guest' does not exist. hackkit:~#?
アーカイブから抜いといた方が良さそう。
hackkit:~# apt-get update Get:1 http://ftp.jp.debian.org lenny Release.gpg [189B] Hit http://security.debian.org lenny/updates Release.gpg Get:2 http://ftp.jp.debian.org lenny Release [74.5kB] Hit http://security.debian.org lenny/updates Release Ign http://security.debian.org lenny/updates/main Packages/DiffIndex Ign http://security.debian.org lenny/updates/main Sources/DiffIndex Hit http://security.debian.org lenny/updates/main Packages Hit http://security.debian.org lenny/updates/main Sources Hit http://ftp.jp.debian.org lenny/main Packages/DiffIndex Get:3 http://ftp.jp.debian.org lenny/main Sources/DiffIndex [2038B] Fetched 76.7kB in 12s (6350B/s) Reading package lists... Done hackkit:~# apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. hackkit:~#sid が取れたときには dist-upgrade も必要?
|
← lenny + armel のハックキットの作り直し |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ PRODUCTID, Linux Version |