安裝沒什麼好說的,直接使用以下命令安裝即可
yum install -y samba
mkdir /opt/smb/share
mkdir /opt/smb/myfiles
chmod o+w /opt/smb/share
chmod o+w /opt/smb/myfiles
useradd smb
smbpasswd -a smb
備份原來原來的配置檔案 cp /etc/samba/smb.conf /etc/samba/smb.conf_bak20190129
vim /etc/samba/smb.conf
[global]
workgroup = samba
security = user
server string = samba server
map to guest = bad user
[homes]
comment = home directories
valid users = %s, %d%w%s
browseable = no
read only = no
inherit acls = yes
[share]
comment = readandwrite for all users
path = /opt/smb/share
#readonly = no
writeable = yes
browseable = yes
guest ok = yes
[smb]
comment = only for user smb
path = /opt/smb/myfiles
public = no
writeable = yes
write list = @smb root
validusers = @smb root
firewall-cmd --permanent --add-service=samba
firewall-cmd --reload
如果啟用了selinux,做完了上面的配置還是只能以唯讀方式訪問,需要修改selinux的設定:
chcon -t samba_share_t /opt/smb/share
chcon -t samba_share_t /opt/smb/myfiles
systemctl restart smb nmp
使用ifconfig檢視ip,然後使用 \\192.168.0.100\share 這樣來訪問samba服務 Linux(CentOS7)安裝部署Nginx
一 安裝 1 安裝make yum y install gcc automake autoconf libtool make2 安裝c 編譯環境,若已安裝則跳過 yum install gcc gcc c 3 安裝openssl cd usr local src wget tar zxvf open...
centos 7 部署k8s集群
systemctl stop firewalld systemctl disable firewalld yum y install ntp systemctl start ntpd systemctl enable ntpd yum update y 安裝etcd kubernetes yum y...
CentOS7部署過程
接著的是 從零開始vcs verdi 安裝及破解過程 centos7 完整的部署硬體設計 環境,以搭建pulpino的全流程 一般linux最小化安裝時,wget不會預設被安裝 yum安裝 yum y install wget即可安裝 首先備份 etc yum.repos.d centos base...