# mkdir -p /etc/skel/Maildir/{cur,tmp,new}(ユーザーを追加した場合、/etc/skel/配下は、自動的に追加される。)
# mkdir /etc/skel/public_html
# adduser hogehoge(ユーザーを追加する場合)
Adding user `hogehoge’ …
Adding new group `hogehoge’ (1002) …
Adding new user `hogehoge’ (1002) with group `hogehoge’ …
Creating home directory `/home/hogehoge’ …
Copying files from `/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged
Try again? [y/N] y
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for hogehoge
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
# deluser hogehoge –remove-home(ユーザーを削除する場合)
Looking for files to backup/remove …
Removing files …
Removing user `hogehoge’ …
Warning: group `hogehoge’ has no more members.
Done.
|