Centos7下Samba配置问题

rzsheng 2014-08-21 10:38:05
请教各位大侠,我在Centos7下配置Samba的时候出现如下问题,基本情况介绍如下,麻烦各位指点一二,多谢!
OS: Centos
Samba version: samba-4.1.1-31.el7.x86_64

已关闭SELINUX

已配置iptables:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 137 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 138 -j ACCEPT

已配置smb.conf, 如下:
[global]
workgroup = MYGROUP
server string = Samba Server Version %v

netbios name = samba server

log file = /var/log/samba/log.%m
max log size = 50

security = user
map to guest = Bad User
passdb backend = tdbsam

load printers = yes
cups options = raw

[public]
comment = System Integration group
path = /share
public = yes
writable = yes
printable = no
browseable = yes
guest ok = no
guest account = guest

...全文
1273 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
muxuefeng111 2014-11-09
  • 打赏
  • 举报
回复
我出现这个问题,请问 又遇到过吗
yn_wolf 2014-10-05
  • 打赏
  • 举报
回复
既然想匿名访问,LZ 应该设置guest ok = yes ,另外映射的用户名guest,确定本地账户中有这个用户名吗?centos中默认的用户名中是没有guest这个帐户的
  • 打赏
  • 举报
回复
引用 6 楼 rzsheng 的回复:
有人遇到过这样的问题吗? 看来我得重装一次系统了,多试验一下。
it's too new to put into production environment... I am still waiting.... maybe next year, I will spend some time on it... good luck!
rzsheng 2014-08-29
  • 打赏
  • 举报
回复
有人遇到过这样的问题吗? 看来我得重装一次系统了,多试验一下。
  • 打赏
  • 举报
回复
引用 3 楼 rzsheng 的回复:
Thanks micropentium6, firewalld is already working ok. anything eles you prompt?
As I addressed up there, I am not a RHEL 7 user yet. My reply is more likely to be a question: did you have to deal with firewalld GUI or we can still handle firewall using iptables file?
rzsheng 2014-08-21
  • 打赏
  • 举报
回复
Thanks micropentium6, firewalld is already working ok. anything eles you prompt?
  • 打赏
  • 举报
回复
haven't started to play with CentOS 7 yet. I heard iptables was replaced by firewalld. Does iptables still take any role or firewalld is a facade on top of iptables? https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/sec-Using_Firewalls.html
rzsheng 2014-08-21
  • 打赏
  • 举报
回复
忘记贴问题了,问题如下:

[root@localhost /]# systemctl status smb.service -l
smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled)
   Active: active (running) since 四 2014-08-21 10:24:47 CST; 14min ago
 Main PID: 2621 (smbd)
   Status: "smbd: ready to serve connections..."
   CGroup: /system.slice/smb.service
           ├─2621 /usr/sbin/smbd
           └─2811 /usr/sbin/smbd

8月 21 10:24:44 localhost.localdomain smbd[2535]: [2014/08/21 10:24:44.399703,  0] ../source3/param/loadparm.c:3188(lp_do_parameter)
8月 21 10:24:44 localhost.localdomain smbd[2535]: Global parameter guest account found in service section!
8月 21 10:24:44 localhost.localdomain smbd[2535]: [2014/08/21 10:24:44.511419,  0] ../source3/smbd/server.c:1278(main)
8月 21 10:24:44 localhost.localdomain smbd[2535]: standard input is not a socket, assuming -D option
8月 21 10:24:44 localhost.localdomain systemd[1]: smb.service: Supervising process 2621 which is not our child. We'll most likely not notice when it exits.
8月 21 10:24:47 localhost.localdomain smbd[2621]: [2014/08/21 10:24:47.981717,  0] ../lib/util/become_daemon.c:136(daemon_ready)
8月 21 10:24:47 localhost.localdomain systemd[1]: Started Samba SMB Daemon.
rzsheng 2014-08-21
  • 打赏
  • 举报
回复
iptables file, how to deal with iptables is my puzzle.

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