[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] How to get a list of all users on RAQ4r
- Subject: Re: [cobalt-users] How to get a list of all users on RAQ4r
- From: Paul Lee <paul@xxxxxxxxxxxx>
- Date: Mon Jun 18 08:12:25 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Mon, 18 Jun 2001, Carrie Bartkowiak wrote:
> 1. Look at /etc/passwd
> 2. ls -la /home/spool/mail (this will only work if all users have
> rec'd mail)
> 3. ls -la /home/sites/*/users
>
> You can dump the listings of 2 and 3 into a text file by adding ">
> userlist.txt" (no quotes) to the end of the command. Then just read
> the file (it will be in whatever directory you're in) with pico or vi.
> Mail the list to yourself by adding " | mail -s UserList admin " (no
> quotes) to the end of the command.
Try this:
cut -f1,3 /etc/passwd | tr : " " from the command line
or this to send output to a file called users
cut -f1,3 /etc/passwd | tr : " ">users
Best Wishes
Paul Lee
paul@xxxxxxxxxxxx
http://www.weycrest.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6
iEYEARECAAYFAjsuiBUACgkQ0TCCIxEGdVMoBACfWgl1KRtZE+WDcAFdVuRAywFU
gE8AoJcvqmCMs1PS2SC1e0su3WkYl5sY
=U5zk
-----END PGP SIGNATURE-----