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 ...
- 01-19-2011 #1Just 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?
- 01-19-2011 #2
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.
- 01-19-2011 #3Just 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
- 01-19-2011 #4Just 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!
- 01-19-2011 #5
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.
- 01-20-2011 #6Just 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.
- 01-20-2011 #7Just 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
- 01-20-2011 #8Just Joined!
- Join Date
- Jan 2011
- Posts
- 59
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?
- 01-20-2011 #9Just Joined!
- Join Date
- Jan 2011
- Posts
- 59
- 01-20-2011 #10Just Joined!
- Join Date
- Jul 2009
- Posts
- 24
Are you in the wheel group? If not, sudo -i will not work, nor will sudo.


Reply With Quote
