[arch-general] Messed up {g,u}id for uuidd
Hello, I had the brilliant idea couple of weeks ago to merge the /etc/{shadow,group,passwd} . I know now that I shouldn't be merging those and ignore the pacnew files. Now i'd like to fix these. The status report from systemd is: ~# systemctl status -l shadow shadow.service - Verify integrity of password and group files Loaded: loaded (/usr/lib/systemd/system/shadow.service; static) Active: failed (Result: exit-code) since Wed 2014-08-20 08:17:19 BST; 5min ago Process: 613 ExecStart=/usr/bin/pwck -r (code=exited, status=2) Main PID: 613 (code=exited, status=2) Aug 20 08:17:19 tiamat pwck[613]: user 'uuidd': no group 68 Aug 20 08:17:19 tiamat pwck[613]: pwck: no changes Aug 20 08:17:19 tiamat systemd[1]: shadow.service: main process exited, code=exited, status=2/INVALIDARGUMENT Aug 20 08:17:19 tiamat systemd[1]: Failed to start Verify integrity of password and group files. Aug 20 08:17:19 tiamat systemd[1]: Unit shadow.service entered failed state. Further info ~# cat /etc/shadow | grep uuidd uuidd:x:14871:::::: ~# cat /etc/group | grep uuidd uuidd:x:997: ~# cat /etc/passwd | grep uuidd uuidd:x:68:68:uuidd:/:/sbin/nologin ~# /usr/bin/pwck -r user 'uuidd': no group 68 pwck: no changes What should I be changing to fix this? If I change the gid from 997 to 68 would this fix it? Would it be other implications? Thanks for the input Leonidas --
On Wed, Aug 20, 2014 at 8:55 AM, Leonidas Spyropoulos <artafinde@gmail.com> wrote:
Hello,
I had the brilliant idea couple of weeks ago to merge the /etc/{shadow,group,passwd} . I know now that I shouldn't be merging those and ignore the pacnew files. Now i'd like to fix these. The status report from systemd is:
snip
Further info ~# cat /etc/shadow | grep uuidd uuidd:x:14871:::::: ~# cat /etc/group | grep uuidd uuidd:x:997: ~# cat /etc/passwd | grep uuidd uuidd:x:68:68:uuidd:/:/sbin/nologin ~# /usr/bin/pwck -r user 'uuidd': no group 68 pwck: no changes
What should I be changing to fix this? If I change the gid from 997 to 68 would this fix it? Would it be other implications?
If it is any help my output from the same cat commands is: $ sudo cat /etc/passwd | grep uuidd uuidd:x:68:68:uuidd:/:/usr/bin/nologin $ sudo cat /etc/shadow | grep uuidd uuidd:x:14871:::::: $ sudo cat /etc/group | grep uuidd uuidd:x:68: which indeed suggests that your /etc/group for this uuidd line might have 68 instead of 997 - but of course your files may have other differences also. In addition I have /usr/bin/nologin in the passwd file though that should not matter. Did you have any backup copies of the original files before making your merge changes? Retrieval of the backup copies would at least allow a comparison to be made before you made the merge. -- mike c
On 20/08/14, Mike Cloaked wrote:
If it is any help my output from the same cat commands is:
$ sudo cat /etc/passwd | grep uuidd uuidd:x:68:68:uuidd:/:/usr/bin/nologin $ sudo cat /etc/shadow | grep uuidd uuidd:x:14871:::::: $ sudo cat /etc/group | grep uuidd uuidd:x:68:
which indeed suggests that your /etc/group for this uuidd line might have 68 instead of 997 - but of course your files may have other differences also. In addition I have /usr/bin/nologin in the passwd file though that should not matter.
Did you have any backup copies of the original files before making your merge changes? Retrieval of the backup copies would at least allow a comparison to be made before you made the merge.
-- mike c
Hello Just to note that I fixed this by reading about {g,u}id and some specific stuff for uuid daemon. I aligned the gid from uuidd from the /etc/passwd to the /etc/group after I searched for files and folders created from the uuidd daemon and returned none. [1] [2] Cheers [1]: ~# find / -uid <uuidd-uid from passwd file> [2]: ~# find / -gid <uuidd-gid from passwd file> --
participants (2)
-
Leonidas Spyropoulos
-
Mike Cloaked