LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Disabling root login and using another username for administration (https://www.linuxquestions.org/questions/fedora-35/disabling-root-login-and-using-another-username-for-administration-474082/)

mrdesai 08-15-2006 11:23 AM

Disabling root login and using another username for administration
 
hello there,

I am using a server with fc5 installed and wish to disable login in via Root. I still need permissions to do adminstrative tasks remotely so need to create a new user which has root permissions.

I cannot find any info in the fedora forum to do this and am not sure instructions for other distributions will apply to FC5.

So anyone has any guidelines on this?

Oh yes and I use telnet to login not SSH.
cheers!

b0uncer 08-15-2006 11:30 AM

First of all, you cannot create more than one root user. The closest you can get, probably, is to let one user use sudo to accomplish the tasks which need superuser privileges. In this matter it's wise to only grant superuser privileges to the commands you'll be needing -- not to everything. What use would it be if you disabled your root account and then created another one? The point in disabling the root account is that all the other accounts are non-privileged to do most of the things root can do. Then, with sudo, certain users can be given the chance to, by giving their password when starting sudo, run some things as root (but not everything, since that would compromise the whole idea).

List the things you need to do, grant some user sudo rights for them, disable root account and keep a hard eye on your logs. And do NOT let anyone use sudo without passwords. More importantly, don't let anybody use sudo if it's really not needed. The less root privileges, the less trouble.

mrdesai 08-15-2006 11:34 AM

Hi Bouncer,

Quote:

Originally Posted by b0uncer
What use would it be if you disabled your root account and then created another one?

The main reason is to block bruteforce attacks using root as the username. I'd want to keep a difficult username and an difficult password and yes I would keep an eye on all root logins. However, we have a company firewall which only allows SSH/Telnet connections internally so chance to anyone getting through is less, this is just an extra security measure.

cheers!

michaelk 08-15-2006 12:08 PM

If you are using telnet then the extra security measure will not help since passwords are sent as clear text. You should disable telnet and root logins for ssh. Login with regular user then su for admin tasks.


All times are GMT -5. The time now is 11:15 PM.