Saturday, May 12, 2018

16.04 - Lost users on change of uid/gid

Installing 16.04.01.



I have installed Ubuntu with my own user details, james. I have then created two other users, hacker, for being able to adjust my own account and toor, to have an account I can log into with root privileges.



I edited /etc/passwd and /etc/group to change the uid/gid of hacker from 1001 to 502 and of toor from 1002 to 0. I also changed uid and gid on the /home/xxx directories to match, and changed the home directory for toor to /root. When I did this, the two accounts disappeared from the list of Users under Settings.



I subsequently ran usermod on the hacker account and was told that nothing was changed.




I have now run find / -uid 1001 -exec chown 502 {} + and a similar command for gid. Still no sign of the two accounts when I log in.



I know the users exist in the system as I tried to create a new hacker account and was told that it already existed.



Any ideas what I have missed and how to reinstate the accounts in a) Settings and b) the login screen?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...