Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

OffbeatAdam

macrumors newbie
Original poster
Jan 15, 2008
3
0
Hey Everyone,

I don't know if anyone else experienced this, however I am working on re-configuring my dev environment with postgres 8.3. I found some interesting phenomena that happened post-Lion upgrade.

The following is an ls -lathr output from my /var directory:


drwxr-x--- 2 _amavisd _amavisd 68B Jun 13 13:48 virusmails
drwxr-xr-x 4 root wheel 136B Jun 13 16:38 rpc
drwxr-x--- 2 _postgres _postgres 68B Jun 13 17:02 pgsql_socket
drwx------ 2 root wheel 68B Jun 13 18:59 agentx
drwxr-xr-x 2 root wheel 68B Jun 17 22:43 xgrid
drwxr-xr-x 2 root sys 68B Jun 18 14:44 empty
drwx------ 2 root wheel 68B Jun 18 14:44 backups
drwxr-xr-x 2 daemon wheel 68B Jun 18 14:44 rwho
drwxr-xr-x 2 root wheel 68B Jun 18 14:44 netboot
drwxrwxr-x 2 root mail 68B Jun 18 14:44 mail
drwxr-x--- 3 _jabber _jabber 102B Jul 20 17:17 jabberd
drwxr-xr-x 2 root wheel 170B Jul 20 17:18 named
drwxr-xr-x 2 root wheel 102B Jul 20 17:18 msgs
drwxr-xr-x 2 root wheel 102B Jul 20 17:18 lib
drwxr-xr-x 6 daemon wheel 272B Jul 20 17:18 at
drwxr-x--- 4 _amavisd _amavisd 204B Jul 20 17:18 amavis
drwxr-xr-x 6 root wheel 238B Jul 20 17:19 spool
drwxr-xr-x@ 6 root wheel 204B Jul 20 17:23 ..
drwxr-xr-x 4 root wheel 204B Jul 20 17:26 yp
drwx------ 2 root wheel 170B Jul 20 18:06 audit
drwxr-xr-x 3 root wheel 102B Jul 20 20:06 servermgrd
drwxr-xr-x 29 root wheel 986B Jul 20 20:06 .
drwxr-xr-x 2 root wheel 204B Jul 20 23:39 vm
drwxr-xr-x 14 root wheel 1.0K Jul 21 03:15 log
drwxr-xr-x 21 root wheel 1.7K Jul 21 11:59 db
drwxr-x--- 3 root wheel 238B Jul 21 12:41 root
drwxr-xr-x 5 root wheel 170B Jul 21 14:10 folders
drwxrwxrwt 3 root wheel 102B Jul 21 15:38 tmp
drwxrwxr-x 4 root daemon 1.2K Jul 21 15:48 run


If you notice, some usernames have been changed. The primary one that caused me trouble is the _postgres.

The normal username was postgres. It appears that a lot of my custom unix usernames (_jabberd wasn't mine, but it is another example).

This was a simple fix, although the command takes a little bit to run:

sudo find / -user _postgres -exec chown -R postgres:postgres {} \;

This looks for any files with the owner of _postgres and changes it with the appropriate chown command. This has to be run as sudo.

I'm not sure why Lion did this to my users though.

In any case, still working through some bugs, but I thought it would be good information to share.

Thanks


Adam
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.