Linux 5.5 下,安装samba(一)
1、查看samba的安装情况
rpm -qa |grep samba
2、卸载原有samba
rpm -e -f --nodeps samba-common
rpm -e -f --nodeps samba-client
3、安装samba
rpm -ivh -f --nodeps samba*
4、修改配置文件(事先备份)
mv smb.conf smb.conf.bak
vi /etc/samba/smb.conf
[global]
workgroup = LinuxSir
security = share
hosts allow = 192.168.
[Standalone Server Options]
security = share
passdb backend = tdbsam
[public]
comment = sambatest
path = /home/samba_test (权限有要求,777)
public = yes
5、添加用户
smbpasswd -a sambatest
5、重启smb服务
service smb restart
6、关闭防火墙
sevice iptables stop
浙公网安备 33010602011771号