Solved

users

Posted on 1998-02-24
8
249 Views
Last Modified: 2010-04-21
UNIXer,

How can I know (programming is also okay) all the usernames that can login to the UNIX server ??????

Andrew
0
Comment
Question by:andrewyu
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 84

Expert Comment

by:ozo
Comment Utility
cat /etc/passwd
0
 
LVL 4

Expert Comment

by:jos010697
Comment Utility
better make that 'ypcat passwd' if we're talking 'servers'
(and/or 'clients') here ...

kind regards,

Jos aka jos@and.nl
0
 

Author Comment

by:andrewyu
Comment Utility
But, I am not the admin !
0
 
LVL 3

Expert Comment

by:rickyr
Comment Utility
Hi...
By default the world has read acces to the /etc/passwd file,
anyone can read it, yes it may seem like a security bug, but most OS's use a shadow file to store the password encryption, this should not be readable by anyone.
ozo, brief and to the point as ever, has got it.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Accepted Solution

by:
redsun earned 10 total points
Comment Utility
the most way is :

  finger @hostname,now you maybe get some  info,they are loggin .
0
 

Author Comment

by:andrewyu
Comment Utility
I want to get all the username on that can login to the server !!!!!!
0
 

Expert Comment

by:redsun
Comment Utility
Oh,if you can login it, cat /etc/passwd.
if not ,only finger it.anyelse is impossblie.
0
 
LVL 3

Expert Comment

by:rickyr
Comment Utility
Hi...
That's what ozo said.
Do you have a user account on the server?....
prompt> rsh server_name
If your login is not trusted on the server, you'll be asked for your password, then...
prompt> more /etc/passwd
I'm with ozo on this one.
regards
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now