cancel
Showing results for 
Search instead for 
Did you mean: 

Cant change root password

SOLVED
Go to solution
Aungshuman Paul
Regular Advisor

Cant change root password

Hi,

When I try to change the root password, It shows the folloiwng error. ( This is a cluster node) :

# pwck

[/etc/passwd] tftp:*:108:105:Trivial FTP user:/home/tftp:/usr/bin/false
Login directory not found

[/etc/passwd]
Too many/few fields

root@erpdb2 [/stand]
8 REPLIES
Sajjad Sahir
Honored Contributor

Re: Cant change root password

Dear friend

to change a passwd command is passwd

#passwd

thanks and regards

Sajjad Sahir
Michal Kapalka (mikap)
Honored Contributor

Re: Cant change root password

hi,

pwck is only for checking if all entries in the /etc/passwd file are correct.

to change the pass user : passwd

mikap
Aungshuman Paul
Regular Advisor

Re: Cant change root password

Dear ,

Actually You cant understand the scenario. When I tried to change the password using "passwd" command it failed and asked for run pwck.

Once again this is an cluster node. Is there any special command need for change the root password.


Aungshu
Basheer_2
Trusted Contributor

Re: Cant change root password

Dear Paul

when you run pwck and pwck -l

the error you are getting is
Login Dir /home/tftp not found for tftp.

this is normal as these accounts are created by OS.

There are no other messages showing it can't change the password

johnsonpk
Honored Contributor
Solution

Re: Cant change root password

Hi

Please execute as below and paste the screen shot

#/sbin/passwd root

Rgds
Johnson
Sajjad Sahir
Honored Contributor

Re: Cant change root password


Dear Friend

there is no special command to change the root passwd
if u want u can include complete path what jhonson said above.

thanks and regards

Sajjad Sahir
Aungshuman Paul
Regular Advisor

Re: Cant change root password

Thanks the command "/sbin/passwd root" can cahnge the password. Thanks for the help.
Aungshuman Paul
Regular Advisor

Re: Cant change root password

Thanks my problem soved by using fullpath "/sbin/passwd root" command.