全部博文(165)
分类: LINUX
2008-01-16 09:15:10
1.windows 访问 ubuntu
下面我们来共享群组可读写文件夹,假设你要共享的文件夹为: /home/ray/share首先创建这个文件夹
代码: |
mkdir /home/ray/share chmod 777 /home/ray/share |
备份并编辑smb.conf允许网络用户访问
代码: |
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup sudo gedit /etc/samba/smb.conf |
搜寻这一行文字
代码: |
; security = user |
用下面这几行取代
代码: |
security = user username map = /etc/samba/smbusers |
将下列几行新增到文件的最后面,假设允许访问的用户为:newsfan。而文件夹的共享名为 Share
代码: |
[Share] comment = Shared Folder with username and password path = /home/ray/share public = yes writable = yes valid users = newsfan create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup available = yes browseable = yes |
然后顺便把这里改一下,找到[global]把 workgroup = MSHOME 改成
代码: |
workgroup = WORKGROUP |