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.
How can I run as root in Debian? I can't login at the initial screen, is there an option in Debian I haven't found yet that lets me login and change everything like Ubuntu had?
At the GDM (gnome)login screen,on the bottom you will see a menu item called "actions" click on "configure login manager" you will have to supply your root password. This will bring you to a screen with a couple of tags-go to the security tag and there you will be presented with an option to allow root logins -check it and your good to go.(also you can set the computer to login automatically to a specific user-bypassing the login prompt if you wish)This is a handy way for you to do system maintenance in a graphical mode-but running as root for everyday tasks is a security risk--don't do it!
Thanks Glidermike! I haven't tried it yet, but it sounds like what I need. I know how to login as root in a terminal, but when you exit the shell, you aren't root anymore.
I know how to login as root in a terminal, but when you exit the shell, you aren't root anymore.
Yes, and that's the whole point. If you setup an root environment, you are eventually going to type "rm -rf *" while in the wrong directory, and that's exactly what's going to happen. Typing that as a regular user isn't quite as painful.
Actually it's even more vicious than this.
Some people will configure stuffs under root that are aimed at the user.
And then they whine because the system doesn't work while running as a user.
Because the file is now owned by root.
A good example is when you compile programs under root and then decide to recompile under a user. make clean doesn't work anymore.
You should always try to run as a user and if you really can't, then use programs like sux to do it as root.
Running as graphical root is foolish, which is why it is disabled in the first place. Everything for a user (themes, desktops and other such toys) should be done as a user. You certainly do not need to be root to add a new theme. Just use the tool that sets the theme, point it at the theme in your user's directory, and it should accept it.
Running as full root is a very poor windows behavior, and one I would personally like to see completely eliminated from the *nix world. Doing things like that open a normally secure *nix box up to problems. Part of what keeps *nix relatively safe is that the regular user does not have permissions to alter "important" files. Running as root bypasses all that well thought out security, so anything you do unintentionally or stupidly as root can effect your entire system. Doing things like you're trying to do will open the same virus/spyware issues to linux that windows suffers from. As I never run as root I don't particularly care what you do, but what you are essentially doing is driving 200 km/h without a seatbealt while drinking. As long as you don't crash it seems fine, but that crash might be really painful.
I guess I am used to being able to do it in CentOS quite easily. I never screwed stuff up, I just had to be root to edit my fluxbox themes while I used them to see how they worked.
I guess I am used to being able to do it in CentOS quite easily. I never screwed stuff up, I just had to be root to edit my fluxbox themes while I used them to see how they worked.
Doesn't mean that you WON'T
The fact is that you don't need to run the WM as root. There is not one single advantage but a lot of drawbacks.
You don't need to be root to edit your fluxbox themes or whatever.
Why do you think people keep on saying again and again the same thing? Because it's bad habit.
The next step you run firefox which contains a buffer overflow. You go on a website that contains a virus. YOu get it, your machine is to be reinstalled. Very easy.
Goodness gracious-I got the message the first million times. I am careful. Don't yell at me. Settle down, you are only preventing me from respecting/acknowledging your future replies because of how uncontrolled you seem to be. I get the picture.
Goodness gracious-I got the message the first million times. I am careful. Don't yell at me. Settle down, you are only preventing me from respecting/acknowledging your future replies because of how uncontrolled you seem to be.
Yeah I'm running unstable and it fits to me
I can also not reply to you if you prefer.
I think I will stop telling people to not run as root. I don't care in fact.
Being more constructive, it's just that people are kind enough to keep on telling you to not do this and your answer is: I never make mistakes...
In more than 10 years I did 2 times a mistake while running as root.
I lost everthing the second time. There was a link from /mnt/hda1 to /. I mistyped rm -rf /mnt/hda2/ to /mnt/hda1. /bin /boot /etc are the first ones in alphabetical order, too bad..
I don't mind you replying to my posts, just don't 'yell'. I appreciate the advice I am given, but I don't need it in font size 72 to be able to read it. I just wanted to know how to run as root if needed. As far as internet, I unplug my cable whenever I run in root to keep from getting viruses.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.