I Want To Login as Root in Debian "Squeeze" (know its been asked a zillion times)
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I Want To Login as Root in Debian "Squeeze" (know its been asked a zillion times)
I am sorry to ask this same old question but I just want the ability to login as root like I can in Slackware. I did a search and all the posts I've read seem to be reduced to borderline flame wars on the perils and pitfalls when using root.I've always used root to compile packages, kernels etc. without any problems. I don't care much for su, sudo, fakeroot or whatever else you want call it. All I am asking for is a simple answer(s) to my question please.
Thanks in advance
Frank
P.S Have not used Debian since Etch so be easy on me people.
Do you mean the simple procedure of logging into a session with:
Login: root
Password: *******
or automatically log in as root (perhaps even into a GUI)?
If it is the latter, it will definitely start a discussion.
Do you mean the simple procedure of logging into a session with:
Login: root
Password: *******
or automatically log in as root (perhaps even into a GUI)?
If it is the latter, it will definitely start a discussion.
I want to login into a gui as root with a password.(already have a root password) In Etch I could do just that but don't remember if I had to edit something or it just installed with the ability to login as root.
I've always used root to compile packages, kernels etc. (..) I don't care
You should care. The fact that you did doesn't legitimize continuing a bad habit: two wrongs don't make a right.
*Best practices, "doing things the Linux way", are based on design principals like separation of privileges and not the misguided result of mistaking laziness for convenience.
Quote:
Originally Posted by FZappa
I just want the ability to login as root
You can on the command line NP. If you meant X11 / Xorg then this depends on the DE you use. For GNOME search /etc for GDM-related stacks and for KDE search /etc for KDM configuration files.
**Running X itself is already problematic in the way it (ab)uses resources (Xorg alone lists 21 code execution vulns, 18 buffer overflows, 7 DoS and more memory corruption vulns than you would want to know about) and running X and any X-based applications as root is a clear security risk and it makes things easier to fsck up good.
Thanks unSpawn for your help. However, that doesn't answer my question. If a moderator cannot or will not help me then no one else will I think. Maybe you should delete this thread before it gets anymore off topic. I'll just go search another forum for some help
Whats difficult about searching /etc/ for GNOME or KDE Display Manager configuration files? Did you actually try something like 'find /etc/ -type f -iname \*gdm\* -o -iname \*kdm\* -print0 2>/dev/null| xargs -0 -iX grep -Hi root 'X';'?
If a moderator cannot or will not help me then no one else will I think.
The answer was a very good answer, if you are looking for guidance. If, on the other hand, you are looking for spoon-feeding, how could a better answer have been given? Without knowing which DE you are using, it would be unrealistic to expect unSpawn to type detailed instructions for all four major DEs.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Perhaps if you don't know what to change to allow you to log into the display manager as root then you ought to learn that before you consider logging in as root?
If you know better than the people telling you not to do something then why do you need their help?
I found some old info I had on Debian. I keep a big pile of notes on Linux and found what I needed.It was really simple, no terminal needed. Now I can login as root when I need to.
I found some old info I had on Debian. I keep a big pile of notes on Linux and found what I needed.It was really simple, no terminal needed. Now I can login as root when I need to.
Thanks everyone
Frank
Nice that you found a solution for this.
Now may I kindly ask you to detach your machine from the Net?
I don't care that you run your machine as root, but as soon as you do this and use software that connects to the Net (like browser or e-mail client) I see your machine as potentially compromised. It would be nice if you don't bother us with Spam, DDOS attacks or brute-forcing our servers just because of not understanding a proper security concept.
First of all, to unSpawn I am very sorry this smarta$$ post:
Quote:
Thanks unSpawn for your help. However, that doesn't answer my question. If a moderator cannot or will not help me then no one else will I think. Maybe you should delete this thread before it gets anymore off topic. I'll just go search another forum for some help
That was uncalled for and again, I apologize. You were just trying to help me.
To everyone else,thank you for your input as well as it helped alot.
To TobiSGD
Quote:
Nice that you found a solution for this.
Now may I kindly ask you to detach your machine from the Net?
I don't care that you run your machine as root, but as soon as you do this and use software that connects to the Net (like browser or e-mail client) I see your machine as potentially compromised. It would be nice if you don't bother us with Spam, DDOS attacks or brute-forcing our servers just because of not understanding a proper security concept.
You seem to think you know all about me. However, I do not spam, brute-force or DDOS. Hell, I do alot of work in windows so yea, I have a pretty good idea about security concepts. Ok, enough of that. Tobi, I understand your point even if it seemed snippy. At least to me it does.
You seem to think you know all about me. However, I do not spam, brute-force or DDOS.
I never said that you will do that. I said that it is not very difficult to compromise a machine that is run as root and opens itself to the net with using software like browsers or an email client, so that others can use your machine for something like that. May be you should keep in mind that this is not only annoying to other people, who are spammed, DDOSed or brute-forced from a zombie-computer, but that this also can have serious consequences for you. I can imagine that it would be pretty difficult to explain to the police that it is not your pirated content (or worse, not your childporn) that your computer is hosting to the net.
Quote:
I have a pretty good idea about security concepts.
Sorry, but your initial question proved you wrong. Just use su on the commandline to compile your kernels or install packages, it is not necessary at all to run the whole X environment as root and actually it is a very bad habit security wise.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.