Find the answer to your Linux question:
Results 1 to 2 of 2
How do I disable root from logining on directly?? I forget the file I must change from a yes to no thanks Mace...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jun 2006
    Posts
    141

    Help haveing a brain cramp


    How do I disable root from logining on directly?? I forget the file I must change from a yes to no
    thanks
    Mace

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Do you want to disable root from logging in graphically or do you want to disable anyone from logging in to root at all, even via console? If it's the former, and you're using a login manager, you should be able to do it rather easily. For example, in Gnome, you would go to System->Administration->Login Setup (or something like that), click on the Security tab and uncheck the box for "Allow root to log in with GDM." There is probably a similar option for KDE but I am not sure what it is.

    If you want to lock the root account completely, you can use the -l switch in the passwd command to do so. Be careful, though. If you don't have sudo access set up you may not be able to unlock it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •