- Joined
- Nov 30, 2016
- Messages
- 2
- Reaction score
- 0
- Points
- 1
I just installed an update (2.7.11) for XQuartz, logged out and logged in, and am now getting weird UID related errors attempting to ssh out of my mac:
$ ssh macbook
No user exists for uid 501
The error appears to be a local error on the mac itself, not a network issue.
This id is in fact my uid:
$ id
uid=501 gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701,33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),101
$ echo $UID
501
but id doesn't recognize it explicitly:
$ id -u 501
id: 501: no such user
$ echo $USER
pjoot
$ id pjoot
id: pjoot: no such user
$ cd
$ ls -ld .
drwxr-xr-x+ 81 501 staff 2754 30 Nov 18:52 .
I also don't appear to be able to run sudo anymore:
$ sudo vim /etc/passwd
sudo: unknown uid 501: who are you?
(I thought I'd try to hack in an /etc/passwd entry for id=501 for myself).
The highest entry I have in /etc/passwd now 252:
...
_ondemand
:249:249:On Demand Resource Daemon:/var/db/ondemand:/usr/bin/false
_xserverdocs
:251:251:OS X Server Documents Service:/var/empty:/usr/bin/false
_wwwproxy
:252:252:WWW Proxy:/var/empty:/usr/bin/false
My suspicion is that the XQuartz update has messed things up. How can this be repaired?
Peeter
$ ssh macbook
No user exists for uid 501
The error appears to be a local error on the mac itself, not a network issue.
This id is in fact my uid:
$ id
uid=501 gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),701,33(_appstore),100(_lpoperator),204(_developer),395(com.apple.access_ftp),398(com.apple.access_screensharing),101
$ echo $UID
501
but id doesn't recognize it explicitly:
$ id -u 501
id: 501: no such user
$ echo $USER
pjoot
$ id pjoot
id: pjoot: no such user
$ cd
$ ls -ld .
drwxr-xr-x+ 81 501 staff 2754 30 Nov 18:52 .
I also don't appear to be able to run sudo anymore:
$ sudo vim /etc/passwd
sudo: unknown uid 501: who are you?
(I thought I'd try to hack in an /etc/passwd entry for id=501 for myself).
The highest entry I have in /etc/passwd now 252:
...
_ondemand

_xserverdocs

_wwwproxy

My suspicion is that the XQuartz update has messed things up. How can this be repaired?
Peeter