Duke and jlliagre:
I used
userdel to get rid of n2jkw.
I revized the passwd file to confirm that it was removed, and it was.
Next I used
useradd n2jkw
Next
vipw (I
did not modify the files, passwd and shadow file. I just look at them even though I invoked an editor)
I confirmed that user n2jkw was created, it was created and the default directory given by system was /home/n2jkw, but the directory was not created by the system.
Next,
vipw
Modified file passwd for user n2jkw: replaced home directory like this --> /export/home/n2jkw as directory for user n2jkw and typed my full name in the comment space.
Did not modify shadow file.
Next:
#passwd n2jkw (I entered new password for user)
this is the result:
$ ls -l /export
total 4
drwxr-xr-x 4 root root 512 Oct 14 13:05 home
drwxr-xr-x 3 root root 512 Oct 12 05:44 home0
$
$ ls -l export/home
total 2
drwxr-xr-x 11 n2jkw 101 512 Oct 15 23:58 n2jkw
$
$ cat /etc/passwd
root:x:0:0:Super-User:/:/sbin/sh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
n2jkw:x:100:1:Javier Maldonado:/export/home/n2jkw:/bin/sh
$
$ df -h
Filesystem size used avail capacity Mounted on
/dev/dsk/c0d0s0 5.1G 2.8G 2.3G 56% /
/devices 0K 0K 0K 0% /devices
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 701M 884K 700M 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
5.1G 2.8G 2.3G 56% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 721M 21M 700M 3% /tmp
swap 700M 24K 700M 1% /var/run
/dev/dsk/c0d1s7 147G 64M 145G 1% /export/home0
/dev/dsk/c0d0s7 13G 119M 13G 1% /export/home
/vol/dev/dsk/c1t0d0/s10_1009_software_companion
649M 649M 0K 100% /cdrom/s10_1009_software_companion
$
$
$ ls -la ~n2jkw
~n2jkw: No such file or directory
$
Logged off root and logged in as n2jkw
!SUCCESS!
It all worked.
Now I have questions.....
Why directory /home/n2jkw was not created @
useradd n2jkw....?
Is this because the ZFS filesystem did not allowed it?
How do I tell the system to add users @ /export/home by default?
BTW, this whole reply was in the actual machine that we are working with and logged as n2jkw.....
way to go guys...
Javier Maldonado