LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 02-23-2006, 02:37 PM   #16
Red Knuckles
Member
 
Registered: Jan 2006
Location: Colorado USA
Distribution: Debian AMD 64 Testing, Sabayon Linux x86-64 3.4, and Ubuntu AMD 64 7.04
Posts: 235

Original Poster
Rep: Reputation: 30
Red face


Quote:
Originally Posted by Red Knuckles
Ok, the files are edited. but I haven't figured out how to use my boot screen to log in as root. It is a Suse screen that lists:

Suse 10.0
Ubuntu
Suse 10.0 Failsafe
Memtest

With F-1 for Help and F-2 for Boot Options. I let it go to Suse 10.0 and press F-2 and type in 'root /dev/hda2' but that doesn't do it. Then when I get to the Suse login screen there don't appear to be any options which is odd as I have created 3 user accounts.
I went back to the login screen which is where you would login as root if you could. There really aren't any options there probably because it is set to auto login. When I get into Suse I still can't get root access. I either get error from gui:

Error-KDE su
su returned with error

or from terminal error:

xxxxxx@zzzzzz:~> su
su: incorrect password

I guess the question now is how can I login as root??? So I can set a root PW???
 
Old 02-23-2006, 03:13 PM   #17
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Quote:
Suse 10.0
Ubuntu
Suse 10.0 Failsafe
Memtest
By "login-screen" you really mean the menu you get when you boot the machine I suppose - the boot-loader (grub) menu...
just select suse and "return" - if you edited the files correctly...
no boot options - since you did not need them before

you do not select on the boot-screen if you want to login as root
There may be an option to boot into single user mode - this is what pljvaldez was referring to - but it did not work because you where still asked for a password of course...

I looked at the guide mentioned above - there was this in it:
Quote:
root:$s0m3fR1g9InMD5h45H:<numbers>:<more numbers>::::

Delete all values (the stuff between the columns) so that you get a line like this ...

root::::::::
it could be misundersood...
it looks a bit different on my system...

the important thing is:
-the values in these files (in both /etc/passwd and /etc/shadow) are separated by columns ( : )
-the password is represented by the very first of these values - so if you delete the values between the first and the second columns (not the columns itself - mind you!) the password virtually does not exist anymore

Next time you log in you might still be asked for a password - sorry for not verifying this at my machine - you just give none - just press "return"
There you are as root - and the first thing to do would be to run:
passwd root
to set a new one
BTW: you do not have to chroot to do this - you can edit the files as soon as the partition is mounted (as root - from whatever rescue system you do it...)

Last edited by jomen; 02-23-2006 at 03:19 PM.
 
Old 02-23-2006, 03:16 PM   #18
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, just to clarify. You did the chroot thing and reset the password to nothing.

Now you can get to the graphical login screen. Is that right? Or you don't get any graphical login screen?

Either way, press Alt+F2 and you should get a console login:
Code:
Suse 10.0 machinename tty2
machinename login:
Or something similar. For login, type root and for password hit enter (i.e. leave it blank).

This should let you be logged in as root. Then passwd root to set a new password.

Last edited by pljvaldez; 02-23-2006 at 03:18 PM.
 
Old 02-23-2006, 05:06 PM   #19
Red Knuckles
Member
 
Registered: Jan 2006
Location: Colorado USA
Distribution: Debian AMD 64 Testing, Sabayon Linux x86-64 3.4, and Ubuntu AMD 64 7.04
Posts: 235

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pljvaldez
Okay, just to clarify. You did the chroot thing and reset the password to nothing.

Now you can get to the graphical login screen. Is that right? Or you don't get any graphical login screen?

Either way, press Alt+F2 and you should get a console login:
Code:
Suse 10.0 machinename tty2
machinename login:
Or something similar. For login, type root and for password hit enter (i.e. leave it blank).

This should let you be logged in as root. Then passwd root to set a new password.
Yes, I can get to the graphical login screen. Alt+F2 doesn't do anything. Why??? However pointing mouse to sessions gives me several options including 'console login' which I select. It then gives the line something like:
Suse 10.0 [i586] kernel2.6.13-15.8-default [tty1]
linux login:

I type in root and it responds "incorrect login". Note it does not ask for my password. Why??? At any rate that's where I'm at now. I do greatly appreciate your patience.
 
Old 02-23-2006, 05:09 PM   #20
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Hmmm. Looks like you may have disabled root login... Let me google a bit to see how to re-enable it...
 
Old 02-23-2006, 05:12 PM   #21
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay, login however you login and lets look at the file /etc/securetty. Tell me what is in it...
 
Old 02-23-2006, 05:17 PM   #22
Red Knuckles
Member
 
Registered: Jan 2006
Location: Colorado USA
Distribution: Debian AMD 64 Testing, Sabayon Linux x86-64 3.4, and Ubuntu AMD 64 7.04
Posts: 235

Original Poster
Rep: Reputation: 30
Unhappy

