[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Adding and removing a user automatically



-----BEGIN PGP SIGNED MESSAGE-----

Could someone point me in the direction of some sample shell script code
that will let me check to see if a given username already exists with a
given group ID?  I'm trying to finesse my IRAF installation script, and
just brute-force calling adduser on every install seems a little ugly.
I've examined the adduser code and suspect that I might be able to write a
similar custom routine manually in perl based upon it, but that's going to
add a dependency to the package, and is also going to be hard on my nerves
:)

Also, is there a simple way to automatically *remove* a user on a postrm?

=============================================================================
Zed Pobre  <zcp@po.cwru.edu>  |  PGP key on servers, fingerprint on finger
=============================================================================

-----BEGIN PGP SIGNATURE-----
Version: 5.0
Charset: noconv

iQEVAwUBNP4bxNwPDK/EqFJbAQG13AgAmovHznHdnCd2FWNv76OMyZ9fwxd9rgiP
jKdMrSzkruClKu3zfevIfxOrGWuxk0fW49Lf4LkJ1le6AaMrEXOnmhfSXCp5W+jD
Q7f2UQRrTH5Hy8+1ybftPaB5rS+oGGmefle/79huIsp2Xu8RiztKq298FR4mlZGC
BhacX7TI0/MCZEUgYieDxpxGNWbVNad9lhSF9IM8w2Fposb7JywO5IFs0e+9saLm
FBKqnUlpYJOoXH+5jte8cL1im8OpY+74Xk+ShY8EOVtjea3u7S83X5VwBrE1y2BJ
f7PcFCtjbUOMcQWdSd3WRf/Yu+x5OxZhJ77NoU4r7sOhcaRPYLnUYw==
=iQAK
-----END PGP SIGNATURE-----


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: