Totally Lost
Author Message
Posted : Wed, 11 June 2008 14:34:43
Subject : Totally Lost
I know nothing about Linux or any other server, but the school I work at is setup on a Red Hat Linux server. They guy that set it up no longer works here and so far I have been able to keep it going. Anyway, we have new students every 11 weeks. I need to delete some users off the server. I know how to add users and delete users, but I need a list of user names. Does anyone know the command I need to use to get a user list. I e-mailed the guy that set it up but he said he would have to do some research because he thought it was a Samba command. Whatever that means! Please Help!
tophandcwby
Posted : Wed, 11 June 2008 14:57:22
Subject : Totally Lost
The command lastlog shows a complete list of users. A lot of these are the users that services such as apache use. But it is a complete list. You say this is a server. What service does it serve? Is it a windows file server?
megapsch
Posted : Thu, 12 June 2008 14:34:06
Subject : Totally Lost
Ok, I'm not a network person but the server has 40 computers linked to it. It is a Red Hat Linux.I tried the lastlog command and it did give a list of users but it scrolls to fast. Anyway, I need to somehow get it from one of the computers hooked up to the server so I can print the list.
tophandcwby
Posted : Thu, 12 June 2008 15:01:57
Subject : Totally Lost
If someone needs to maintain this network, and the job is apparently falling on you, maybe you should try to learn more about what is going on. But to deal with your immediate issues try $ lastlog | less The dollar sign only represents the prompt on your terminal and is not part of the command. The command above is an example of what is referred to as piping. It "pipes" the output of the lastlog command into the input of the less command. The less command is called a pager. It allows you to page up and down through the output of the lastlog command. To get the output into a file try $ lastlog > lastlog_out.txt This command is an example of redirection. The output of lastlog is redirected from standard out into the file lastlog_out.txt In this form with only one > the file lastlog_out.txt is created if it does not exist and is filled with the output of the lastlog command. If it does exist, it is truncated to a zero length and then filled with the output of the lastlog command. How you get the file to one of the other network computers depends on which servers you have running on your redhat machine.