You are not logged in.

#1 2006-09-11 06:16:02

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

new shadow tools, all users please read

Hi
the new shadow tools introduce 2 new checking tools on consistency of groups
and passwd, due to a missing correct gshadow file in filesystem package, the
new shadow package will trigger warnings like this to logs:
---snip
no matching group file entry in /etc/gshadow
add group 'root' in /etc/gshadow ?No
no matching group file entry in /etc/gshadow
add group 'bin' in /etc/gshadow ?No
--- snap
to fix these warnings,
just run grpck and pwck as root
greetings
tpowa

Offline

#2 2006-09-11 07:46:32

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: new shadow tools, all users please read

erm, why don't we run these on install of the shadow package? if it's safe for a user to run, why don't we just do it?

Offline

#3 2006-09-11 07:50:08

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: new shadow tools, all users please read

it needs user interaction if errors are detected, so not a go in .install file

Offline

#4 2006-09-11 08:29:51

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: new shadow tools, all users please read

Update:
new shadow 4.0.18.1-2 package will run grpck on upgrade,
if still errors are reported you have to fix them by hand then.
greetings
tpowa

Offline

#5 2006-09-11 08:32:11

mclang
Member
From: Finland
Registered: 2005-10-24
Posts: 79

Re: new shadow tools, all users please read

I got also  a lot of other 'no matching group' lines when running 'grpck' - do I answer 'No' to all or what?

And 'pwck' gave:
user lp: directory /home/lp does not exist
pwck: no changes

Is this ok?


Duettaeánn aef cirrán Cáerme Gláeddyv. Yn á esseáth.

Offline

#6 2006-09-11 09:12:56

tpowa
Developer
From: Lauingen , Germany
Registered: 2004-04-05
Posts: 2,322

Re: new shadow tools, all users please read

you have somehow a lp user on your system, where does this come from?

Offline

#7 2006-09-11 22:32:59

anakin
Member
From: Portugal
Registered: 2006-09-11
Posts: 85
Website

Re: new shadow tools, all users please read

Just to note "yes | grpck" in shadow.install also blindly adds an "x" character on the second field of each and every /etc/group entry in case there's a faulty /etc/gshadow whereas a correct /etc/gshadow produces no effect.

Though it's good practice to place the "x" there it means /etc/group will now differ from the default one on the filesystem package (which only places the "x" on some groups) even if the user didn't change it previously adding any groups or members which then leads pacman to eventually create an unnecessary /etc/group.pacnew while upgrading filesystem. Not a real problem as most users have obviously changed their initial /etc/group adding new members therefore always getting the /etc/group.pacnew.

Anyway, what's the rationale behind placing the "x" only on video, floppy, storage and power groups on the default /etc/groups in the filesystem package?


www.geekslot.com - a place where peculiar people fit

Offline

#8 2006-09-15 11:42:47

mclang
Member
From: Finland
Registered: 2005-10-24
Posts: 79

Re: new shadow tools, all users please read

tpowa wrote:

you have somehow a lp user on your system, where does this come from?

Hmm, don't know really where that comes from... Well, have to remove it.


Duettaeánn aef cirrán Cáerme Gláeddyv. Yn á esseáth.

Offline

Board footer

Powered by FluxBB