Debian GNU/Linux 3.1 hackkit hackkit login: guest Password: Last login: Thu Jan 11 00:27:29 2007 from muramasaw.yamasita.jp on pts/0 Linux hackkit 2.6.12.6-arm1 #33 Tue Aug 8 17:16:04 JST 2006 armv5tejl GNU/Linux 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. No directory, logging in with HOME=/ guest@hackkit:/$
guest@hackkit:/$ su - root Password: hackkit:~#
hackkit:~# passwd root Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully hackkit:~#
hackkit:~# addgroup yamasita Adding group `yamasita' (1000)... Done. hackkit:~# cat /etc/group root:*:0: : : yamasita:x:1000: hackkit:~#自動的に 1000 が割り当てられた
hackkit:~# mkdir /home/yamasita hackkit:~#
hackkit:~# adduser --help adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID] [--disabled-password] [--disabled-login] user Add a normal user adduser --system [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID] [--gecos GECOS] [--group | --ingroup GROUP | --gid ID] [--disabled-password] [--disabled-login] user Add a system user adduser --group [--gid ID] group addgroup [--gid ID] group Add a user group addgroup --system [--gid ID] group Add a system group adduser user group Add an existing user to an existing group Global configuration is in the file /etc/adduser.conf. Other options are [--quiet] [--force-badname] [--help] [--version] [--conf FILE]. hackkit:~#指定するのは、ホームディレクトリと GID ぐらい
hackkit:~# adduser --home /home/yamasita/yasunari --gid yamasita yasunari adduser: --gid requires a numeric argument. hackkit:~#あらら。
hackkit:~# adduser --home /home/yamasita/yasunari --ingroup yamasita yasunari Adding user `yasunari'... Adding new user `yasunari' (1001) with group `yamasita'. Creating home directory `/home/yamasita/yasunari'. Copying files from `/etc/skel' 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:~#パスワードや GECOS を聞いてきた。
でも、Unix は「寡黙(かもく)」なほうが好き
Debian GNU/Linux 3.1 hackkit hackkit login: yasunari Password: Linux hackkit 2.6.12.6-arm1 #33 Tue Aug 8 17:16:04 JST 2006 armv5tejl GNU/Linux 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 guest Removing user `guest'... done. hackkit:~#最初の一歩はこのぐらい。
← LS-GL: オリジナル HDD へ debian をインストール(2) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-GL: debian: ホスト名の変更 |