Hi Sami,

Digging this up once again:

On 03/02/2012 07:45, Chris Withers wrote:
Digging up an old thread, I seem to remember you emailed me about some
changes made to make Jenkins installations on Mac OS more sane.

I believe I advocated having the Jenkins install set up a 'jenkins' user
in the same way that the Postgres install sets up a 'postgres' user.

Now, you emailed me a while after that about some changes you'd made,
and I then managed to lose that email.

I just upgraded my main Jenkins instance to 1.472 by using the Mac OS X installer. I found the checkbox to install as a 'jenkins' user and checked it. (I also unchecked the 'install as daemon' checkbox, what happens if you leave them both checked?)

So, it does now look like my Jenkins home is owned by a user called Jenkins:

MiniMe:Jenkins root# ls -lah /Users/Shared/Jenkins/
total 0
drwxr-xr-x   5 jenkins  jenkins   170B Jun 30 14:49 .
drwxrwxrwt   6 root     wheel     204B Dec 27  2011 ..
drwxr-xr-x   3 jenkins  jenkins   102B Jun 30 14:49 .pip
drwxr-xr-x  80 jenkins  jenkins   2.7K Jun 30 14:39 Home
drwx------   3 jenkins  jenkins   102B Jun 30 13:28 Library

However, I still can't sudo to this user:

MiniMe:Jenkins root# sudo -u jenkins -i
MiniMe:Jenkins root# whoami
root

Contrast this with sudoing to postgres on another Mac OS X machine:

buzzkill:~ chris$ sudo -u postgres -i
Password:
buzzkill:~ postgres$ whoami
postgres

Have I done something wrong or is there still a way to go with the new jenkins user support on Mac OS X?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk


Reply via email to