mattpatey
August 31st, 2012, 04:54 PM
Please can anyone help me? In ubuntu 12.04 (64bit) I changed the UID for a user from 1000 to 1027. (The original reason for this was that I read that having the same UID for the same users on different PCs makes things easier for setting up samba networking, and this was a clean install so it seemed like a good idea at the time!). I changed it using the following:
usermod -u 1027 dave
After this I couldn't log in with the GUI. All the files in /home/dave seemed to be owned by dave:dave, but I ran chmod -Ru /home/dave to see if this fixed things. It didn't. So I decided to change things back to how they were (again using usermod), but I still can't log in.
In /var/log/auth.log I get can see a couple of errors:
... gnome-keyring daemon [9068] couldn't create socket directory: Permission denied
... gnome-keyring daemon [9068] couldn't bind to control socket: /tmp/keyring-pcbweM/control: No such file or directory
In /var/log/syslog I also get some errors on logging in:
... pulseaudio [10390]: [autospawn] core-util.c: Failed to create random directory /tmp/pulse-tXODLWvtrqv: Permission denied
... pulseaudio [10390]: [autospawn] core-util.c: Failed to symlink /var/lib/lightdm/.pulse/b621767c265ec46b75a559f200000003-runtime.tmp: Permission denied
... pulseaudio [10390]: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
... pulseaudio [10390]: [autospawn] main.c: Failed to acquire autospawn lock
If I try to create new users I get the same problem. I can still do GUI logins with another (previously existing) user on the system. Is there some way to fix this without reinstalling?
usermod -u 1027 dave
After this I couldn't log in with the GUI. All the files in /home/dave seemed to be owned by dave:dave, but I ran chmod -Ru /home/dave to see if this fixed things. It didn't. So I decided to change things back to how they were (again using usermod), but I still can't log in.
In /var/log/auth.log I get can see a couple of errors:
... gnome-keyring daemon [9068] couldn't create socket directory: Permission denied
... gnome-keyring daemon [9068] couldn't bind to control socket: /tmp/keyring-pcbweM/control: No such file or directory
In /var/log/syslog I also get some errors on logging in:
... pulseaudio [10390]: [autospawn] core-util.c: Failed to create random directory /tmp/pulse-tXODLWvtrqv: Permission denied
... pulseaudio [10390]: [autospawn] core-util.c: Failed to symlink /var/lib/lightdm/.pulse/b621767c265ec46b75a559f200000003-runtime.tmp: Permission denied
... pulseaudio [10390]: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
... pulseaudio [10390]: [autospawn] main.c: Failed to acquire autospawn lock
If I try to create new users I get the same problem. I can still do GUI logins with another (previously existing) user on the system. Is there some way to fix this without reinstalling?