?
Solved

users

Posted on 1998-02-24
8
Medium Priority
?
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
8 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 2008910
cat /etc/passwd
0
 
LVL 4

Expert Comment

by:jos010697
ID: 2008911
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
ID: 2008912
But, I am not the admin !
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:rickyr
ID: 2008913
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
 

Accepted Solution

by:
redsun earned 20 total points
ID: 2008914
the most way is :

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

Author Comment

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

Expert Comment

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

Expert Comment

by:rickyr
ID: 2008917
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

764 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