방법 1

# vi /etc/passwd

기술된 유저 목록에서 목표 유저를 찾은뒤 /bin/sh 를 /sbin/nologin 으로 바꿔줌.

방법 2

usermod 명령어 사용

usermod -s /sbin/nologin account


man 에 기술된 정보

-s shell
The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.

-L Lock a user's password.
This puts a '!' in front of the encrypted password, effectively disabling the password. You can't use this option with -p or -U.


-U Unlock a user's password. This removes the '!' in front of the encrypted password. You can't use this option with -p or -L.

-L 과 -U 옵션을 활용해 보는 방법도 있다.
# vi /etc/network/interface

** DHCP **
auto eth0
iface eth0 inet dhcp

** static ip **
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
netmask xxx.xxx.xxx.xxx
network xxx.xxx.xxx.xxx
broadcast xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers xxx.xxx.xxx.xxx

+ Recent posts