Fedora Linux Support Community & Resources Center
  #1  
Old 22nd January 2005, 07:57 PM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
root password problem

Hi
i am running fedora core 2 on a webserver and suddelnly it didnt recognise my root password

i try to chnage it through the webmn service but nothing happend

also when ur on the shell and try to su as another user it give me all the time incorrect password..on the other hand all users can login through shell execpt the root

i dont know if it is a pam.d problem

anyone can help me to recover my root password

thanks
Reply With Quote
  #2  
Old 22nd January 2005, 08:09 PM
PeTzZz Offline
Retired Community Manager
 
Join Date: Mar 2004
Location: Tartu
Posts: 1,550
Here is a thread that helps to recover root password:
http://www.fedoraforum.org/forum/showthread.php?t=31471
(http://www.fedoraforum.org/forum/showthread.php?t=27141)

NOTE: I don't know why does that problem occur, but I am just linking the thread that helps to recover root password.
Reply With Quote
  #3  
Old 22nd January 2005, 08:11 PM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
Boot into single user mode (which drops you in as root without a password) and change it. To get into single user mode you will need to be at the console and reboot. When the GRUB menu comes up press "a" and add a "1" to the end of the boot line (make sure you have a space before the 1). Press <ENTER> when the root shell comes up type "passwd" and enter the password you want. Now type "exit" and it will boot into the normal runlevel with your new password.
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc
Reply With Quote
  #4  
Old 22nd January 2005, 08:52 PM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
well thanks for your info but i didnt forgot the root password
i know it but it didnt work
well on the up2date it works fine
but when i make su root it didnt recognise it
so thats why i think is the pam.d service problem

on the otherjand its a webserver and i am not able to see the boot menu grub or lilo

is there a way or something else that i can fix this problem

i try also to cp the bash/bin through webmin and own it as rood and chmod it
and then run it as user but it didnt give me the chance to be root

any other idea please
Reply With Quote
  #5  
Old 22nd January 2005, 10:09 PM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
If you haven't upgraded your kernel yet you could use the latest local root exploit of the day. I would have someone with console access try the single user mode method of setting the password first just to see if that fixes the problem. Otherwise yes, could certainly be a pam problem but it's really hard to change anything without being root. At worst you would have to boot from the rescue CD, mount the root file system and repair any problem (pam etc), otherwise you are raptus regaliter.
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc
Reply With Quote
  #6  
Old 22nd January 2005, 10:42 PM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
well its pamd problem but hows come suddenly to happend this ?
onm the other hand is a web server and i didnt have a cd or something like that
so is there other way that i can fix the pam problem througg webmin
i mean what is the procedure to fix the pam.d
and what is the init script that is responsiple for the pam.d auth service
and thanks for your help man
Reply With Quote
  #7  
Old 22nd January 2005, 10:48 PM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
Quote:
Originally Posted by vakou
well its pamd problem but hows come suddenly to happend this ?
onm the other hand is a web server and i didnt have a cd or something like that
so is there other way that i can fix the pam problem througg webmin
i mean what is the procedure to fix the pam.d
and what is the init script that is responsiple for the pam.d auth service
and thanks for your help man
Heh heh, the first step in fixing a pam problem would usually be "su -". :) The pam configuration files are under /etc/pam.d. I can't tell you why something would have changed, if it is indeed a pam problem. I don't use webmin either but I can't imagine it would just change something there without letting you know. What is the latest date on the files under /etc/pam.d? What does your /etc/pam.d/su file have in it? Mine has this (FC3):

Code:
#%PAM-1.0
auth       sufficient   /lib/security/$ISA/pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth       sufficient   /lib/security/$ISA/pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth       required     /lib/security/$ISA/pam_wheel.so use_uid
auth       required     /lib/security/$ISA/pam_stack.so service=system-auth
account    required     /lib/security/$ISA/pam_stack.so service=system-auth
password   required     /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so close must be first session rule
session    required     /lib/security/$ISA/pam_selinux.so close
session    required     /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so open and pam_xauth must be last two session rules
session    required     /lib/security/$ISA/pam_selinux.so open multiple
session    optional     /lib/security/$ISA/pam_xauth.so
Is there anything in your /var/log/messages? Of course the default permissions will not allow you to view it without being root, see what I mean? If you can't "su" then you are hosed, unless you can get console access or exploit a vulnerability. If anyone could just use a backdoor, what would be the point?

