Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1687985 - My user account doesn't appear in gnome-control-center; AccountsService identifies it as a system account due to mismatch between /etc/shells and /etc/passwd
Summary: My user account doesn't appear in gnome-control-center; AccountsService ident...
Alias: None
Product: Fedora
Classification: Fedora
Component: accountsservice
Version: 29
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Pete Walter
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2019-03-12 20:34 UTC by Sam Thursfield
Modified: 2019-03-12 21:20 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2019-03-12 21:18:45 UTC

Attachments (Terms of Use)
Log of `gnome-control-centre --verbose users` (deleted)
2019-03-12 20:39 UTC, Sam Thursfield
no flags Details
Screenshot of gnome-control-center showing the missing user (deleted)
2019-03-12 20:40 UTC, Sam Thursfield
no flags Details
Log of `/usr/libexec/accounts-daemon --verbose` (deleted)
2019-03-12 20:58 UTC, Sam Thursfield
no flags Details

Description Sam Thursfield 2019-03-12 20:34:41 UTC
Description of problem:

My user account doesn't appear in the GNOME "users" panel. This problem occured one day, possibly when I had Fedora 27 installed, and is still present in Fedora 29.

I can still log in as my user. However, I had to create a 2nd 'fake' user to avoid seeing 'gnome-initial-setup' each time I boot.

Version-Release number of selected component (if applicable):

Fedora 29
gnome-control-center 3.30.3

How reproducible:
Always occurs on my machine.

I've not tried to reproduce on a clean Fedora install.

Comment 1 Sam Thursfield 2019-03-12 20:39:12 UTC
Created attachment 1543371 [details]
Log of `gnome-control-centre --verbose users`

Here's what I see from gnome-control-center.

Comment 2 Sam Thursfield 2019-03-12 20:40:23 UTC
Created attachment 1543372 [details]
Screenshot of gnome-control-center showing the missing user

Here's a screenshot of gnome-control-centre. Only the user 'why' is shown (this is the dummy user I created to workaround the problem). The user 'sam' (my real account) is hidden.

Comment 3 Sam Thursfield 2019-03-12 20:46:55 UTC
This looks a lot like (which was autoclosed in 2015 but not fixed)

Comment 4 Sam Thursfield 2019-03-12 20:58:37 UTC
Created attachment 1543427 [details]
Log of `/usr/libexec/accounts-daemon --verbose`

This log shows that accountsservice is ignoring user 'sam' because it incorrectly identifies it as a system user.

So the situation is similar to the one described in ... but not the same, because this is a local user and it has a regular password in /etc/shadow.

Also, changing and deleting the file /var/lib/AccountsService/users/sam doesn't fix the issue. The log attached was taken after I deleted that file.

Comment 5 Sam Thursfield 2019-03-12 21:18:45 UTC
I built accounts-service from Git and set a GDB breakpoint to discover why my user was being classified as a system user. It turned out to be due to my configured shell.

Here's my /etc/passwd entry:

        sam:x:1000:1000:Sam Thursfield:/home/sam:/bin/fish

Here's what I had in /etc/shells:


Notice that it lists /usr/bin/fish but not /bin/fish :/

It looks like this was caused by a bug in the packaging for 'fish', which has already been fixed here:

So, here ends my journey... hopefully this log will be of some use for others.

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