<div dir="ltr">Hi Mike,<br><br><div class="gmail_extra"><div class="gmail_quote">2014-11-01 20:45 GMT+03:00 W. Michael Petullo <span dir="ltr"><<a href="mailto:mike@flyn.org" target="_blank">mike@flyn.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
1. lighttpd, which makes use of user_add in /etc/init.d/lighttpd,<br>
created an http user, but it was not assigned a UID.<br></blockquote><div><br></div><div>According to /lib/functions.sh, user_add has the following arguments:<br><br>user_add() {<br> local name="${1}"<br> local uid="${2}"<br> local gid="${3:-$2}"<br> local desc="${4:-$1}"<br> local home="${5:-/var/run/$1}"<br> local shell="${6:-/bin/false}"<br> .....<br></div><div><br></div><div>So, if you don't provide UID as a second argument, the user would be created without UID. Same for group_add.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">3. postfix, which provides a create_users shell function in<br>
/etc/init.d/postfix, did not create a user. Not that /etc/init.d/postfix<br>
does not explicitly call the create_users function.<br></blockquote><div><br></div><div>postfix package executes the following command in its postinst script:<br><br>EXTRA_COMMANDS=create_users /etc/init.d/postfix create_users<br><br></div><div>It successfully creates users on my system. Could you please test it again on your system by running just the above command?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I am also curious to know<br>
how packages should reserve a UID; for example, postfix seems to assume<br>
that no other package will claim 87 and 88.<br></blockquote></div><br></div><div class="gmail_extra">For postfix, I just picked those UIDs that were unlikely to be used by a user. Then I checked the repository and couldn't find any other packages using same UIDs. Please advise if there is a better way.<br><br></div><div class="gmail_extra">Best regards,<br>Denis Shulyaka<br></div></div>