Have you tried to ssh directly to the box as root? That would use a different mechanism than "su" and maybe your password will work.

Also, if you do an "rpm -V pam" it will tell you if something has changed in pam since pam was installed.
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc

Last edited by Void Main; 22nd January 2005 at 10:54 PM.
Reply With Quote
  #8  
Old 22nd January 2005, 11:02 PM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
well man first to understand the days of the files didnt change and also in 19 of january i cp all the etc to another dir and have it copy and through webmin i renmae the pam to pam.dd and put the old pam but the problem stays the same...i canot login as root through the shell but my root password is the rightone cause if i try to make up2date it ask me for the root password ans it works fine
my pam -v verison is
$ rpm -V pam
.......T c /etc/pam.d/other
S.5....T c /etc/pam.d/system-auth
S.?..... /lib/security/pam_filter/upperLOWER
S.?..... /sbin/pam_timestamp_check

and on the su file i have

#%PAM-1.0
auth sufficient /lib/security/$ISA/pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required /lib/security/$ISA/pam_wheel.so use_uid
auth required /lib/security/$ISA/pam_stack.so service=system-auth
account required /lib/security/$ISA/pam_stack.so service=system-auth
password required /lib/security/$ISA/pam_stack.so service=system-auth
session required /lib/security/$ISA/pam_stack.so service=system-auth
session optional /lib/security/$ISA/pam_selinux.so multiple
session optional /lib/security/$ISA/pam_xauth.so

so what do u think
Reply With Quote
  #9  
Old 22nd January 2005, 11:14 PM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
There is a utility called "system-config-rootpassword". If up2date recognized your root password, maybe this app will too and allow you to reset your password. I have just never heard of this happening before unless maybe the permissions on the "su" command itself have somehow changed (should be owned by root and "rwsr-xr-x").
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc
Reply With Quote
  #10  
Old 22nd January 2005, 11:28 PM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
system-config-rootpassword
system-config-rootpassword requires a currently running X server

well its a dedicated servere man
Reply With Quote
  #11  
Old 22nd January 2005, 11:33 PM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
Quote:
Originally Posted by vakou
system-config-rootpassword
system-config-rootpassword requires a currently running X server

well its a dedicated servere man
I run all kinds of dedicated servers. ssh provides X11 forwarding. It's just a little popup X app (although I figured it would have a text based version if you didn't have X running). "ssh -x yourserver" if you don't have X11 forwarding turned on by default.
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc
Reply With Quote
  #12  
Old 22nd January 2005, 11:51 PM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
well i am not running x did u have a link with the text based version cause i cant fint one
and thanks for all
on the other hand isit risky to remove pam.d
Reply With Quote
  #13  
Old 23rd January 2005, 12:06 AM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
Quote:
Originally Posted by vakou
well i am not running x
That's too bad.

Quote:
on the other hand isit risky to remove pam.d

If you don't mind taking a chance of never being able to log into your system again it's not.

So let me get this straight. You *do* have root access via webmin? If so why don't you just edit your /etc/sudoers file and give your username permission to run a "bash" shell as root via sudo?
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc

Last edited by Void Main; 23rd January 2005 at 12:11 AM.
Reply With Quote
  #14  
Old 23rd January 2005, 12:38 AM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
ok man done it and thanks
for everything....
Reply With Quote
  #15  
Old 23rd January 2005, 11:18 AM
vakou Offline
Registered User
 
Join Date: Jan 2005
Posts: 33
well is it possible an update in the future to fix that problem with the pam.d
Reply With Quote
Reply

Tags
password, problem, root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F11 install problem after root password Salamandra Installation, Upgrades and Live Media 2 13th June 2009 08:43 PM
Help - Root password problem after install dispose256 Using Fedora 5 6th December 2008 05:29 AM
root password problem mizzy Using Fedora 44 5th March 2008 12:40 AM
problem with gnome and root password ardchoille Using Fedora 2 29th October 2005 03:12 AM


Current GMT-time: 14:23 (Thursday, 27-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Haeundae Beach Photos on Instagram - Beijing Olympic Park - Kvareli Lake Resort Photos