Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
I'm using Debian, and trying to log into the system as root on the main login GUI page. When I enter my authentication it says: "The system administrator is not ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    59

    Cannot log in as root?

    I'm using Debian, and trying to log into the system as root on the main login GUI page.

    When I enter my authentication it says:

    "The system administrator is not allowed to login from this screen"

    How can I avoid this error message, and log in as root?

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    My suggestion - don't login as root at the gui. If you need root access use sudo in a terminal
    Last edited by Jonathan183; 01-19-2011 at 09:40 PM.

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    59
    Thanks Jonathan... I'll have a look at the sudo command. I was having some problems with it, but the tutorial you provided looks easy to follow

  4. #4
    Just Joined!
    Join Date
    Jan 2011
    Posts
    59
    Okay, here's something else...

    If I don't log in a root, how do I create files in my web server directory for example? E.g. I go to cd /var/www/ and currently there is index.html there... However, I want to create test.php, so I type "vim test.php" then type ":wq" meaning I want to save the file, but it will not let me save....

    If I'm not supposed to log in as root, how can I save a file in that directory?

    Thanks!

  5. #5
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    sudo then_any_command_you_want_to_use_with_root_rights will allow you to do what you want. sudo -s will allow you to work in the terminal with root rights until you type exit or press ctrl+d. Depending on the directory and files you may also want to change directory/file owner and file access properties. Check chown and chmod commands ... check the man pages eg man chown chmod I have not setup a web server so don't know who should own files and folders ... but it is worth reading up on this to ensure you don't introduce security weaknesses that can be exploited.

  6. #6
    Just Joined!
    Join Date
    Jul 2009
    Posts
    24
    If you REALLY want to login as root do:

    gksu gdmsetup


    And enable "root login".

    However, I suggest logging in as a regular user, open a terminal and type sudo -i. This will enable root for your account for the session. When it asks for password, ensure you type the user accounts password, not root.

  7. #7
    Just Joined!
    Join Date
    Nov 2007
    Posts
    2
    It is always best no to login as "root". If you really need to switch to "root", u may use the command:

    sudo -i

  8. #8
    Just Joined!
    Join Date
    Jan 2011
    Posts
    59
    Quote Originally Posted by DeadBeet View Post
    If you REALLY want to login as root do:

    gksu gdmsetup


    And enable "root login".

    However, I suggest logging in as a regular user, open a terminal and type sudo -i. This will enable root for your account for the session. When it asks for password, ensure you type the user accounts password, not root.
    Why must you enter your own password and not the root password? Is that secure?

    Isn't it insecure to be able just use "sudo -i" and be able to access the system with full root priviliges without even knowing the password?

    Or is the logic that (as per a link that Jonathan provided) that all actions will be logged, so even if you want to mess around, then your actions will be reported to the system admin?

  9. #9
    Just Joined!
    Join Date
    Jan 2011
    Posts
    59
    Quote Originally Posted by Jonathan183 View Post
    sudo then_any_command_you_want_to_use_with_root_rights will allow you to do what you want. sudo -s will allow you to work in the terminal with root rights until you type exit or press ctrl+d. Depending on the directory and files you may also want to change directory/file owner and file access properties. Check chown and chmod commands ... check the man pages eg man chown chmod I have not setup a web server so don't know who should own files and folders ... but it is worth reading up on this to ensure you don't introduce security weaknesses that can be exploited.
    Hmmm.... I'm a little upset.

    Does this mean I have to chmod practically every directory that I want access to?

    It seems that by default, I'm only allowed to save/modify files within my own home directory

  10. #10
    Just Joined!
    Join Date
    Jul 2009
    Posts
    24
    Are you in the wheel group? If not, sudo -i will not work, nor will sudo.

Page 1 of 2 1 2 LastLast

Posting Permissions

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