LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   How to set default userid? (http://www.linuxquestions.org/questions/linux-from-scratch-13/how-to-set-default-userid-935414/)

pannet1 03-20-2012 02:23 AM

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?...

ukiuki 03-20-2012 02:41 AM

This might help you, lots of details here.

Regards

druuna 03-20-2012 02:57 AM

Hi,
Quote:

Originally Posted by pannet1 (Post 4631262)
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.

pannet1 03-20-2012 03:21 AM

Thank u druuna and ukiuki for ur reply it really helped me..

Regards,
sugi@phenix
praki@phenix

druuna 03-20-2012 03:24 AM

You're welcome :)


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