Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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 have trapped in a loop. When I try to logon my computer as "administrator", after entering the password, it goes to YaST, and when I close the YaST page, it goes back to the login/password page again. So, I am not able to login as administrator (which I need to do so). I can login as a non-administrative user.
Please, can anyone help me out here. I am really stuck.
1. you can change your user's identity into root by typing
su
into bash.
2. you can execute programs as root by
sudo yourCommand
In both cases you are asked to enter the root password. It is in general not at all recommended to login into graphical mode as root. That's why you are sent to YASt if you try.
cheers, j
When I try to logon my computer as "administrator", after entering the password, it goes to YaST, and when I close the YaST page, it goes back to the login/password page again.
It is in general not at all recommended to login into graphical mode as root. That's why you are sent to YASt if you try.
cheers, j
I tried sudo -i , etc., it says: I am not in the sub doers file...but never mind.
Could we go back please to my original question. All I want to do is to login as "root", so it goes to the graphical mode, like before.
Currently, I can switch to console and login as root in non-graphical mode, but then what I should do to stop it going to YaST. This is where I am stuck.
Ok, since I could not get this problem resolved yet, I am asking again, maybe someone can come up with a good idea this time.
To make it clearer, let's rephrase the problem. I use SuSE & KDE. After booting the computer, the graphical login screen appears. I can log in as 'user' with no difficulties in the graphical mode. However, when I try to log in as 'root', it goes directly to YaST page and I have no control over this. At the bottom of the YaST page there is a 'close' bottom. When I click on it, the window gets closed but it goes back to the login screen again. On the other hand, when I am in the log in screen, I can switch to non-graphocal login screen (CTRL+N), and after entering the password, I am in as root, but like I said, in non-graphical mode.
Now the question is how I can stop jumping into the YaST page when I login as root in the graphical mode?
All the documentations about YaST or management system in SuSE that I found explain the YaST options etc, not about problems like this. I am sure this is not very complicated, I just can't see where the problem is.
If you have any idea, I'd be appreciated to hear it.
I had the same problem with a openSUSE 10.2 x86_64 new install on a reformatted partition. It appears that after the setup has been completed the /etc/sudoers file is changed automatically after you reboot. Luckily I have a working 10.1 version on another partition and was able to change back the last line of the file to:
ALL ALL = (ALL) ALL
just for info it had been changed to:
root ALL = (ALL) ALL
Since you can't go from a normal user to superuser, you may have to end your current session, login quickly as root (enjoy the minefield!) and edit the /etc/sudoers file as above since it is owned by root and root group. End that session asap, and login again as your normal user and su and sudo etc. should all work.
hi linux_2007
...the /etc/sudoers file...had been changed to:
root ALL = (ALL) ALL
Thanks minrich for the advice, I checked the file, but it was already like
root ALL = (ALL) ALL
so it should be correct.
My problem is not that I want to get "su" or "sudo" working, I mean how does it help?
All I want is to do is that when I login as "root", I go to the graphical mode - it was exactly like this before. I don't know if I did something wrong or it just happened by itself that when I login as root now, a YaST window opens, and when I close it, it goes back to login page.
all we wanted to know is why you want to login as root into graphic mode though it is pretty dangerous for your system. You can do whatever you like as normal user and execute programs that belong root by 'sudo' or switch to 'su' in bash. Probably your X-server will not execute programs if you execute them as root either. Root usually does not have access to X-server.
If you are surfing the web as "administrator" on windows (i.e.) really everybody on the web can send you worms and viruses that install perfectly everywhere on your box. Is this what you are yearning for?
Reread my post ... if I am not mistaken it reads you should change 'root' to 'ALL' in the last line. try it and see if you get the su and sudo to work again for you as a normal user. My understanding is that since Suse 10.2 something was changed to ensure that after installation from CDs or DVD or whatever, which is all done as a superuser, once you login (for the first time) as a normal user the /etc/sudoers file is changed as indicated above.
I endorse j-ray's comment above ... it is most unwise to login as root ... however, I believe that if you disconnect from the internet and/or any LAN that you are connected to first (i.e. disconnect the cat5, usb cable, or issue the "ifdown wlan0" command [substitute your wireless interface connection name if other than wlan0] ... you should be fine for the short amount of time that you are 'playing' root in a GUI.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.