Linux & Unix | 2004/10/09 18:34
방법 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/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 옵션을 활용해 보는 방법도 있다.
"Linux & Unix" 분류의 다른 글
| vmware를 이용하여 가상 linux 환경 구축시 가상 OS의 시간이 실제보다 더 ... (0) | 2008/07/30 |
| mysql의 root 패스워드를 분실했을 경우 (0) | 2006/03/19 |
| 특정 사용자 죽이기 (0) | 2006/02/17 |
| MySQL 4.0.x 에서 4.1.x 업그레이드시 euckr 과 utf8 포맷 변환 및 DB유지,... (0) | 2006/01/31 |
| MySQL error - Can't open file: "something.MYD" (errno : 145) (0) | 2005/12/26 |
Trackback Address : http://metalpen.net/blog/trackback/81





