LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   I Want To Login as Root in Debian "Squeeze" (know its been asked a zillion times) (https://www.linuxquestions.org/questions/debian-26/i-want-to-login-as-root-in-debian-squeeze-know-its-been-asked-a-zillion-times-4175412959/)

cynwulf 07-09-2012 09:00 AM

Quote:

Originally Posted by FZappa (Post 4722755)
Hell, I do alot of work in windows so yea, I have a pretty good idea about security concepts.

:scratch:

Anyway... I'm afraid TobiSGD is correct.

Sometimes the answer is not the answer you expected, that's how it goes when you're learning new things. You obviously cannot cope with a system where the user does not run a GUI as root. You see not running as root as a restriction and a hindrance, and this is possibly because you lack the open mindedness and patience to learn to "do it right". OS such as GNU/Linux and *BSD do things the *nix way, not the windows way. Learn how to use su, sudo, gksu, etc effectively and you will never think about running a GUI as root again. Learn the basics of securing your system and you will soon be laughing at the idea of running a GUI as root...

You're effectively saying to other users - "please give me crap advice on my terms", Linux users in general don't like to give crap advice, they like to give the best advice.

273 07-09-2012 09:13 AM

When this kind of thing was asked once before I recall somebody posting a link exlaining how to get your system up and running only using root. What struck me was that the guy doing it didn't give a reason to do it other than laziness, yet he obviously did think at least a little about the implications and he researched enough to get things working. I don't personally think the guy who wrote the page is at major risk of becoming rooted, though I still think he's increased the risk pointlessly. However, I don't think anyone should ever advise anyone else to run as root.
Some people may be able to drive after a few drinks, others live in the middle of nowhere so it doesn't matter as much to them -- still does not make drinking and driving safe or something which should be encouraged. Sorry for the possibly exagerated analogy, but it's the feeling I get when I see people asking to run as root. Either that or taking the safety mechanisms off their automatics because they can't be bothered flicking the switch.
Personally I love not running as root -- it means I can run "rm -rf *" type commands or Cat binary files to the terminal if I want without worrying about having to reinstall my OS. Not that I do that very often, of course, but examples are hard to think of until you come across them.

unSpawn 07-09-2012 10:56 AM

Quote:

Originally Posted by FZappa (Post 4722755)
That was uncalled for and again, I apologize. You were just trying to help me.

All good then.

*If this thread conveys anything about LQ, more so than some other fora, it's that the LQ Community does care. If you would like to reciprocate then please answer EDDY1s question as that would lend closure to this thread the right way, TIA.

catspray 07-11-2012 01:21 PM

Sorry didn't mean to post here

rongaines 03-08-2013 04:27 PM

ppl that wont answer a question really bother me-how to login as root
 
Debian 6 – HowTo enable gnome root login on Debian 6 (Squeeze)
Hello, in this short tutorial I will show you, how you can enable root login on the gnome login screen on Debian 6 (Squeeze).

How to enable gnome root login on Debian 6?

Note:
You will need the root password for this set of commands.


Step1:

Login to a user account.

Step2:

Open a terminal window and type this into your window:

1
2
su root
gedit
Step3:

Now open the file /etc/pam.d/gdm3 and comment out the fifth line:

1
#auth required pam_succeed_if.so user != root quiet_success
Content of: /etc/pam.d/gdm3

1
2
3
4
5
6
7
8
9
10
11
12
#%PAM-1.0
auth requisite pam_nologin.so
auth required pam_env.so readenv=1
auth required pam_env.so readenv=1 envfile=/etc/default/locale
#auth required pam_succeed_if.so user != root quiet_success
@include common-auth
auth optional pam_gnome_keyring.so
@include common-account
session required pam_limits.so
@include common-session
session optional pam_gnome_keyring.so auto_start
@include common-password
Step4:

Reboot.

I hope this is helping some of you, because root is not allowed to login on a fresh Debian 6 installation.

Randicus Draco Albus 03-08-2013 06:11 PM

Quote:

Originally Posted by rongaines (Post 4907644)
How to enable gnome root login on Debian 6?

because root is not allowed to login on a fresh Debian 6 installation.

I wonder why that is?:rolleyes:

273 03-08-2013 06:25 PM

I found just commenting out that one line worked for my system (I'm changing it back now). It wasn't line 5 in my gdm config file though.
Thanks for the solution --- whilst I'm still not convinced there's a reason to run X as root it's good to know it can be done.

cynwulf 03-10-2013 12:07 PM

Or you could kill the display manager, login as root and startx...? In fact there are all kinds of idiotic ways to wreck your system.


All times are GMT -5. The time now is 04:58 AM.