Bug 1369979 - user accounts created by shadow-utils-4.3.1 cannot be used ('This account is currently not available')
Summary: user accounts created by shadow-utils-4.3.1 cannot be used ('This account is ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: rawhide
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-24 23:12 UTC by Adam Williamson
Modified: 2016-08-25 11:16 UTC (History)
3 users (show)

Fixed In Version: shadow-utils-4.3.1-2.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-25 11:16:00 UTC
Type: Bug


Attachments (Terms of Use)

Description Adam Williamson 2016-08-24 23:12:29 UTC
If I create a user account:

[root@localhost ~]# useradd -U -G wheel -d /home/test3 -m -c test3 test3

with shadow-utils 4.3.1-1.fc26, I cannot use it:

[root@localhost ~]# su test3
This account is currently not available.

but if I do the same with shadow-utils 4.2.1-11.fc25:

[root@localhost ~]# useradd -U -G wheel -d /home/test2 -m -c test2 test2

it works fine:

[root@localhost ~]# su test2
[test2@localhost root]$ 

This is how anaconda creates user accounts, so a consequence of this is that you cannot log in as any account created by anaconda. This breaks most openQA tests at present (as they tend to try and log in as a regular user after boot).

The offending build isn't in F25, fortunately...

Comment 1 Adam Williamson 2016-08-24 23:15:25 UTC
it seems that 4.3.1 sets the user's shell as /sbin/nologin , while 4.2.1 sets it as /bin/bash .

Comment 2 Adam Williamson 2016-08-24 23:16:42 UTC
'man useradd' claims the default shell is whatever's specified as SHELL= in /etc/default/useradd , but that file says:

SHELL=/bin/bash

i.e. it's not the file that's at fault, it's useradd's reading of it or something.


Note You need to log in before you can comment on or make changes to this bug.