Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 20/Apr/15 12:33 PM
Description:

The postinstall scipt has a line that checks for an available uid for the jenkins user and fails if no uid below 500 is found to be free. The problem is that the script that checks this only checks if uid 499 is taken and if it is, then assumes that all other uid's below are also taken. This is not always the case.
To recreate, create a user with uid 499 and afterwards attempt to install jenkins from the native osx installer. The error output can be found in /var/log/install.log. The offending lines of code can be found in https://github.com/kisielk/jenkins/blob/master/osx/scripts/postinstall-launchd-jenkins, and consists of:
uid=$(dscl . -list /Users uid | sort -nrk 2 | awk '$2 < 500 {print $2 + 1; exit 0}')
if [ $uid -eq 500 ]; then
echo 'ERROR: All system uids are in use!'
exit 1
fi

The issue would be fixed if these lines were changed to something more flexible.

Environment: jenkins 1.610, OSX 10.10.3.
Project: Jenkins
Labels: installer error uid
Priority: Minor Minor
Reporter: David Marmoy
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to