Samba

[root@salt-master ~]# cat /etc/samba/smb.conf
[global]
server string = Samba Server
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
[web]
workgroup = test1
netbios name = test1
path = /home/tmp/
browseable = yes
writeable = yes
[root@salt-master ~]#

必须先建立系统用户,也可以使用pdbedit命令来建立samba用户:

pdbedit –a username:新建Samba账户。
参考
关闭selinux、iptables

[root@salt-master ~]# ll /home/tmp/
总用量 20
drwx------ 2 test1 test1 16384 12月 5 15:31 lost+found
drwxr-xr-x. 2 test1 test1 4096 12月 5 15:33 Server
[root@salt-master ~]# id test1
uid=503(test1) gid=503(test1) 组=503(test1)
[root@salt-master ~]#

comments powered by Disqus