0

I have Ubuntu 12.04. Installed libnss-extrausers and configured nsswitch.conf. Now, users registered in /var/lib/extrausers/{passwd,group,shadow} are recognized by the system and can login.

However, common user management programs (passwd, userdel, usermod, groupadd, groupmod) only work for users registered at /etc/{passwd,group,shadow}

Is there any configuration to make these programs work with libnss-extrausers, or simply recognize /var/lib/extrausers/{passwd,group,shadow} as user data files?

xlembouras
  • 8,215
  • 4
  • 33
  • 42
morais
  • 161
  • 1
  • 1
  • 9
  • As a workaround I configured my machine as NIS server of itself, but I feel libnss-extrausers should be a much simpler way to have extra user files, in case anyone comes up with a solution. – morais May 06 '15 at 19:46

1 Answers1

-1

I had the same issue. It was a permission one. Try:

sudo chmod +r /var/lib/extrausers/*

Worked for me.

Cheers,

Vitaliy
  • 183
  • 1
  • 2
  • 8
  • 1
    Isn't that a security issue? `/etc/shadow` has permission 640 instead of 644. – morais Oct 16 '14 at 15:35
  • Also, it didn't work. Are you also using Ubuntu? Any extra configuration beyond editing those 3 lines in /etc/nsswitch.conf? – morais Oct 16 '14 at 15:58
  • I agree. My suggested command is a little bit "dirty". The idea is to have the same permissions as for the corresponding group|passwd|shadow in /etc. – Vitaliy Oct 20 '14 at 08:03
  • Ubuntu 12.04.1, libnss-extrausers=0.5-1 – Vitaliy Oct 20 '14 at 08:07
  • and I don't remember any other extra configuration beyond the nsswitch.conf – Vitaliy Oct 20 '14 at 08:09
  • Mine is also libnss-extrausers 0.5-1 (Ubuntu 12.04.4). Changed permissions to 644. Still getting "Authentication token manipulation error" when trying to change password. – morais Oct 21 '14 at 14:17