LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2014, 02:57 AM   #1
arun natarajan
Member
 
Registered: Jun 2014
Posts: 96

Rep: Reputation: Disabled
Not able change root user passwd in init 1


hi friends,

Am not able to change the root user password even in run level 1 (init 1).

Pls help.
 
Old 10-09-2014, 03:14 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by arun natarajan View Post
Am not able to change the root user password even in run level 1 (init 1).
please tell us exactly what you're doing and what happens.
I suppose you're logged in as root (using the old password).
Then you issue the 'passwd' command.

What happens then? Are there any error messages? Which ones?

[X] Doc CPU
 
Old 10-10-2014, 05:17 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
And is the root filesystem mounted read-only?
 
Old 10-12-2014, 06:30 AM   #4
arun natarajan
Member
 
Registered: Jun 2014
Posts: 96

Original Poster
Rep: Reputation: Disabled
Hi ,

PFAs for requested info and let me know if any more info is required.
Attached Thumbnails
Click image for larger version

Name:	ROOT PASSWD.jpg
Views:	16
Size:	122.0 KB
ID:	16627   Click image for larger version

Name:	fdsik.png
Views:	15
Size:	147.2 KB
ID:	16629  
 
Old 10-12-2014, 06:43 AM   #5
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
It seems like the chpasswd command wants the new password to follow it. Something like this:
Code:
# chpasswd <put new password here>
That's what I get from the error message your received.
jdk
 
Old 10-12-2014, 06:49 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I thought the command would be
Quote:
passwd root
 
Old 10-12-2014, 06:53 AM   #7
mruas
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Hi Arun,
You have to disable SElinux then run passwd command eg:

[root@redhat /]# setenforce 0

[root@redhat /]# passwd
New Password:
Retype New Pasword:
passwd: all authentication tokens updated successfully.

Last edited by mruas; 10-12-2014 at 06:56 AM.
 
Old 10-12-2014, 07:42 AM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by mruas View Post
Hi Arun,
You have to disable SElinux then run passwd command eg:

[root@redhat /]# setenforce 0

[root@redhat /]# passwd
New Password:
Retype New Pasword:
passwd: all authentication tokens updated successfully.
No need to disable SELinux.

That is how the passwd utility is supposed to be used. Now if it works with SELinux disabled, then you have a corrupted system - something (likely passwd) has the wrong security labels.
 
Old 10-12-2014, 08:16 AM   #9
arun natarajan
Member
 
Registered: Jun 2014
Posts: 96

Original Poster
Rep: Reputation: Disabled
It worked mruas.

Thank you and thank you all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to change the root-passwd on a OpenSuse-System? sayhello_to_the_world Linux - Newbie 1 08-08-2013 05:50 AM
su: Authentication failure for root user even login wright user passwd jsaravana87 Linux - Server 1 02-09-2012 12:36 PM
how to change root passwd (if forgotten) abd_bela Red Hat 1 08-10-2011 11:38 AM
trying to change root password with the passwd command he04798 Red Hat 5 01-17-2010 12:01 PM
user can change passwd kelper Linux - Software 3 08-28-2003 05:17 AM


All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration