LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1142|回复: 2

NIS client login OK, but can't find directory with permission denied

[复制链接]
发表于 2005-10-9 05:49:04 | 显示全部楼层 |阅读模式
I have setup NIS server and client, but got error message while login on client side. Here is what I have done. Please check if I miss anything.

On server side
1. setup domainname
2. edit /etc/nsswitch.conf to add nis
3. edit /etc/yp.conf to point to server itself (not sure if this step is necessary)
4. service ypserv start
5. /usr/lib/yp/ypinit -m
6. service ypbind start
7. service yppasswdd start
8. yppasswd user1  (I already have user1 as a system user on server side)

On client side
1. setup domainname
2. edit /etc/nsswitch.conf to add nis
3. edit /etc/yp.conf to point to server
4. service ypbind start

Then I login to client machine as user1, I can log in, but always got those messages upon login:

Can't find directory /home/user1
Unalbe to creat ~/.bash_profile, ~/.bash_logout : Permission denied.

Do I need to create or mount /home/user1 directory on the client side?  

Many many thanks......
发表于 2005-10-9 14:18:00 | 显示全部楼层
Post by zaiwen
I have setup NIS server and client, but got error message while login on client side. Here is what I have done. Please check if I miss anything.

On server side
1. setup domainname
2. edit /etc/nsswitch.conf to add nis
3. edit /etc/yp.conf to point to server itself (not sure if this step is necessary)
4. service ypserv start
5. /usr/lib/yp/ypinit -m
6. service ypbind start
7. service yppasswdd start
8. yppasswd user1  (I already have user1 as a system user on server side)

On client side
1. setup domainname
2. edit /etc/nsswitch.conf to add nis
3. edit /etc/yp.conf to point to server
4. service ypbind start

Then I login to client machine as user1, I can log in, but always got those messages upon login:

Can't find directory /home/user1
Unalbe to creat ~/.bash_profile, ~/.bash_logout : Permission denied.

Do I need to create or mount /home/user1 directory on the client side?  

Many many thanks......

You need to combine nfs and autofs... There are some threads here...
回复 支持 反对

使用道具 举报

发表于 2005-10-10 09:56:43 | 显示全部楼层
there is a detailed doc about the nis and autofs configuration in this space. I think it is very comprehensive
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表