<1> In My NIS server PC, I added a user named "testnis".
# cd /export/home
# ls -alF
total 52
drwxr-xr-x 6 root root 512 May 8 22:27 ./
drwxr-xr-x 3 root sys 512 May 7 01:34 ../
drwxr-xr-x 2 root root 512 May 7 17:32 TT_DB/
drwx------ 2 root root 8192 May 7 01:34 lost+found/
-rw-r----- 1 root root 173 May 8 22:26 nfslog
drwxr-xr-x 2 testnis other 512 May 8 22:52 testnis/
The content of /var/yp/PWS/passwd is as follows:
# less /var/yp/PWS/passwd
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:/:
gdm:x:50:50:GDM Reserved UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
testnis:x:100:1::/project/testnis:/bin/sh --------- This is the entry for my yp client.
<2>In my NIS client Pc, I mount the home directory of testnis into /project. I did as follwos:
#ypcat passwd ------- I have confirmed that testnis entry is in the output field.
#mkdir /project; mount staygreen:/export/home /project(Note:I have changed the hostname to staygreen)
#ls -alF | grep project
drwxr-xr-x 2 htt bin 512 May 8 22:52 testnis/ ------ I can not understand why the owner of testnis is htt:bin
#chown -R testnis
ther testnis ------- I also tried to do it as root, But no change to testnsi directory.
For the reason above I just can login as testnis by failsafe sesssion. I can not enter graphical session.
The error message is as follows:
Unalbe to creat ~/.gnome directory: Permission denied.
could not creat per-user gnome configuration directory: ' /usr/lib/im/.gnome': Permission denied.