Centos安装samba文件服务器方法
一:yum安装samba,如果中途提示某些依赖没安装,请先安装依赖
yum -y install samba
二:查看安装状态
rpm -qa | grep samba
三:配置开放文件夹
1:为samba开设一个访问用户
useradd username //新增一个访问账户 smbpasswd -a username //windows访问samba共享目录时需要输入此用户
2:先把文件夹准备好
mkdir /var/samba/share //如刚才配置的共享目录不存在则创建 chown -R nobody. /var/samba/share //设置共享目录归属为 nobody chmod 777 /var/samba/share //将共享目录属性设置为 777
3:配置文件夹samba属性
编辑/etc/samba/smb.conf
[share] //windows客户端查看时看到的文件夹名 path = /var/samba/share //共享目录位置,要系统中存在的目录,也可以配置完再创建 read only = no public = yes writeable = yes browseable = yes guest ok = yes valid users = jinx
相关推荐
beiya 2008-02-25
lucklytd 2007-08-08
yshlovelx 2020-07-19
sapliang 2020-07-29
饮马天涯 2020-05-20
vanturman 2020-05-08
baishuwei 2020-02-25
ROES 2020-02-14
zhongzhiwei 2020-02-01
xcznb 2020-01-17
tianyayi 2020-01-09
sapliang 2019-12-16
kevinli 2019-12-15
wq0 2019-12-08
thlm0 2019-12-02
悠悠风信子 2013-08-23
kernelstudy 2014-03-07
秋风瑟瑟 2019-11-12
85096220 2008-06-04