2008ǯ03

졼Х

ƥ:

Koiwaiߤäˤʤäơߤ˻ڤäƿ٤ΤҶκ繥äʤƬ˽ФƤΤǤ줬פФޤġФ餯Ʋ²Ǥä򤷤Ƥ顢פФޤ衣

졼 Х

Ҷκǡʬ¢ˤФڤäƿ٤Ƥ褦ʡġĤ⤢ä櫓ǤϤʤ֤渵ǤΤ餤ʪäΤǤ礦Ĥκ餫(Ϥʤʤä?)٤뵡񤬤ʤʤäơä˺Ƥޤ

Ƶפ֤˿٤Ƥߤ顢̣ѤäƤʤ

Ǥ⤳졢Ķڤä顢ʬ٤㤦͡

ƥ:

If you just make a file /etc/nologin, user would not log in to the Linux.

# cat /etc/nologin
--- backup in progress ---

When you delete the file, user could log in to the Linux again.

ƥ:

All users are listed in a file /etc/passwd.

$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin

With a command awk, you could get the first field easily.

$ awk -F':' '{ print $1 }' /etc/passwd | sort
adm
apache
bin

ƥ:

It is not recommended that you lease from your PC without logout If you would like to logout automatically, use TMOUT.

This is an example of it. After 300 secondes, bash finish automatically.

$ cat ~/.bashrc
export TMOUT=300

If you write it in a file /etc/profile, all users will be affected.

MPD ˤ Apple Store

ƥ:

180208_1554Ĥδ֤ˤ顢Ȥǯ餷Ǥ˥塼衼ˤ뤪ޯꥢ MPD (Meatpacking District) Apple Store Ƥޤ

Apple Store - West 14th Street

ϲŴǹԤˤϱؤäΥƤءȤSOHO ٤ƶƤޤơ

᤯ˤ륹ХåǥҡǤԤäɡ餷ԤΤ褦 MacBook Pro ʤ󤫤ȤäƤǤ衣յʤȻפɡϰ¤㤨͡ġ⤽ääʤߤˤλǤ Air Ͻв٤ƤʤΤǡ˻ȤäƤͤϸޤǤ

⤷ϲŴǹԤʤ顢A C E 14 St. ǹߤޤ礦Τޤ 14th Street ˸ä⤱Фɤ夭ޤ

ʤߤ񤤤 BODUM ϤǤĤޤäƤޤäƤΤˡɸ꤬㤷͡

Ƕä BODUM

ƥ:

You could give a message when users login. Make the message in a file /etc/motd (message of the day.)

# cat /etc/motd
This server will reboot within one hour.

User login.

Last login: Sat Mar  8 08:53:21 2008 from windows
This server will reboot within one hour.
$

ƥ:

If you mistype a password when you login, use Ctrl-u. It clears all keys those you typed, then type again.

ΥڡΥȥåץ

Ф