LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 03-10-2013, 08:10 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Question 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.
 
Old 03-10-2013, 08:39 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
1 members found this post helpful.
Old 03-10-2013, 09:05 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Original Poster
Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Thanks I thought it was something like that, I always like to know WHY things are done not just HOW.
 
  


Reply

Tags
gid, lfs, question, system admin, uid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not a big 'problem', just curious... irgunII Slackware 3 11-06-2012 11:08 AM
A curious problem with driver transplant hzrenjer Linux - Hardware 1 06-27-2005 09:57 PM
curious problem wrat VectorLinux 11 05-20-2004 06:42 AM
Curious problem with ffmpeg EwanG Linux - Software 0 05-07-2004 08:30 AM
Curious problem.... Ra_ Slackware 2 06-02-2003 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration