shadow passwords not enabled (no rootpw)

Bug #48918 reported by Matt Whiteley
6
Affects Status Importance Assigned to Milestone
kickseed (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

the applicable lines in our kickstart file are as follows:

user --disabled
rootpw --iscrypted <password>
auth --useshadow --enablemd5 --enablenis --nisdomain <nisdomain> --nisserver <nisserver>

After install, there is no /etc/shadow although running shadowconfig on creates one. During install you can see the correct hash has been parsed and input into the generated preseed file. The root account is then available with no password. This is a security issue at that point, but since this is not the normal method of installing, I didn't copy the security team.

Revision history for this message
Colin Watson (cjwatson) wrote :

I think I may have fixed this in an earlier dapper-updates upload:

kickseed (0.35.1) dapper-updates; urgency=low

  * Fix passwd/root-login preseeding (closes: Malone #48038).

 -- Colin Watson <email address hidden> Mon, 5 Jun 2006 02:22:10 +0100

I'm assuming you're running Dapper? If so, could you try adding 'preseed passwd/root-login boolean false' to your Kickstart file for now and see if it works around your problem?

Revision history for this message
Matt Whiteley (mwhiteley) wrote :

Yes, we are running dapper.

I added that line below the above and the installer stopped and asked me for a name for the first user account. Placing it above the 3 lines has the same effect as leaving it out.

Revision history for this message
Colin Watson (cjwatson) wrote :

Oh, buggeration, right, I misread your preseed file and I've just noticed another problem in the code ...

Try 'preseed passwd/root-login boolean true' instead.

Revision history for this message
Matt Whiteley (mwhiteley) wrote :

That makes more sense now. However, it still had the same results with no /etc/shadow created. Is it supposed to matter what order the auth, user, rootpw and preseed lines are in?

Revision history for this message
Matt Whiteley (mwhiteley) wrote :

This seems a lot worse to me than "low urgency" if kickstart is supposed to be a supported method of installing. Should we be running `shadowconfig on` in the postinstall or something? This was working previously with dapper, from looking back at logs it appears to have been in the march/april range.

Revision history for this message
Mark Reitblatt (mark-reitblatt) wrote :

What's the story on this? Did this get fixed and the bug simply forgotten?

Ian Jackson (ijackson)
Changed in kickseed:
importance: Untriaged → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

For the record, we do run shadowconfig on if passwd/shadow is true, which is (a) the default and (b) preseeded by this Kickstart file. I think it must be something a little less obvious.

Revision history for this message
Colin Watson (cjwatson) wrote :

Matt: ordering of different commands is not important in Kickstart files. (Ordering of the same command, for example multiple 'part' commands, may be relevant.)

Revision history for this message
Colin Watson (cjwatson) wrote :

The only difference between test-kickseed output for dapper and dapper-updates is:

-d-i passwd/root-login true
+d-i passwd/root-login boolean true

It seems unlikely that the old output would cause shadow passwords to be disabled, but I'll check it.

Revision history for this message
William Oakley (woakley) wrote :

Our user configuration for Kickstart is as follows:

# config section
auth --useshadow --enablemd5
rootpw --iscrypted xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
user nttuser --fullname "xxxx user" --iscrypted --password xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

And we don't notice any problems with the creation of the shadow file. Perhaps this is now fixed?

Revision history for this message
Andy Delcambre (adelcambre) wrote :

I work with matt (the original reporter) and it is still not working for us. We got around it for a while with some sed magic.

Our user config section looks like:

rootpw --iscrypted xxxxxxxxxxxxxxxxxxxxxxxxxx
user --disabled
auth --useshadow --enablemd5 --enablenis --nisdomain ournisdomain --nisserver ournisserver

A shadow file is created with no root password (root:x:...)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.