[X-Unix] Creating users with the command line
Bruce Cheng
brucecheng at mac.com
Tue Oct 12 09:58:48 PDT 2004
I tried the script and it worked nicely. (thanks)
Two minor problems:
I changed:
mkdir $home
to
mkdir -p $home
Parent Home directory did not exist.
Also
cp /System/Library/User Template/English.lproj/* $home
Change to
cp /System/Library/User\ Template/English.lproj/* $home
to escape a space.
-Bruce
On Oct 12, 2004, at 4:23 AM, Stroller wrote:
>
> On Oct 12, 2004, at 8:38 am, Steffen Lund Hokland wrote:
>
>>> There is no "normal" (i.e. "standard") Unix commands for=20
>>> adding/removing
>>> users. *BSD use "adduser". Linux distros use useradd. Pick your=20=
>>> poison.
>> Yes - well I kind of ment 'normal' in the sense that there *existed*=20=
>> command-line tools for user administration in contrary to Darwin,=20
>> where the don't.
>
> I thought `niutil` did this, but I've never used it.
> A Google suggests that `niutil` isn't as convienient as Lunix's=20
> `superadduser` command, but throws up a shell script which manipulates=20=
> it to be nearly so.=20
> <http://www2.dougeverly.com:8080/article.php?story=3D20031028193713159>
>
> Stroller.
>
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
>
---
Enterprise Systems Engineer =BEG=AB=C2=ABH email: =
bcheng at apple.com
office: 408-974-6541 cell: 408-834-5689
AppleCare Premium Support: 1-866-75-APPLE
http://www.info.apple.com/
More information about the X-Unix
mailing list