» 网友学堂 » LINUX教程 » 配置Samba3.0为域登录和文件服务器的方法2
配置Samba3.0为域登录和文件服务器的方法2
作者:问天 发表时间:2007-2-15 03:39 阅读:688次 在百度搜索相关内容

feixue.bat内容为&;#65109;
@net time \\SambaServer /set /yes
@net use H: \\SambaServer\feixue -y
@regedit -s \\SambaServer\netlogon\*.reg
等。

需要注意的是把批处理文件保存到netlogon下面后一定要检查文件的权限&;#65104;修正后用户才会执行&;#65104;不然的话嘿嘿&;#65104;你有麻烦了&;#65111;&;#65111;&;#65111;

如何配置Windows端登录Samba域&;#65104;对于98来说&;#65104;很容易&;#65104;在网络属性里选Client for microsoft networks&;#65104;在第一项打勾&;#65104;下面输入你的Samba服务器的域名(工作组).重新激活机器以后&;#65104;邓入对话框就会有三项&;#65109;用户名&;#65105;密码&;#65105;域名。
NT/2000下面登录samba域会困难一点&;#65104;首先你要在Samba服务器上建立windowsNT/2000机器的信用帐号。
下面以一个计算器名为test的计算机为例&;#65109;
#useradd -c 'Test Compter' -d /dev/null -g share -s /bin/false -r test$


我们创建了一个Linux本地帐号&;#65104;出于安全的考虑不需要它登录到Linux进行任何操作&;#65104;因此的用户目录为/dev/null,shell是/bin/false.
然后我们就可以用smbpasswd创建相应的Samba机器帐号&;#65109;
[color=#FFFFFF'][/color]

#smbpasswd -a -m test
其中-a是添加&;#65104;-m是机器信任帐号。这样&;#65104;依据test$的Linux帐号创建了一个NT域的机器信任帐号test.
然后在windowsNT/2000上加入Samba域&;#65104;根据提示输入超级用户的用户名称和密码&;#65104;就可以加入Samba域了。
重新激活机器以后&;#65104;就会有三个选项了&;#65104;比如用原先建立的用户feixue邓入即可。

好了&;#65104;到此为止&;#65111;

有时间我再加上Samba打印共享的方法

祝你好运&;#65111;&;#65111;&;#65111;
有什幺问题大家可以和我一快儿交流交流

feiwupiaoxue 回复于:2003-11-19 21:34:38 好了&;#65104;现在看起来怎幺样&;#65104;不好意思&;#65104;因为我的系统是繁体的&;#65104;现在我把文章改为简体了&;#65104;满意了吧&;#65104;呵呵&;#65111;&;#65111;&;#65111;

simplelove 回复于:2003-11-19 22:47:30 非常满意,呵呵

感谢 feiwupiaoxue

yama998 回复于:2003-11-19 23:06:18 很好,收下了,&;#35613;&;#35613;Feiwupiaoxue,置&;#38914;!!!!!

robert2000 回复于:2003-11-20 09:40:59 不&;#37679;呀!但是我&;#35373;有samba 密&;#30908;&;#21371;不用&;#36664;入用&;#25142;和密&;#30908;就都可以&;#36914;,有&;#27794;有&;#36774;法解&;#27770;呀?多&;#35613;!
[color=#FFFFFF'][/color]


daisy_chi 回复于:2003-11-20 09:50:00 支持一下

好好先生 回复于:2003-11-20 10:26:31 [quote:22edfc4a26="robert2000"]不&;#37679;呀!但是我&;#35373;有samba 密&;#30908;&;#21371;不用&;#36664;入用&;#25142;和密&;#30908;就都可以&;#36914;,有&;#27794;有&;#36774;法解&;#27770;呀?多&;#35613;![/quote:22edfc4a26]
vi /etc/samba/smb.conf
/security
修改为security=user
servce smb restart一下。
看看结果

cgweb 回复于:2003-11-20 10:29:24 feiwupiaoxue,谢谢,写的好呀!

webfox 回复于:2003-11-20 14:52:07 这个我都试过可以成功,但在windowsxp或者win2003下登陆就不可以,不知道为什么?楼主有什么办法可以解决吗?听说xp以上版本的windows的域和以前有点不同。

feiwupiaoxue 回复于:2003-11-20 23:18:15 很不好意思,在2003和XP下面我&;#27794;有&;#35430;&;#36942;,有&;#26178;&;#38291;一定解&;#27770;&;#36889;&;#20491;&;#21839;&;#38988;,我想&;#25033;&;#35442;是差不多吧,呵呵!!!

原著精&;#33775; 回复于:2003-11-20 23:25:24 十分感&;#35613;!!!

llzqq 回复于:2003-11-21 00:10:47 PIC
apile 回复于:2003-11-21 08:16:31 &;#35531;&;#21839;一下,你怎&;#40636;&;#34389;理中文字&;#21839;&;#38988;????
[color=#FFFFFF'][/color]

我先前用tarball安&;#35037;&;#36942;..但是碰到中文字就完了...
原本我有&;#20491;samba server 2.2 可以&;#35373;置cp950的codepage..
但是&;#35037;上samba 3.0後,原本的中文目&;#37636;全部&;#35722;成&;#20098;&;#30908;..
但是新建立的目&;#37636;,&;#36996;是看得到中文...
看&;#32178;上的一堆文章...&;#35498;得都是unicode&;#33287;big5的&;#21839;&;#38988;...
CP437.so
CP850.so
他的samba/lib/charset中只有&;#36889;&;#20841;&;#20491; codepage...
不知道有&;#27794;有那位老大...知道怎&;#40636;加入
其他的CPXXX.so...????
所以後&;#20358;不得以我&;#36996;是用samba 2.2版本...

tiansgx 回复于:2003-11-21 09:37:11 继续关注ing

llzqq 回复于:2003-11-21 10:38:46 MY SMB.CONF

#======================= Global Settings =====================================


[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = redhat
netbios name = home
# server string is the equivalent of the NT Description field
server string = Samba Server %v

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
hosts allow = 192.168.0.0/255.255.255.0

# this tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
security = user

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only

#Advertisement