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 OSF1
w2kusers.deny
w2kusers.deny(4) Kernel Interfaces Manual w2kusers.deny(4)
NAME
w2kusers.deny - Authentication file for Windows 2000 Single Sign On.
SYNOPSIS
# Comment account_name
DESCRIPTION
The w2kusers.deny is a text file containing a list of user account names. When an account is included in this file, the Windows 2000 Sin-
gle Sign-On software verifies only the UNIX authentication for the named account.
To add user accounts to the file, use a text editor to enter the user's UNIX account name. The following syntax rules apply to the
w2kusers.deny file: Only one user name can be entered on a line. The user name must exactly match a user name in the UNIX /etc/passwd
file. Comment lines begin with a pound sign (#).
EXAMPLES
The following example shows a typical w2kusers.deny file: # The following file lists account names that are not allowed to use # the Win-
dows 2000 authentication information when it is enabled. # Account names must match exactly the user account name in the # /etc/passwd
file. # # Syntax: account_1 # . # . # . # account_n # root nobody nobodyV daemon bin uucp
uucpa auth cron lp tcb adm ris wnn pop imap Peter Dave Beth Martha
FILES
Location of the file.
RELATED INFORMATION
Commands: ldapcd(8), lw2ksetup(8)
Files: etc/w2kusers.deny(4)
Windows 2000 Single Sign-OnInstallation and Administration Guide.
delim off delim off
w2kusers.deny(4)