Problems when I login as root.

Hi,

When I login as non-root user, the KDE 4.1 comes up good and cool. I can see the desktop fine.

But when I logout and login again, this time as ‘root’, I dont see the welcome screen. I neither see my desktop. All I can see is my mouse cursor. I do not understand what is happening. Strangely I can only see windows which are active. For instance I can see the KDE tips window that opens by default everytime we login. And when I press the power button on my laptop I see the window which offers logout, turn off and restart options.

What could be the cause and how do I fix the problem?

Also my kernel was updated recently from 29.7.?.1 to 29.7.?.2 online. As a result of which I had to re-install my nvidia graphics driver manually all over again. I had to do this cause it is necessary to build your kernel everytime you update it if you choose to manually install it.

Could this be causing a problem? I dont think cause even before upgrading my kernel and re-installing graphics card driver I was having the same problem.

I use:
openSUSE 11.1
KDE 4.1
Graphics card: Nvidia 8400M GS
Dell Vostro 1400 N series.

Thanks for your replies.
And it feels good to have problems and face them and fix them and eventually learn a lot about your system. And this could have not been possible without your help.

Proud to be SUSEian! 0:)

> When I login as non-root user, the KDE 4.1 comes up good and cool. I
> can see the desktop fine.
>
> But when I logout and login again, this time as ‘root’

do NOT log into any Linux GUI (KDE, GNOME, Xfce, etc etc etc) as root,
ever!

never ever log in as root! for lots of reasons (some not even
noticeable immediately and VERY difficult to trouble shoot and solve)…

yes, some will tell you that it is ok if you are VERY CAREFUL and
then close the session as soon as possible, but those folks are WRONG
(lucky that they got away with it, but WRONG anyway…lot of the
permissions problems i see here can EASILY be caused by logging in as
root…)

never do it, instead visit: http://en.opensuse.org/SDB:Login_as_root
and learn how to log in as a regular user and then become root ONLY as
needed from within a regular user session…

believe it!


Conficter

Needless to say that I support Conficter. There is not much that can make us shiver as much as you are doing.

Read:SDB:Login as root - openSUSE

Edit: OK even the link was already given by Conficter. I was so shocked by this behaviour, I did not notice.

> Edit: OK even the link was already given by Conficter. I was so shocked
> by this behaviour, I did not notice.

say it again and and again…can’t seem to say it often or fast
enough…we need a big billboard on the road to openSUSE that
proclaims: Do not log into the GUI as root! Ever!


Conficter

On Fri, 2009-04-03 at 16:54 +0000, Conficter wrote:
> > Edit: OK even the link was already given by Conficter. I was so shocked
> > by this behaviour, I did not notice.
>
> say it again and and again…can’t seem to say it often or fast
> enough…we need a big billboard on the road to openSUSE that
> proclaims: Do not log into the GUI as root! Ever!

Well… while the point is right, the absolute statment is WRONG.

Logging into the gui as root should work. Saying “don’t do it”
doesn’t fix the issue.

So… everyone log into your GUI as root :slight_smile: Just because
you CAN… and because abolishing all guns is a bad
idea.

+1

You can use su or kdesu or gnomesu to do anything that needs to be done in root as a normal user.

> Logging into the gui as root should work. Saying “don’t do it”
> doesn’t fix the issue.

i disagree: as there is no need to ever do it, and it introduces many
of the same security issues that Redmond has, there is NO reason that
logging in as root “should work”…ymmv


Conficter

I understand that there is no need to ever login as root and aslo it is not necessary that it “should work”. And I also agree I m stupid if try that. But when my friend logs in as root his GUI works. I m just curious why my GUI does not work. Thats the point it boils down to now!

So why?

> But when my friend logs in as root his GUI works. I m just curious
> why my GUI does not work.

i do not know why you can’t do what should never be done…and,
suggest your best course from here is to let that remain one of your
great mysteries of life…

if you can’t live with that i suggest you do a full system backup and
experiment some more to fix the pseudo-problem of not being able to do
what is neither necessary or advisable…

ymmv


Conficter

I can live that :). And that is my biggest mystery of life!

Hi friend: we are so sorry to interrupt you ,but do you want to buy shoes or bags? now our shop have some Christian Louboutin shoes,UGG boots and some bags ,the quality is fine and the price is cheap ,if you like,you can come here to have a look.if this letter bring you some trouble and unhappy ,we feel sorry again. Fendsell - Sale Cheap Louboutin Shoes , Classic UGG Boots .

There are two skools of thought at work here. The first is the olde skool. These are users, like me, who are comfortable at the command line, know how to use it and know the risks of doing things as root and can fix things when we break them. Then there is the new skool. These are users who are brought up on using the GUI, are led to all things GUI, who are thought, rightly or wrongly, not to understand how things work and are being protected from shooting themselves in both feet by not using root. The general trend in the ‘popular and most widely used’ distributions is to prevent root from having GUI access. This is down to the way the system is configured. You change that at your peril.

Remember, I am NOT giving out advice here. YMMV and IANAL.

Happy Linux Using Days Ahead, drive cautiously!

1st thing I’d like to say: ** NEVER LOGIN AS ROOT IN ANY GRAPHICAL ENVIRONMENT **.
2nd thing : You may login as root in graphical environments iff you like to experiment and it doesn’t matter much for you if you have to re-install Linux again & again and always have backup of data. :slight_smile: Only then read below:

In my installations (whatever i’ve tried till date; suse, feodra, ubuntu, mandriva) root graphical ide works fine. But my observation says the X in root depends not only on root-profile specific X-settings but also in others like kernel, software packages, other settings etc. I feel KDE4 crash prone. Have you tried gnome to login as root?

And if being root makes your works easier (eg, regarding file permissions, like me having other distros in m/c and in opening their /home/~user/ directories require root perms) then try this >>

Open terminal -> type su & enter -> give root pass -> then type nautilus (or dolphin or conqueror orthunar, whatever window manager you use) -> the opened window will be just root’s. so browse within that. and anything triggered from there (eg, a document or image for editing) will also be opened under root perms.

Finding out why graphical root a/c not working in your installation is like searching needle in hay stack as i’ve told any misconfiguration or problem may cause that failure.

CAUTION AGAIN : ** LOGGING IN GRAPHICAL ENVIRONMENTS AS ROOT IS INJURIOUS FOR INSTALLATION **