Default users missing from /etc/passwd


4 posts in this topic Last Reply

Recommended Posts

Description:

 

Systems which have been upgraded over time are missing a bunch of entries in their /etc/passwd and shadow files, as compared to systems that start fresh with unRAID 6.3.0-rc3.

 

Over in this thread, we learned that the "avahi" user is required for proper operation, not sure if missing other users cause similar problems.

 

How to reproduce:

 

Compare the /etc/passwd and shadow files from a fresh system to a system that has been upgraded over time.  On my system, the following entries were missing:

 

oprofile:x:51:51:oprofile:/:/bin/false
usbmux:x:52:83:User for usbmux daemon:/var/empty:/bin/false
sddm:x:64:64:User for SDDM:/var/empty:/bin/false
pulse:x:65:65:User for PulseAudio:/var/run/pulse:/bin/false
apache:x:80:80:User for Apache:/srv/httpd:/bin/false
haldaemon:x:82:82:User for HAL:/var/run/hald:/bin/false
polkitd:x:87:87:PolicyKit daemon owner:/var/lib/polkit:/bin/false

 

and messagebus on the upgraded system was:

messagebus:x:81:81::/dev/null:/bin/false

as compared to a new system:

messagebus:x:81:81:User for D-BUS:/var/run/dbus:/bin/false

 

Expected results:

 

Upgraded systems should have the same set of default passwd entries as fresh systems.

 

Actual results:

 

Upgraded systems do not have the same default passwd entries.

 

Other information:

 

I did the following to bring my system up to date, it seems to have worked:

  • Rename /boot/config/passwd to passwd.sav and shadow to shadow.sav
  • Reboot
  • Change the root password, this creates new passwd and shadow files in /boot/config
  • Merge my users from the sav files to the new files in /boot/config
  • Reboot again

Link to post
  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.