LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-04-2007, 12:00 AM   #1
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Rep: Reputation: 15
YaST


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.

Thanks.
 
Old 03-04-2007, 04:03 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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
 
Old 03-04-2007, 12:08 PM   #3
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
I tried "su" it says "Permission denied" (instead of asking for the root password)!

What am I missing?

.
 
Old 03-04-2007, 01:05 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Your best bet is to read SUSE documentation about system management.
Also you can try:

sudo -i
sudo -s
sudo su -
 
Old 03-04-2007, 01:24 PM   #5
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i should have said:
first log in as normal user
than in bash you can switch to superuser
su
or excute programs as root by
sudo commands

or am i missing sth?
 
Old 03-04-2007, 01:32 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
or am i missing sth?
Probably not. You know SUSE, I thought it may have root account disabled a'la Mac OS X.
 
Old 03-04-2007, 01:46 PM   #7
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
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.
What are you doing to "logon as "administrator"?
 
Old 03-04-2007, 07:43 PM   #8
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by j-ray
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.

Any advice?

.
 
Old 03-07-2007, 12:08 AM   #9
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
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.

.
 
Old 03-08-2007, 03:38 PM   #10
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
hi linux_2007

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.

Hope this helps

Last edited by minrich; 03-08-2007 at 03:39 PM.
 
Old 03-09-2007, 12:12 AM   #11
linux_2007_
Member
 
Registered: Feb 2007
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by minrich
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.

Thanks!

.
 
Old 03-09-2007, 01:49 AM   #12
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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?
 
Old 03-10-2007, 03:12 PM   #13
minrich
Member
 
Registered: Aug 2003
Location: Isles of Man & Wight
Distribution: See signature
Posts: 548

Rep: Reputation: 40
Hi again linux 2007

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.

Hope this helps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
YaST LinuxHuh? Linux - Newbie 5 12-22-2005 05:40 PM
YaST .pot files and customizing YaST strangedub SUSE / openSUSE 0 05-12-2005 04:41 PM
Yast meh1 Linux - Newbie 3 09-30-2004 09:23 AM
Yast hornet74 Linux - Software 10 01-22-2004 12:31 PM
Newbie problem: Starting YAST gives me "-bash: yast: command not found". cattleya Linux - Software 9 11-20-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration