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 옵션을 활용해 보는 방법도 있다.
2004/10/09 18:34 2004/10/09 18:34
Trackback Address : http://metalpen.net/blog/trackback/81

  :  Name

  :  Password

  :  Homepage


    SECRET

<< PREV    1  ...  460   461   462   463   464   465   466   467   468  ...  518    NEXT >>
Skin designed by 超.