LinuxSir.cn,穿越时空的Linuxsir!

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

auto.home question

[复制链接]
发表于 2007-2-25 10:18:14 | 显示全部楼层 |阅读模式
NIS user as

nuser1.........../rhome/ws1/nuser1..
nuser2.........../rhome/ws2/nuser2.
.....................................................
nuser100........./rhome/ws100/nuser100

the /etc/atuo.master is
........
/rhome   /etc/auto.rhome
........

the /etc/auto.rhome is
.................
*  -rw,soft,intr         nfsserver:/rhome/&
.......................

service autofs restart

However, I can not find any auto home


su - nuser3

Cannot find the /rhome/ws3/nuser3.


Any idea?
发表于 2007-2-25 13:15:48 | 显示全部楼层
1. & = * = username
2. Do your nfs service running now ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-2-27 08:11:11 | 显示全部楼层
If I set auto.home as,

rhome as

* rw,soft, intr   nfsserver:/rhome/ws3/&
* rw,soft,intr    nfsserver:/rhome/ws4/&

I can get the auto home dir for nuser3, and nuser4. So if I want to nuser5, 6...
I get to put all entris into auto.home, like,
* rw,soft,intr    nfsserver:/rhome/ws5/&
* rw,soft,intr    nfsserver:/rhome/ws6/&
..........................................................7/&
..........................................................8/&

Is there anyway I only put one line in auto.home to have all auto homes. Thanks.
回复 支持 反对

使用道具 举报

发表于 2007-2-27 12:10:02 | 显示全部楼层
就我所知,你这种期望是在不修改或添加autofs实现的基础上无法完成的!
请阅读 autofs(5) 的manpage , 里面介绍到  * 和 & 的使用规范!
回复 支持 反对

使用道具 举报

发表于 2007-4-17 15:40:14 | 显示全部楼层
Post by warren.chen
If I set auto.home as,

rhome as

* rw,soft, intr   nfsserver:/rhome/ws3/&
* rw,soft,intr    nfsserver:/rhome/ws4/&

I can get the auto home dir for nuser3, and nuser4. So if I want to nuser5, 6...
I get to put all entris into auto.home, like,
* rw,soft,intr    nfsserver:/rhome/ws5/&
* rw,soft,intr    nfsserver:/rhome/ws6/&
..........................................................7/&
..........................................................8/&

Is there anyway I only put one line in auto.home to have all auto homes. Thanks.



是的,客户端必须要启用autofs.
回复 支持 反对

使用道具 举报

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

本版积分规则

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