You are not logged in.

#1 2009-07-19 18:21:17

chenct
Member
Registered: 2007-01-13
Posts: 2

[SOLVED] grpck report "password field is not set to x" problem

I got an error report  from  the 'grpck' command, but I have no idea about it.
Could anybody give me some suggestions?

# /usr/sbin/grpck
group root has an entry in /etc/gshadow, but its password field in /etc/group is not set to 'x'
group bin has an entry in /etc/gshadow, but its password field in /etc/group is not set to 'x'
group daemon has an entry in /etc/gshadow, but its password field in /etc/group is not set to 'x'
group sys has an entry in /etc/gshadow, but its password field in /etc/group is not set to 'x'
...

Last edited by chenct (2009-07-21 13:39:53)

Offline

#2 2009-07-20 17:32:55

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED] grpck report "password field is not set to x" problem

Looks like a result of the recent update of the "shadow" package. I solved it by just following the recommendation and putting an 'x' wherever the password was empty:

sed -i -e 's/::/:x:/' /etc/group

Offline

#3 2009-07-21 13:45:59

chenct
Member
Registered: 2007-01-13
Posts: 2

Re: [SOLVED] grpck report "password field is not set to x" problem

ataraxia wrote:

Looks like a result of the recent update of the "shadow" package. I solved it by just following the recommendation and putting an 'x' wherever the password was empty:

sed -i -e 's/::/:x:/' /etc/group

it works. thanks a lot.

Offline

#4 2009-07-21 15:20:58

attila
Member
Registered: 2006-11-14
Posts: 293

Re: [SOLVED] grpck report "password field is not set to x" problem

This works only if you have no line with ':!:' and so repeat the sed with othere paramters in this case. Do anyone knows why the char in /etc/group switch from '!' to 'x'?

Offline

Board footer

Powered by FluxBB