Quote:
Originally Posted by jomen
By "login-screen" you really mean the menu you get when you boot the machine I suppose - the boot-loader (grub) menu...
just select suse and "return" - if you edited the files correctly...
no boot options - since you did not need them before

you do not select on the boot-screen if you want to login as root
There may be an option to boot into single user mode - this is what pljvaldez was referring to - but it did not work because you where still asked for a password of course...

I looked at the guide mentioned above - there was this in it:

it could be misundersood...
it looks a bit different on my system...

the important thing is:
-the values in these files (in both /etc/passwd and /etc/shadow) are separated by columns ( : )
-the password is represented by the very first of these values - so if you delete the values between the first and the second columns (not the columns itself - mind you!) the password virtually does not exist anymore

Next time you log in you might still be asked for a password - sorry for not verifying this at my machine - you just give none - just press "return"
There you are as root - and the first thing to do would be to run:
passwd root
to set a new one
BTW: you do not have to chroot to do this - you can edit the files as soon as the partition is mounted (as root - from whatever rescue system you do it...)
The login screen is where I select which user [of 3 in this case] to log into Suse. Note all 3 users are me this is a 1 person box in a 1 person house so my security concerns would be from the 'net not any physical presence. Sorry for the garbled language, I just didn't state my case well. The problem now seems to be that I HAVE edited the files in /etc/passwd [To remove the x ONLY] and /etc/shadow to remove the values ONLY {leaving root::::::, not sure exactly how many :]. Now when I try to log in as root [to set new PW] I get "incorrect login". It DOES NOT ask for password which may be the problem???
 
Old 02-23-2006, 05:21 PM   #23
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Did you figure out what is in /etc/securetty?

Anyway, you should put in the following
Code:
console

ttyS0

tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
 
Old 02-23-2006, 05:29 PM   #24
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Also, make sure in /etc/passwd that the root line which you deleted the "x" from also has /bin/bash at the end.
 
Old 02-23-2006, 05:36 PM   #25
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
ok. it is the display-manager you are talking about then - no going to single user from there...(without being root that is)
it is ALT+CTRL+Number_between_1_and_6 to get to a console from the display-manager shown by default.
Can't you login as a normal user - and then change the password for root in a terminal you open then?
/etc/securetty - check this!
and you might tell what command and where (in X or on Console) you tried.
 
Old 02-23-2006, 05:49 PM   #26
Red Knuckles
Member
 
Registered: Jan 2006
Location: Colorado USA
Distribution: Debian AMD 64 Testing, Sabayon Linux x86-64 3.4, and Ubuntu AMD 64 7.04
Posts: 235

Original Poster
Rep: Reputation: 30
"Did you figure out what is in /etc/securetty?"

On my box /etc security is a directory:

xxxxxx@zzzzzz:/etc/security> ls
access.conf fileshare.conf limits.conf pam_pwcheck.conf time.conf
chroot.conf group.conf pam_env.conf pam_unix2.conf

Last edited by Red Knuckles; 02-23-2006 at 05:51 PM.
 
Old 02-23-2006, 05:51 PM   #27
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
It's not security, it's /etc/securetty.
 
Old 02-23-2006, 05:55 PM   #28
Red Knuckles
Member
 
Registered: Jan 2006
Location: Colorado USA
Distribution: Debian AMD 64 Testing, Sabayon Linux x86-64 3.4, and Ubuntu AMD 64 7.04
Posts: 235

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jomen
ok. it is the display-manager you are talking about then - no going to single user from there...(without being root that is)
it is ALT+CTRL+Number_between_1_and_6 to get to a console from the display-manager shown by default.
Can't you login as a normal user - and then change the password for root in a terminal you open then?
/etc/securetty - check this!
and you might tell what command and where (in X or on Console) you tried.
I can log into Suse as regular user and use anything unless it requires root PW. To change root PW requires root access. When in terminal I try to go to su or su - I get:

ben@linux:~> su
su: incorrect password

Note, it does not ASK for PW it just says "incorrect password".
 
Old 02-23-2006, 05:58 PM   #29
Red Knuckles
Member
 
Registered: Jan 2006
Location: Colorado USA
Distribution: Debian AMD 64 Testing, Sabayon Linux x86-64 3.4, and Ubuntu AMD 64 7.04
Posts: 235

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pljvaldez
It's not security, it's /etc/securetty.
Sorry, my noob mistake. Here it is:

#
# This file contains the device names of tty lines (one per line,
# without leading /dev/) on which root is allowed to login.
#
tty1
tty2
tty3
tty4
tty5
tty6
# for devfs:
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
 
Old 02-23-2006, 06:01 PM   #30
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Okay now what does the line for root look like from /etc/passwd?
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FATAL error: root password not recognized smiley_lauf Linux - Newbie 3 02-12-2006 11:18 PM
cd is not recognized newtie SUSE / openSUSE 3 06-13-2005 02:33 AM
eth0 recognized but not recognized? rafc Linux - Newbie 7 04-21-2004 04:13 AM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
Root password not recognized (KDE). . . alpha_male Mandriva 1 09-13-2003 07:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:37 AM.

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