How many users are there in solaris machine ?

Thread Tools Search this Thread
Operating Systems Solaris How many users are there in solaris machine ?
# 1  
Old 07-03-2011
How many users are there in solaris machine ?

How can i find , how many users are in solaries machine ? any command please .

# 2  
Old 07-03-2011
use this:

This User Gave Thanks to DukeNuke2 For This Post:
# 3  
Old 07-03-2011
but it shows only information about currently logged-in users .
i want , how many users are created in this machine or server ?
and who are they ?

i am new in this arena .

# 4  
Old 07-03-2011
maybe you should start with the fine documentation:

System Administration Guide: Basic Administration
# 5  
Old 07-03-2011

i got my answer , it is

$ logins


$ awk -F: ' $3 > 1 { print $0 }' /etc/passwd

here :
IDs 0-99 are for Solaris system accounts
IDs 100-999 for applications--------------------this is created user
IDs 1000-60000 for normal users

# 6  
Old 07-03-2011
cat /etc/passwd | wc -l
# 7  
Old 07-27-2011
sinply go to /export/home directory and count the rows there...or else count the number of entries in /etc/passwd file...hope it solves ur problem
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Migrate users from 1 Solaris 10 to a different Solaris 10 server

Hello, I have to backup users from one server and put them on another server. I have tried cp -pr, copied over the passwd, group, shadow and appended the users from the old server to the new servers files, rebooted and still can't login. The server accepts that new accounts are there but not... (2 Replies)
Discussion started by: hs3082
2 Replies

2. Shell Programming and Scripting

To get total number of users and their groups in remote UNIX machine

Hi All I am trying to do ssh to different server and on the remote server for each user trying to get groups of that user but i am not getting the required result. ssh username@ip_address "for i in $( cat /etc/passwd| cut -d: -f1);do groups $i done;exit" >>abc.txt only names are... (5 Replies)
Discussion started by: Ekamjot
5 Replies

3. Red Hat

Migrating users from old machine to new machine

What is the best way to move all user, with permission etc... from a old linux redhat 5 to a new redhat 6 machine. It is as simple as coping the etc/passwd file etc.. ? (4 Replies)
Discussion started by: da2013
4 Replies

4. Solaris

Solaris ssh client hangs when connecting to another Solaris machine

Got a strange problem. I have 4 Solaris servers all configured the same, Solaris 10 x86 update 10. When I try to ssh from one Solaris 10 server to another server ssh hangs. I have an identical server and when I try this everything works fine. The weird thing is if I am root on the server... (1 Reply)
Discussion started by: ccj4467
1 Replies

5. Solaris

Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed

Hi, I am unable to login into my terminal hosting Solaris 10 and get the below error message "Server refused to allocate pty sh: fatal: open failed: No such file or directory " Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies

6. IP Networking

RSH to Ubuntu machine from Solaris machine?

This is probably really basic compared to what you guys are usually talking about here, but I have a problem and I have no idea what to do about it. I try to RSH to my Ubuntu computer from my Solaris one and run into a dead end: >> rsh ::ffff: Connection timed out... (4 Replies)
Discussion started by: Bradj47
4 Replies

7. Solaris

Best possible communication mechanism between a Solaris machine and a windows machine

hi, I have some windows client machines which require a signal to be sent by a Solaris machine( SunOS 5.6) when ever a particular event occurs on that Solaris machine. What are possible communication mechanisms by which i can do this. the constraints are > the windows machines have to... (7 Replies)
Discussion started by: Krsh
7 Replies

8. UNIX Desktop Questions & Answers

Creating New Users in UNIX Machine !!!

Hi How to create users in the UNIX machine .... I am the ROOT and i want to create users with normal privileges . a) Please give the sequence of commands which i need to use. b) How to set their userid and passwords (3 Replies)
Discussion started by: skyineyes
3 Replies

9. UNIX for Advanced & Expert Users

Users logged in longer than machine uptime?

SCO 5.06 Anyone ever have an issue where: uptime returns: SCO:/# uptime 4:40pm up 4:50, 1 user, load average: 0.00, 0.00, 0.00 w returns: SCO:/# w User Tty Login@ Idle JCPU PCPU What root tty01 - 72:20 - - -ksh I've rebooted yet... (1 Reply)
Discussion started by: gseyforth
1 Replies
Login or Register to Ask a Question