Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: root user login

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer
    Join Date
    Nov 2002
    Queens, NY

    root user login

    Is it possible to make root login(both GUI and non GUI) ONLY on the physical machine itself? If so, what do I edit? I'm using KDE by editing the kderc file, I can specify it so that no root logins occur through kdm but you can always login as the root user through the normal non-GUI method.
    The best things in life are free.

  2. #2
    Linux Engineer
    Join Date
    Apr 2003
    To deny direct root-connections to your linux, if thats what you mean, you can deny direct root-login in /etc/ssh/sshd_config for all ssh connections and deny direct root access other then console in /etc/securetty.




  3. #3
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    It's possible to configure that in gdm as well: in the "security" section of your /etc/X11/gdm/gdm.conf, set AllowRemoteRoot=false and AllowRoot=true. It's probably possible in xdm as well, but it has been a while since I played with display managers, so I don't remember. You might have to configure it in PAM (which might be the best option anyway). I don't know if there is a PAM module to determine whether it's a remote login or not though. You might have to write one yourself.

  4. $spacer_open

Posting Permissions

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