Re: useradd/adduser

From: Sheldon Hearn (sheldonh@uunet.co.za)
Date: 05/02/01


To: lee@kechara.net
Date: Wed, 02 May 2001 16:13:19 +0200
From: Sheldon Hearn <sheldonh@uunet.co.za>


On Wed, 02 May 2001 15:12:01 +0100, Lee Smallbone wrote:

> Is there any way to use adduser in a non-interative state (run from
> scripts)?

Yes, with the pw(8) command. If your scripts gain knowledge of the
passwords for accounts somewhere, you can feed the passwords to pw(8)
using its -h option.

Don't be daunted by the manual page. It's pretty easy going once you've
gotten past the synopsis. :-)

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message



Relevant Pages

  • Re: Recommend Linux Distro, Mail/MTA/FTP daemon?
    ... or integrate it easily with throwaway accounts and file ... > change passwords or add users for their virtual domains:P ... reliable CGI to manipulate user accounts ... I work from the command line, and have never been asked something ...
    (comp.os.linux.setup)
  • Re: password expiration policy for admin and system accounts ?
    ... policy that Admins manually reset these important account passwords every ... You can still have the passwords set to never expire, ... > Privileged accounts should be the most, not the least, well guarded. ...
    (microsoft.public.win2000.security)
  • Re: password expiration policy for admin and system accounts ?
    ... policy that Admins manually reset these important account passwords every ... You can still have the passwords set to never expire, ... > Privileged accounts should be the most, not the least, well guarded. ...
    (microsoft.public.security)
  • RE: Security Logging - Passwords & Accounts
    ... Security Logging - Passwords & Accounts ... Does anybody know of any way to log changes to user & group accounts and ...
    (RedHat)
  • Antivirus programs for XP - best ones?
    ... DON'T create user accounts during setup as they will become ... Turn of transmission of passwords and user credentials in clear ... Keep your system and ALL installed applications uptodate (Microsoft ...
    (alt.computer.security)