home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.next.sysadmin
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!gumby!destroyer!ubc-cs!unixg.ubc.ca!kakwa.ucs.ualberta.ca!news
- From: sherwood@fenris.space.ualberta.ca (Sherwood Botsford)
- Subject: Re: 'nu -A' question
- Message-ID: <1992Sep15.000454.22375@kakwa.ucs.ualberta.ca>
- Sender: news@kakwa.ucs.ualberta.ca
- Nntp-Posting-Host: fenris.space.ualberta.ca
- Organization: University Of Alberta, Edmonton Canada
- References: <5516@blue.cis.pitt.edu.UUCP>
- Date: Tue, 15 Sep 1992 00:04:54 GMT
- Lines: 48
-
- robert cyphers writes
- > I want to call the command
- > nu -A name realname uid gid shell pwd home reuse mh
- domain
- > to install new users from inside a program.
- >
- > My problem is:
- >
- > Can I get 'nu -A' to accept "*" as a password with the
- usual meaning,
- > i.e. login disabled?
-
- Nope. Think about it. Nu is going to use whatever you
- type in, run crypt on it, and stuff THAT string into the
- /etc/passwd (or netinfo ) file. Alternately, it will feed
- the string to passwd, and passwd should barf, because it's
- too short. Entering it on the command line too, you would
- have to protect it from globbing.
-
- HOWEVER
- You can get around this by modifying the DeleteAccts shell.
- Since nu is a binary that calls the script, I don't see a
- way to make it call it with extra variables. But you could
- have DeleteAccts check an environment variable, and based
- on that either delete the account or merely disable it. (I
- would tend to modify the script so that disableing the
- account was default, deleting it required the extra
- variable.
-
- Make that script make a series of calls to niutil to change
- the passwd from sdkfjqp712047612 to *sdkfjqp712047612. (*
- never comes up as the result of encrypting the password,
- and this way, you can remove the * and his old password
- works)
-
-
-
- >
- > Also, should 'reuse' and 'mh' be N/Y or 0/1?
-
- You want an integer.
- From /etc/nulib/nu2.sh:
- if ($wantMHsetup) then
- mkdir Mail
- mkdir Mail/inbox
- ...
-
- see also /etc/nu.cf
-