Tony Mountifield
2011-Nov-15 15:58 UTC
[asterisk-users] Standard UIDs, especially for asterisk?
I see on my CentOS systems that certain users for particular subsystems have standardised UIDs and GIDs. For example mysql=27, ntp=38, sshd=74. My two questions are: 1. Is there a list of these standard assignments somewhere? Googling did not turn up anything for me. 2. Are there standard values of UID and GID reserved for the "asterisk" user, if used for running Asterisk as non-root.? Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org
Jason Parker
2011-Nov-15 16:06 UTC
[asterisk-users] Standard UIDs, especially for asterisk?
On 11/15/2011 09:58 AM, Tony Mountifield wrote:> I see on my CentOS systems that certain users for particular subsystems > have standardised UIDs and GIDs. For example mysql=27, ntp=38, sshd=74. > > My two questions are: > > 1. Is there a list of these standard assignments somewhere? Googling did > not turn up anything for me. > > 2. Are there standard values of UID and GID reserved for the "asterisk" > user, if used for running Asterisk as non-root.? > > Cheers > TonyThere are no standard UID/GIDs for things. They are just system users that have no login shell. They are given lower IDs than normal user accounts (on redhat systems, see -r option to useradd) so that they can be easily distinguished.
Gordon Henderson
2011-Nov-15 16:12 UTC
[asterisk-users] Standard UIDs, especially for asterisk?
On Tue, 15 Nov 2011, Tony Mountifield wrote:> I see on my CentOS systems that certain users for particular subsystems > have standardised UIDs and GIDs. For example mysql=27, ntp=38, sshd=74. > > My two questions are: > > 1. Is there a list of these standard assignments somewhere? Googling did > not turn up anything for me.Different distros and different sysadmins have their own ideas about what numbers to use - I used to use 80 for the apache web user, but Debian for some weird reason likes 33 for example...> 2. Are there standard values of UID and GID reserved for the "asterisk" > user, if used for running Asterisk as non-root.?No. You may find that CentOS has an idea of what UIDs it likes to reserve for 'system' processes vs. users... See the man page for useradd (-r option) or adduser (--system option) depending on which one you prefer. Gordon
Tony Mountifield
2011-Nov-15 16:42 UTC
[asterisk-users] Standard UIDs, especially for asterisk?
In article <4EC28E0B.20707 at digium.com>, Jason Parker <jparker at digium.com> wrote:> On 11/15/2011 09:58 AM, Tony Mountifield wrote: > > I see on my CentOS systems that certain users for particular subsystems > > have standardised UIDs and GIDs. For example mysql=27, ntp=38, sshd=74. > > > > My two questions are: > > > > 1. Is there a list of these standard assignments somewhere? Googling did > > not turn up anything for me. > > > > 2. Are there standard values of UID and GID reserved for the "asterisk" > > user, if used for running Asterisk as non-root.? > > > > Cheers > > Tony > > There are no standard UID/GIDs for things. They are just system users that have > no login shell. They are given lower IDs than normal user accounts (on redhat > systems, see -r option to useradd) so that they can be easily distinguished.Yes, I was hoping to use such a system user and group for asterisk, which would not conflict with any other system package I might install in the future, by virtue of being reserved for asterisk. But it sounds like it is distro-specific. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org