Results 1 to 5 of 5

Thread: Enterprise Linux 5.x / 6.x --- Useradd Default Options --- Query

  1. #1
    Member
    Join Date
    Dec 2010
    Location
    Batala,India
    Posts
    45
    Thanks
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Question Enterprise Linux 5.x / 6.x --- Useradd Default Options --- Query

    Below is USERADD man page excerpt :-

    -n A group having the same name as the user being added to the system will be created by default. This option will turn off this Red Hat Linux specific behavior. When this option is used, users by default will be placed in hatever group is specified in /etc/default/useradd. If no default group is defined, group 1 will be used.

    I need info for the BOLD part, and please post after performing practically.

  2. #2
    Junior Member walkeri1's Avatar
    Join Date
    Aug 2011
    Location
    Yorkshire
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Not sure what you don't understand, the way I read that is if you use the '-n' option with useradd - the user will be added in what ever is defined in /etc/default/useradd.

    On my RHEL 5 system my /etc/default/useradd file contains GROUP=100. So users added with -n will go into the default group 'Users - 100'. Which is the default on other distros I think.

    If that parameter was NOT in the /etc/default/useradd file - then the default group would be 'bin - 1'. Which would not be a recommend group for standard users.

    So make sure you have your default defined correctly in /etc/default/useradd when using the option -n.

    Unless I'm missing something?
    Last edited by walkeri1; 9th August 2011 at 10:49 PM.

  3. #3
    Member
    Join Date
    Dec 2010
    Location
    Batala,India
    Posts
    45
    Thanks
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Exclamation

    System:-RHEL 5.2
    i removed GROUPS directive from /etc/default/useradd and thereby created a new user account with '-n' option, which added the newuser to GID=100 (users) and not to GID=1(bin)...

  4. #4
    Junior Member walkeri1's Avatar
    Join Date
    Aug 2011
    Location
    Yorkshire
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Sounds like the man page is miss leading then, what is your issue anyway?

  5. #5
    Member
    Join Date
    Dec 2010
    Location
    Batala,India
    Posts
    45
    Thanks
    1
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Lightbulb

    ISSUE was from the starting BOLD TEXT highlighting and not able to implement same ...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 9th September 2011, 11:11 AM
  2. linux query
    By pradhans0906 in forum CentOS / RHEL / Fedora
    Replies: 1
    Last Post: 22nd June 2011, 06:49 AM
  3. basic query- Myql query in to database query.
    By aish in forum Databases servers
    Replies: 0
    Last Post: 15th June 2011, 12:52 PM
  4. useradd on multiple servers
    By pinoyskull in forum Shell scripting
    Replies: 5
    Last Post: 17th September 2010, 05:03 PM
  5. Replies: 0
    Last Post: 10th February 2010, 06:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •