删除和添加samba用户

时间:2021-09-24 17:50:52   收藏:0   阅读:26

#关闭防火墙:stop暂时关闭,disable永久关闭

setenforce 0
sed -i s/SELINUX=enforcing/SELINUX=disabled/ /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
systemctl stop smb
pdbedit -x -u y00
pdbedit -a -u y00

chown -Rf y00:y00 /home/y00
systemctl start smb
systemctl enable smb
systemctl status smb

 

#开启防火墙samba无法映射?

systemctl start firewalld
systemctl enable firewalld
systemctl status firewalld

 

原文:https://www.cnblogs.com/yyqng/p/15307036.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!