QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1521|回复: 17

home 目录漫游是怎么实现的呢?

[复制链接]
发表于 2003-10-31 10:44:38 | 显示全部楼层 |阅读模式
学校里有很多服务器,无论你登录到哪一个上面,你的home都会自动mount到/home/username下面,但是如果你不登录到这台服务器上,你的home就不会mount(我发现无论我登录到哪台服务器,/home下面都不会有全部人的目录,所以我确定这个mount是动态的)。学校里用的是nfs,不知道samba能不能做这个。是用ldap么?

还有就是用户帐号统一管理,就是在所有的机器上你都用同一个帐号登录。
google了半天不得要领,关键是不知道用什么关键字,大虾们给指条路,细节我自己学。
发表于 2003-10-31 13:07:29 | 显示全部楼层
我也想知道
回复

使用道具 举报

发表于 2003-10-31 13:49:45 | 显示全部楼层
不是动态的是samba认证问题,直接打开:
   local master = yes

   os level = 99

   domain master = yes

   preferred master = yes

   domain logons = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775

[netlogon]
   comment = Network Logon Service
   path = /var/spool/samba/netlogon
   guest ok = yes
   writable = no
   share modes = no
就是这种效果(注意 os level = 99,33太小)。
回复

使用道具 举报

发表于 2003-10-31 14:00:28 | 显示全部楼层
我看可能有点像域!
回复

使用道具 举报

发表于 2003-10-31 14:08:27 | 显示全部楼层
本来就是PDC嘛。
回复

使用道具 举报

 楼主| 发表于 2003-11-1 00:17:59 | 显示全部楼层
多谢指点,看来要好好读一下samba和ldap的文档了,对了,bwb,你给的这个samba配置是用ldap的么?如果不用ldap,那多台机器之间统一认证是用什么做的?
回复

使用道具 举报

发表于 2003-11-1 08:56:05 | 显示全部楼层
现在的 samba3。0就是用openldap的,不过我没做过!
回复

使用道具 举报

发表于 2003-11-3 10:21:03 | 显示全部楼层
在一两个网段的局域网中一般samba不需要认证,所以也就没有用LDAP的必要。
回复

使用道具 举报

 楼主| 发表于 2003-11-3 12:36:04 | 显示全部楼层
[quote:4539e22227="bwb"]在一两个网段的局域网中一般samba不需要认证,所以也就没有用LDAP的必要。[/quote]

Sorry can't input Chinese on new machine.

Then how can the home dir be mounted automatically when the user logins in?
回复

使用道具 举报

发表于 2003-11-3 12:48:42 | 显示全部楼层
不知道楼顶说的登陆是指:SAMBA 登陆,还是终端登陆 ????
回复

使用道具 举报

发表于 2003-11-3 13:25:24 | 显示全部楼层
i believe the default samba conf will have the user home dir mounted automatically.

anyway, here is mine . on AIX if it matters.

[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   create mask = 0600
   directory mask = 0700

btw, try read the _GREAT_ samba How-to collection.  a lot of people put in a lot of effort .  http://samba.linuxforum.net/samba/docs/man/Samba-HOWTO-Collection.html
回复

使用道具 举报

发表于 2003-11-3 14:10:54 | 显示全部楼层
SAMBA 登陆默认就是这样的 !


这种效果是 SMABA 独有的,windows 永远也达不到。
回复

使用道具 举报

 楼主| 发表于 2003-11-3 18:35:31 | 显示全部楼层
[quote:42f57ee7ac="gugong"]SAMBA 登陆默认就是这样的 !


这种效果是 SMABA 独有的,windows 永远也达不到。
[/quote]

I meant terminal login. And as I know our school's system is using nfs instead samba.

The senario is like this:

Machine A has a disk where some users' home dirs are located there, such as user aaa and bbb's dir /diska/aaa, /diska/bbb
Machine B has a disk where some other user's home dirs are located there, such as user ccc and ddd's dir /diskb/ccc, /diskb/ddd

And there are many other machines. Any user can login to any machine with same uname and password(Can samba do this?). And after he login, his home dir, no matter it's on machine A or B, will be automatically mounted on /home/$USER. And this procedure is dynamic which means if this user is not on this machine you don't see his home dir under the local /home/.

Can any of you explain the senario of Samba login?
回复

使用道具 举报

发表于 2003-11-3 23:31:33 | 显示全部楼层
there are whole lot debates about Samba vs NFS. they both used for network file sharing.

with samba, you can smbmount the other shares on other  BDCs or Domain Member servers . NFS does the same and known to be faster.  but NFS lack on security, authentication.  

you better off with some more documentation. NFS and Samba. and english newsgroup as not many people understand english so well
回复

使用道具 举报

 楼主| 发表于 2003-11-4 00:39:08 | 显示全部楼层
[quote:955e8e62f2="jawe"]there are whole lot debates about Samba vs NFS. they both used for network file sharing.

with samba, you can smbmount the other shares on other  BDCs or Domain Member servers . NFS does the same and known to be faster.  but NFS lack on security, authentication.  

you better off with some more documentation. NFS and Samba. and english newsgroup as not many people understand english so well [/quote]
I bet you misunderstood what I was asking. I know how to mount samba and nfs sharing dirs normally. What I don't know is how is it integrated with login procedure.
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-15 15:19 , Processed in 0.135800 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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