CENTOS下SAMBA服务不能开启的解决方法

Job for smb.service failed because the control process exited with error code. CentOS 7

I have this problem with my CentOS 7.2 server which will not start samba server anymore.

For example if I run:

systemctl restart smb.service

I will receive some garbage value like:

Job for smb.service failed because the control process exited with error code.
See "systemctl status smb.service" and "journalctl -xe" for details.

I read that this command can make sure if my config file is perfectly good:

smbstatus

And I received:

WARNING: Ignoring invalid value ‘share‘ for parameter ‘security‘
Can‘t load /etc/samba/smb.conf - run testparm to debug it

So I go to my config file /etc/samba/smb.conf and commented one line which starts with security:

#security = share

Now when I re-launch smbstatus it says:

Samba version 4.2.10
PID     Username      Group         Machine            Protocol Version
------------------------------------------------------------------------------

Service      pid     machine       Connected at
-------------------------------------------------------

/var/lib/samba/locking.tdb not initialised
This is normal if an SMB client has never connected to your server.

After all I try to start samba server again and succed:

systemctl restart smb.service
时间: 2024-11-09 17:22:52

CENTOS下SAMBA服务不能开启的解决方法的相关文章

centos下wget: command not found的解决方法

今天给服务器安装新LNMP环境时,wget 时提示 -bash:wget command not found,很明显没有安装wget软件包.一般linux最小化安装时,wget不会默认被安装,这里是CentOS 6.3 32位系统 解决方法: 1.rpm 安装 下载wget的RPM包: 32位:http://mirrors.163.com/centos/6.3/os/i386/Packages/wget-1.12-1.4.el6.i686.rpm 6432位:http://mirrors.163

Centos下安装bowtie的问题与解决方法

前提:已经安装了boost库. 安装的版本:bowtie1.2.1 解压后,发现文件包内已经有Makefile.所以直接make:$make 问题1:<tbb/tbb.h>:no such file or directory. 解决方法:下载tbb库,并将tbb目录copy到/usr/include 问题2:/bin/ld:can not find -Iz j解决方法:下载zlib-devel:#yum install zlib-devel (备注,centos中是zlib-devel,ubu

Centos下samba服务快速搭建

准备工作: 先排除系统安全机制干扰,关闭iptables.selinux service iptables stop setenforce 0 ++++++++++++++++++++++++++++++++++++ 1.安装samba(CentOS Linux): yum install samba system-config-samba samba-client samba-common 2.创建系统用户账号 /usr/sbin/groupadd www /usr/sbin/useradd

在linux(CentOS)下无法挂载glusterfs原因及解决方法

执行的mount命令: mount target_host:/volume_name current_path 执行mount命令后,提示错误信息 /usr/sbin/start-statd: line 8: systemctl: command not found        mount.nfs: rpc.statd is not running but is required for remote locking.        mount.nfs: Either use '-o nolo

centos下MYSQL 没有ROOT用户的解决方法。

SbTest for using sysbench creating scritps: sysbench --test=oltp --oltp-table-size=100000 --mysql-db=test --mysql-user=root --mysql-password=V79mk4zfdv --db-driver=mysql  prepare;sysbench 0.4.12:  multi-threaded system evaluation benchmark

linux下samba服务搭建

实验拓扑:Linux Client-----RHEL5.9(vmnet1)----------(vmnet1)Win7 Client 实验一:Samba匿名共享工作组为Tarena将目录 /usr/src 共享给所有人共享名设为 tools允许所有人访问.无需密码验证访问权限为只读 1.安装软件包[[email protected] ~]# rpm -q samba-client samba samba-commonpackage samba-client is not installedpac

CentOS下dns服务器之授权

dns授权 dns授权分为两步 1]父域dns对子域dns实现授权, 2]子域对父域 1.改变根提示,把父域dns视为根 2.转发器 dns服务器的搭建请看dns服务器搭建 一.修改父域实现对子域的授权 修改dns服务器配置文件注释最后一行 [[email protected] chroot]# vim etc/named.conf options { listen-on port 53 { any; }; listen-on-v6 port 53 { ::1; }; directory    

centos下Samba配置

1.安装samba(CentOS Linux):yum install samba system-config-samba samba-client samba-common 2.创建www账号 /usr/sbin/groupadd www/usr/sbin/useradd -g www www mkdir -p /data/ chown -R www:www /data/ chmod 777 /data/ cat /etc/passwd | mksmbpasswd.sh> /etc/samba

CentOS+Apache+php无法访问redis的解决方法 Redis server went away

在CentOS下配置Apache+php+redis+phpredis环境.编辑访问redis缓存的php程序test.php,以应用程序方式在后台运行,可成功访问Redis,而在Apache下以网页形式访问时则出错,在访问Redis以及之后的代码均不再执行.查看Apache的日志:/var/log/httpd/error_log,发现代码运行时出现异常:PHP Fatal error: Uncaught exception 'RedisException' with message 'Redi