LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-20-2012, 02:23 AM   #1
pannet1
Member
 
Registered: May 2005
Location: India
Distribution: Fedora Core 7
Posts: 47

Rep: Reputation: 15
Question How to set default userid?


Hi everybody,
I m creating customized OS from scratch in that under /etc/default/useradd we can able to set group id as our wish ie., 500 or 1000, like this how can i set for user id?...
 
Old 03-20-2012, 02:41 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,028

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
This might help you, lots of details here.

Regards
 
Old 03-20-2012, 02:57 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
Originally Posted by pannet1 View Post
Hi everybody,
I m creating customized OS from scratch in that under /etc/default/useradd we can able to set group id as our wish ie., 500 or 1000, like this how can i set for user id?...
Have a look at /etc/login.defs, the UID_MIN / UID_MAX settings. Manual Reference Pages - LOGIN.DEFS (5)

A word of warning: Not all entries present in login.defs might be used. If PAM is set up on your box some entries in login.defs will not be used the PAM settings will take precedence. Have a look here: (BLFS) Linux-PAM and (BLFS) Shadow

Hope this helps.
 
1 members found this post helpful.
Old 03-20-2012, 03:21 AM   #4
pannet1
Member
 
Registered: May 2005
Location: India
Distribution: Fedora Core 7
Posts: 47

Original Poster
Rep: Reputation: 15
Thank u druuna and ukiuki for ur reply it really helped me..

Regards,
sugi@phenix
praki@phenix
 
Old 03-20-2012, 03:24 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
You're welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to set default application RockyRX Linux - Newbie 2 07-23-2010 10:03 PM
set your default run level so you will boot to a default run level - vga console Adam555 Linux - Newbie 1 01-21-2008 04:55 PM
grub-set-default ... get-default? RaduH Linux - General 1 11-21-2007 01:05 PM
command line to set a password to a new userid myhato Linux - Security 3 08-19-2004 11:46 PM
How to set the default WM beajedi Linux - General 6 02-20-2004 02:17 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration