Re: retrieve user account
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 9 Dec 2005 04:34:14 +0100 (CET)
JONAS MARTIN <molajons@yahoo.fr> wrote:
> For the annual point to our comptability service, I must provide
> informations on users accounts such as : login, full name,last access
> to the server, forward address email, number of messages, disk espace
> usage, ... I would like to know if there is any package which can
> help me to retrieve all those informations for all users created on
> the server and save in directly in a file .csv for example.
> I know the command "finger" but I must execute it many times for the
> 245 users on the servers.
Please note that this mailinglist is for developing a variant of the
Debian distribution.
For the usage of Debian (including the Debian-edu variant) you are
better off addressing users@lists.debian.org (or the french variant -
see http://lists.debian.org/ ).
That said, something like this from a terminal might be sufficient:
for user in `getent passwd | gawk -F: '{ print $1 }'`; do
finger $user
done
- Jonas
- --
* Jonas Smedegaard - idealist og Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
- Enden er nær: http://www.shibumi.org/eoti.htm
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDmkJmn7DbMsAkQLgRAkwRAJ9UiTKwwLCgUhU8U8N1P7PDwSuWEgCeJHor
FgVCY+smCiBuZL/b7Ug+6iY=
=jqHq
-----END PGP SIGNATURE-----
Reply to: