[CentOS] Change from Root

Larry Vaden larry.vaden at gmail.com
Tue Oct 27 15:02:25 UTC 2009


On Tue, Oct 27, 2009 at 9:51 AM, Victor Subervi <victorsubervi at gmail.com> wrote:
> What I was interested in doing was to make it impossible for root to login
> directly, but rather enable other users to login and then su to root. So I
> edited /etc/ssh/sshd_config to read:
> #PermitRootLogin no
> (It was the dir I didn't know.) It initially said "yes", but it was and is
> commented. How is it that I then and still can login directly as root? Is
> reboot necessary?

remove the # and save the file, then
service sshd restart



More information about the CentOS mailing list