Root Logins are not allowed
Hello All,
After install kde themes (kdeartwork and all the stuff needed) can't start kdm nor gdm. Had to go to /etc/kde3 and run kdm. Nice presentation and nice icons......but now only can login as user and can't log as root. The message that I get when try to log as root is: " Root Logins are not allowed" Anyway can run commands as root typing "su" and giving the root password. I know that in this way it is safer but would like to know how to return to previous situation.....login as root.......and come back to this Best Regards Martin |
If you were in Mandrake Linux I would be able to tell you the way to do it immediately. But Debain does not have the Mandrake Control Center.
Maybe I can find something on google.... stay tuned. :) ---- Edit ---- And I did! Here is the link to it. Find the location of a file called kdmrc probably the easiest way would be Code:
$ locate kdmrc Code:
[root@localhost kdm]# cat kdmrc |
Hi,
Check that you don't have a file called /etc/nologin... if yes, remove it Oliv' |
Please, do NOT login as root. When you setup your machine correctly you don't need to have root access in KDE. Linux is NOT Windows.
And whenever you need root access, open a shell and do "su root" (For instance when you need to install applications or when you need to configure something). And whenever you need root access in a graphical application, use 'kdesu' to start it. When I first started using Linux I also used to login as root. But it's just plain stupid, insecure and absolutely not necessary. Good luck (and please, do not login as root ;) ) |
Quote:
Actually, if you get used to it, you'll likely enjoy a non-graphical login much more than the graphical thing, which just frustrates me. Sometimes there's a little routine maintenance or something I want to check from the command line before actually logging in, and the command-line login makes that a snap, where the graphical one makes it impossible. To switch to a command-line login you just change the default runlevel from "5" to "3" in /etc/inittab. Just my two cents' worth on this issue. |
If you want to work on files via root then use the file manager. In my system using kde its K -> system -> more programs -> file manager it will then ask for you root password.
|
Quote:
|
Hey!
Many thanks to all of you for your replies, are quite interesting and usefull. First of all, Student04: yes, it works with your advice. It is just what I wanted. 2- McCloud & Jonr: Thanks a lot for your recommendation, I agree with you since read somewhere that connected while logged as root give the chance to anyone modify your system if can access. Agree also that Linux is not Windows......that is the main reason why I want to learn, and indeed I do...now I know how can allow/deny "root logins":) 3- TigerOC, Wells & Oliv': Thanks a lot for your comments, will take them into account (in fact I'm saving the page) Regards Martin |
Hi Guys,
Great article, and very helpful!!!!!!!!!!!!!!!!!!! TigerOC - the only reason I have ever logged into root was for this graphical interface, excellent advice thankyou! McCloud - I tried your suggestion and recieved this:- evoffice:/# kdesu Xlib: connection to ":0.0" refused by server Xlib: No protocol specified kdesu: cannot connect to X server :0.0 evoffice:/# Any idea's? I have not got my Samba setup properly, but I not sure if this is linked. Also, if I wanted to edit a file in command line, how do I go about it. The only reference to this type of command is for dos. I don't want to be stuck to a graphical interface, as I see the power of the command line. Cheers Evan |
Quote:
As to your second question, there are a few good command line editors for ascii files. one is "vi" which is called like this: vi <filename> this will take you into viewing the file mode. if you want to edit it, hit the "I" key. This is insert mode. Edit the text the way you want to. To get out of insert mode, hit escape. Then, to save, make a colon, and type the letter "w" for "write." If you want to save and exit, just throw in a "q" at the end to look like this: ":wq" Those are the basic commands for vi. you can also use joe. joe is called like this: joe <filename> joe has a very detailed list of commands in it, so explaining them here would be unnecessary. Joe greatly resembles old-skool DOS WordPerfect. If you miss the glory days, head over into joe and have a look around. :) |
Quote:
Code:
# vim /etc/inittab *edit* darn someone posted before me... :( |
All times are GMT -5. The time now is 09:51 PM. |