Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

users(1) [ultrix man page]

users(1)						      General Commands Manual							  users(1)

Name
       users - print names of users who are logged in

Syntax
       users

Description
       The command lists the login names of the users currently on the system in a compact, one-line format.

Files
       /etc/utmp

See Also
       who(1)

																	  users(1)

Check Out this Related Man Page

finger(1)						      General Commands Manual							 finger(1)

Name
       finger - print user finger information

Syntax
       finger [options] [name...]

Description
       By  default,  lists  the login name, full name, terminal name and write status, idle time, login time, and office location and phone number
       for each current ULTRIX user.  Terminal write status is noted as an asterisk (*) before the terminal name if write  permission  is  denied.
       Idle  time is given in minutes if the listing shows a single integer, hours and minutes if a colon (:) is present, or days and hours if a d
       is present.

       A longer format also exists and is used by whenever a list of people's names is given.  (Account names as well as first and last  names	of
       users  are  accepted.) This format is multi-line, and includes all the information described above as well as the user's home directory and
       login shell.  Additionally, it displays the information contained in the files .plan and .project, both of which are located in the  user's
       home directory.	If no list is given, all the people currently logged in are shown.

       The  command  may  be used to look up users on a remote machine.  The format is to specify the user as user@host.  If the user name is left
       off, the standard format listing is provided on the remote machine.

Options
       -b   Displays a briefer long form list of users.

       -f   Disables printing of headers for short and quick outputs.

       -h   Suppresses printing of the .project file.

       -i   Displays list of users with idle times.

       -l   Displays output in long format.

       -m   Matches arguments only on user name.

       -p   Suppresses printing of the .plan file.

       -q   Displays list of users.

       -s   Displays output in short format.

       -w   Displays narrow short format of specified users.

Restrictions
       Only the first line of the .project file is printed.

       The user's or file cannot be a link to another file.  If either of these files is something other than a regular file, it will be ignored.

Files
       Who file

       User information

       Last login times

       Plans

       Projects

See Also
       chfn(1), w(1), who(1), fingerd(8c)

																	 finger(1)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

IP details for Unix/Linux login clients?

Hi there, I am wondering if by logging in to a unix system, if it is possible to get the IP address of the machine I am connecting FROM. I know how I can do this using the name server, but is this possible without a host lookup?:confused: Thanks, -ghoti (15 Replies)
Discussion started by: ghoti
15 Replies

2. UNIX for Dummies Questions & Answers

Users and processes

Hi All, I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them. If i use w i... (17 Replies)
Discussion started by: Chiefos
17 Replies

3. Shell Programming and Scripting

Processes and Users

Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O I need to write a script that does more or less what is shown below. The Users Name PID TTY TIME CMD 12345 pts/3... (22 Replies)
Discussion started by: barbus
22 Replies

4. Solaris

List all inactive users who has not logged on since last 90 days

I need actuall script which List all inactive users who has not logged on since last 90 days Thanks in advance. Di! (17 Replies)
Discussion started by: haridham
17 Replies

5. Shell Programming and Scripting

Simple script for adding users

Hi guys, I've a simple linux script (made by my friend), which adds users to the system from userlist file. it also creates user home dir and copies certain files to the directory. To be honest, am a newbie in scripting so am unable to fully understand how the script is working. unfortunately,... (30 Replies)
Discussion started by: vish6251
30 Replies

6. UNIX for Dummies Questions & Answers

Removing permissions from all users including owner

Hello all: I will include a "requirement" for an issue I am attempting to solve for my boss. Basically, he would like to know if there is a way to prevent users and owner from editing 'write' script in Vi. - While working in Unix Vi, users would be able to keep all the previous versions... (15 Replies)
Discussion started by: bruski4
15 Replies

7. Shell Programming and Scripting

Running a script as root but with different users inside

Hi All, my script.sh has the below lines, and i need to run the script as root or wam. please tell me if this will work #!/bin/bash sudo -t wam /usr/local/wam/stopwam -r ------- this needs run as wam user /usr/local/web/stopweb -a --- this needs to run as... (18 Replies)
Discussion started by: nanz143
18 Replies

8. What is on Your Mind?

How to encourage emerging users in forum to give better solution:?

Our moderators/admins/users are doing great job by sharing knowledge with each other, they do correct/appreciate us in posts. This poll is to encourage emerging users to go in a better direction, kindly do give your thoughts on same. 1- Giving them a reward/appreciation if they are... (31 Replies)
Discussion started by: RavinderSingh13
31 Replies

9. AIX

Do not allow bypassing users .profile

Hello, I find out that there is a way from putty to pass a command to your shell when trying to log in to a server and bypass .profile. Actually you can do this if you open a bash shell. The command to bypass .profile is the following: ssh -t hostname "bash --noprofile" Is there a way to... (32 Replies)
Discussion started by: omonoiatis9
32 Replies