Support Forums

Full Version: Disabling Root Login
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What's Up?

OK, Basically is it possible to disable root login via terminal? So you couldn't use "sudo rm /file.file" any more?

Thanks Bye?
For linux? I think you can add root user to the nologin for ssh.conf. For FreeBSD it's default you can't SSH directly as root. You have to be a user in wheel group and su into root.

And for the sudo command you should have options on what can and can't be run. Heck do you even need sudo? I don't use it on my servers.
(12-10-2009, 11:45 PM)Omniscient Wrote: [ -> ]For linux? I think you can add root user to the nologin for ssh.conf. For FreeBSD it's default you can't SSH directly as root. You have to be a user in wheel group and su into root.

And for the sudo command you should have options on what can and can't be run. Heck do you even need sudo? I don't use it on my servers.

@ Omni it comes in handy if you F'up your password. Not that i've done that..Whistle
Why do you want to do this in the first place.