技术开发桌面应用嵌入技术问答(FAQ)基础知识企业应用&技巧
作者:RHU-TAC编辑员 来自:RHU网络采集 时间:2005-8-31 双击滚屏 收藏本页 字体:大 中 小
点击 查看RHU2004全年文章
问:我的Samba已经做好了,但是只能从Windows访问Linux,无法从Linux访问Windows。并且在Windows访问Linux时,只能访问共享目录,无法对子目录进行写操作。比如,我的共享目录为home,其下还有download目录,但是我只能在home里进行读写,无法在download里进行写操作。是不是应该在smb.conf里加入别的语句?此外,我只有设置成“security = share”时才能从Windows访问Linux,但Linux无法访问Windows。如果把share改为user,本应该是Linux可以访问Windows,可是我还是无法访问。我在Linux和Windows里都已经建立了相同的账号,使用这个账号访问时,却告诉我无法访问,这是为什么?答:从Linux访问Windows使用的是smbclient这个程序,一般安装了Samba的都有。其基本语法如下:
#./smbclient //smbserver [-U username]
#./smbclient //210.31.8.98/share -U yiligui
#lspci -v 00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem Controller (rev 02) (prog-if 00 [Generic]) Subsystem: Toshiba America Info Systems Toshiba Satellite 1110 Z15 internal Modem Flags: medium devsel, IRQ 11 I/O ports at 1800 [size=256] I/O ports at 1080 [size=128]
OVER