06-25-2005
Also, to quote jnsimpson
Quote:
...you will find a lot of dorks that like to do things the hard way. However, if you want basics, just stick with using 'more /etc/passwd'.
The "hard" way is the
correct way.
awk -F: '{ print $1 }' /etc/passwd shows, as the Original Poster requested, all user accounts.
more /etc/passwd just shows the entire passwd file, a superset of the required information.
Just a note too... with NIS
ypcat passwd | awk -F: '{print $1}'
Cheers
ZB
9 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
hi
how to disable the useraccount in aix (should not remove). (1 Reply)
Discussion started by: chomca
1 Replies
2. UNIX for Dummies Questions & Answers
hi!
how do i make ps results to only shows what's owned by users current job/background process only
currently when users issuing ps:
I just wanted the result when the user is issuing ps aux is same as when they're doing ps x like this:
(which shows result on user's current background... (13 Replies)
Discussion started by: rdns
13 Replies
3. UNIX for Dummies Questions & Answers
Thanks
AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies
4. Shell Programming and Scripting
Hi, guys. I have two questions:
I need to write a script, which can show all the non-suspended users on system, and suspend the selected user account.
There are two things I am not sure:
1. How can I suspend user's account? What I think is: add a string to the encrypted password in shadow... (2 Replies)
Discussion started by: daikeyang
2 Replies
5. UNIX for Advanced & Expert Users
Hi Gurus,
is there a possibility to show where a user can write to?
i want to see all directories where a user has permissions to write to.
Kind Regards
FranzB (0 Replies)
Discussion started by: FranzB
0 Replies
6. Cybersecurity
Please help me identify these user accounts..
bin, lp, nuucp, smbnull, mysql, tftp
Can we remove these user or disable these users?We have to apply the security policy about the user identification.Since it was settup by our vendor long time ago. We do not have these informations about these... (3 Replies)
Discussion started by: rdstkg
3 Replies
7. Solaris
I want create user. That user should be login to any server without asking password. How? tell me in detail.
:wall: (3 Replies)
Discussion started by: Navkreddy
3 Replies
8. HP-UX
I need to check actual date a user was disabled on my HP-UX server.
Audit is claiming the user account was active during the last audit exercise. (7 Replies)
Discussion started by: cyriac_N
7 Replies
9. Red Hat
Hi,
In the following output you can see the the user "richard" is a member on the team/group "developers":
# id richard
uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers)
but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies
LEARN ABOUT REDHAT
mknetid
MKNETID(8) Reference Manual MKNETID(8)
NAME
mknetid - generate data for netid map
SYNOPSIS
/usr/lib/yp/mknetid [ -q ] [ -h hosts ] [ -p passwd ] [ -g group ] [ -d domain ] [ -n netid ]
/usr/lib/yp/mknetid --version
DESCRIPTION
mknetid generates the netid.byname NIS map from the contents of the group(5), passwd(5), hosts(5) and netid files. It checks for multiple
entrys of netids and warn for them or filters them out. It is only called by /var/yp/Makefile when rebuilding the NIS map.
OPTIONS
-q This flag turns on 'quiet' mode, don't print a warning message when finding an duplicate netid entry.
-h hosts
The -h flag can be used to specify the use of another hosts file than the default /etc/hosts.
-p passwd
The -p flag can be used to specify the use of another passwd file than the default /etc/passwd.
-g group
The -g flag can be used to specify the use of another group file than the default /etc/group.
-n netid
The -n flag can be used to specify the use of another netid file than the default /etc/netid.
-d domain
The mknetid command uses the system domainname by default. If it is not set or you whish to override it, you must use the -d parame-
ter.
--version
Prints the version number
FILES
/etc/group groups file
/etc/hosts hosts database
/etc/netid netname database
/etc/passwd password file
SEE ALSO
passwd(8), group(5), hosts(5), passwd(5)
AUTHOR
mknetid was written by Thorsten Kukuk <kukuk@suse.de>.
YP Server August 2001 MKNETID(8)