Ubuntu10.10下Samba服务器的搭建
来源:互联网 发布:服务器防火墙端口设置 编辑:程序博客网 时间:2024/05/30 04:54
1、首先安装samba软件包:
root@ubuntu:~#apt-get install samba
root@ubuntu:~#apt-get install samba4
(注:最初只安装samba,发现在进行samba服务启动或停止时,命令不识别,因此再安装samba4软件包。)
samba命令:
启动服务: root@ubuntu:~#/etc/init.d/samba4 start
停止服务:root@ubuntu:~#/etc/init.d/samba4 stop
restart :root@ubuntu:~#/etc/init.d/samba4 restart
2、创建共享文件夹
a)在home文件夹下创建share文件夹
b)编辑smb.conf:
root@ubuntun:~#gedit /etc/samba/smb.conf
将smb.conf中的security=user更改为security=share,并在最后增加:
[share]
comment=this is Linux share directory
path=/home/share
public=yes
writable=yes
保存smb.conf文件后退出
comment=this is Linux share directory
path=/home/share
public=yes
writable=yes
保存smb.conf文件后退出
c)重启samba服务:
root@ubuntu:~#/etc/init.d/samba4 restart
3、xp访问共享文件夹
a)查看虚拟机的ip地址:
root@ubuntu:~#ifconfig
得到虚拟机中ubuntu的ip地址为192.168.102.129(此时用xp中的命令行,可以ping通ubuntu)
b)在xp中点击运行输入\\192.168.102.129
看到share文件夹,点击进入,share文件夹即为共享文件夹,把工程放入share文件夹中,在xp下就可以访问
参考资料:
Ubuntu10.10下Samba服务器的搭建http://hi.baidu.com/chenyangxin/blog/item/9c388050681bfd738535248e.html
- Ubuntu10.10下Samba服务器的搭建
- Ubuntu10.10下Samba服务器的搭建
- Ubuntu10.10下Samba服务器的搭建
- Ubuntu10.10下Samba服务器的搭建
- ubuntu10.10下搭建samba服务器
- ubuntu10.10搭建samba服务器
- ubuntu10.04.2下搭建samba服务器
- ubuntu10.10设置samba服务器
- Ubuntu下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- CentOS下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- Ubuntu下Samba服务器的搭建
- Linux下Samba服务器的搭建
- “黑马程序员"交通灯管理系统学习日志
- 数据结构链表队列
- 工作与生活
- _stdcall的说明及error C2664: 'CreateThread' : cannot convert parameter 3 from 'unsigned long (void *)' t
- 收起你的泪水,找回自我:伤感语录分享
- Ubuntu10.10下Samba服务器的搭建
- UML 对象图
- UVa 12290 Counting Game
- WGS84坐标与Web墨卡托坐标互转
- linux下ioctl函数学习
- PRJ: 数据波动_RMS计算
- 梁逸轩唯美伤感空间日志发布:其实,我不想说再见~~
- 学arm初犯得几个错误
- poj1020--DFS