SuMMARY: FW: useradd

From: Michael Auria <mha_at_adaclabs.com>
Date: Thu May 03 2001 - 02:32:31 EDT
I will be wearing the dunce cap on this one for a while ...

Thanks to all that responded:
[Brendan.Gregg@Sun.COM]
[cmarble@orion.ac.hmc.edu]
[michael@desimone.net]
[pgilbert@seattledata.com]
[ric@Opus1.COM]
[MichaelK@jBASE.com]
[baudet@transat.com]
[Stephen.Oxley@its.monash.edu.au]
[dwarf333@yahoo.com]
and anyone I may have missed.

The problem here was was two-fold: I was trying to get useradd to make an
automounted directory (/home/mha) & I didn't use the -m flag (I will be
going back to school on how to read usage messages).  I ended up doing a -d
on the mount point (/export/home/mha) and used vipw to change the home
directory to the automount (/home/mha).

Thanks to all and to all a good night ...

mha

ps - strange; I sent this on the 28'th and got a flood of replies 5 days
later, anyone know of email lags on this list ?




>  -----Original Message-----
> From: 	Michael Auria  
> Sent:	Saturday, April 28, 2001 10:46 AM
> To:	'sunmanagersa@sunmanagers.org'
> Subject:	useradd
> 
> I've tried all kinds of combos and I still get invalid syntax.  Anyone
> help this feeble old mind (this is embarassing) ?
> 
> mha
> 
> ps - Solaris 2.5.1 on Ultra 2 ...
> 
> # pwd  
> /export/home
> # ls -l
> total 18
> drwxr-xr-x   2 root     other        512 Apr 25 10:16 mha
> drwxr-xr-x   5 p3md     other       1024 Oct 13  2000 p3md
> drwxr-xr-x  25 p3rtp    other       4096 Apr 18 11:04 p3rtp
> drwxr-xr-x  10 pinnacle staff       1536 Dec 24 14:04 pinnacle
> drwxr-xr-x   2 ppp      other        512 Feb 25  1998 ppp
> # useradd -u2022 -g10  -d/home/mha -s/usr/bin/ksh -c"Michael H. Auria"
> -k/etc/sk
> el mha
> UX: useradd: ERROR: invalid syntax.
> usage:  useradd [-u uid [-o] | -g group | -G group[[,group]...] | -d dir |
>                 -s shell | -c comment | -m [-k skel_dir] | -f inactive |
> -e expi
> re ] login
>         useradd -D [-g group | -b base_dir | -f inactive | -e expire ]
> # useradd -u 2022 -g 10 -d /home/mha -s /usr/bin/ksh -c "Michael H. Auria"
> -k /e
> tc/skel mha
> UX: useradd: ERROR: invalid syntax.
> usage:  useradd [-u uid [-o] | -g group | -G group[[,group]...] | -d dir |
>                 -s shell | -c comment | -m [-k skel_dir] | -f inactive |
> -e expi
> re ] login
>         useradd -D [-g group | -b base_dir | -f inactive | -e expire ]
> # 
> 
> 
> Michael H. Auria (mha)	  	    800-232-2123
> Technical Support Engineer   fax: 408-577-0907
> ADAC Laboratories, A Philips Medical Systems Company                 RTP
> Division
> 
> 
> 
Received on Thu May 3 07:32:31 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:53 EDT