LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Not a problem just curious (http://www.linuxquestions.org/questions/linux-from-scratch-13/not-a-problem-just-curious-4175453497/)

Keith Hedger 03-10-2013 08:10 AM

Not a problem just curious
 
In the various LFS books some programs have to have a user and group created ie:http://www.linuxfromscratch.org/blfs...eral/dbus.html

Says to create a user and group but, and this is my question is there any particular reason to specify a uid/gid number? ( in this case 18 ), can I for instance specify any system uid/gid number or would it be a cause of potential problems later?

I know it is usual to use low numbers for system users/groups and higher numbers for regular users.

druuna 03-10-2013 08:39 AM

You can use just about any number you like:
Quote:

The created groups are not part of any standard—they are groups decided on in part by the requirements of the Udev configuration in this chapter, and in part by common convention employed by a number of existing Linux distributions. The Linux Standard Base (LSB, available at http://www.linuxbase.org) recommends only that, besides the group root with a Group ID (GID) of 0, a group bin with a GID of 1 be present. All other group names and GIDs can be chosen freely by the system administrator since well-written programs do not depend on GID numbers, but rather use the group's name.
I've created a (lfs) system which had uid/gid 0 and 1 (both: root/bin), all the rest was made up by me.

I did follow one other "rule": uid's for users start at 1000 (there are actually 2 "rules" for this one, the other states you need to start at 500).

One does need to be aware that the book does sometimes use uid's/gid's that have been created in earlier chapters.

Keith Hedger 03-10-2013 09:05 AM

Thanks I thought it was something like that, I always like to know WHY things are done not just HOW.


All times are GMT -5. The time now is 06:39 PM.