Thread: See user

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Post See user


    how i can see the user list in redhat 6
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    If you're using local authentication, simply type:
    cat /etc/passwd

    That lists the accounts set up in the system. Not all of them are user accounts though.

    The first column is login name, second is x, third is user ID, 4th is group ID, 5th in user name, 6th is user's home directory, 7th field is the shell program preference of the user. Type man 5 passwd to get the meanings of the various fields.

    Generally, users who are real users (and not just accounts used by daemons) are usually set up with user IDs >= 1000. Another thing that real users use a real command shell like /bin/bash, whereas daemon accounts generally use /bin/false or /sbin/nologin. However, some daemon accounts do use /bin/sh as the shell. Most of these will have user ID < 1000 and the user name generally describes which daemon uses the login.

    Hope this helps.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2012
    Posts
    59
    Rep Power
    3
    What is nobody? (user name)
    What is login name of Debian-ipw3945d, but no user name? Must be a daemon, eh?
    same for Debian-exim
    What is sys? (user name)
  6. #4
  7. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,607
    Rep Power
    4247
    nobody is an unprivileged account that was historically used by many server daemons (such as apache, ftp, postfix, exim etc.) to run as the nobody user. The trouble with this approach is that a person who manages to own one daemon could also own the other daemons, because they are all running as the same user ID. Which is why these days, most daemons use separate user IDs to run under (e.g. apache is setup to run as www or www-user in many distros, exim runs as exim4 or debian-exim and so on). However, the nobody user is retained for historical reasons, just in case there is some really old code that is still set to run as the nobody user.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo