centos 5 6 samba 的安裝和除錯

2021-09-20 16:22:21 字數 1276 閱讀 8259

從今天準備學習linux下各種伺服器的配置

第一天學習samba的搭建

配置檔案內容如下:

(利用 grep -v '^#' /etc/samba/smb.conf | grep -v '^;'| grep -v '^$' |grep -v ' *#'得到的配置檔案)

[global]

workgroup = workgroup

server string = file server 

security = share

load printers = yes

cups options = raw

[homes]

comment = home directories

browseable = no

writable = yes

[printers]

comment = all printers

path = /var/spool/samba

browseable = no

guest ok = no

writable = no

printable = yes

[public]

comment = share

path = /share/

public = yes

writeable = yes

guest ok = yes

利用testparm 命令得到的配置檔案

[global]

server string = file server

security = share

cups options = raw

[homes]

comment = home directories

read only = no

browseable = no

[printers]

comment = all printers

path = /var/spool/samba

printable = yes

browseable = no

[public]

comment = share

path = /share/

read only = no

guest ok = yes

/share資料夾的許可權如下

drwxrwxrwx   2 root root  4096 06-13 10:03 share

但是在windows裡訪問時,出現

cysky

centos下samba的安裝配置

最近搞了個centos的伺服器,但是如果不能進行檔案的共享傳遞,著實麻煩,所以著手安裝samba服務,網上多數是採用rpm安裝的,其實聯網的話,可以使用yum來安裝的,我們就用最簡單的方法安裝 yum install samba whereis samba samba etc samba usr s...

CentOS 7 samba 的簡易配置

一 安裝 預設很可能已經安裝了,如果沒有,則 yum install samba 若系統為ubuntu或其他,則需要修改配置檔案以允許訪問家目錄 etc samba smb.conf 中的 homes 段 二 設定賬戶和許可權 smbpasswd a cj 本文件只設定訪問家目錄許可權,所以建立乙個...

CentOS下Samba伺服器的構建

看下面前可以看一下這個簡單版本的配置 http lxbins.blog.51cto.com 1089997 245530 workgroup workgroup 變為此狀態,這裡以 windows xp 預設的 workgroup 為例 hosts allow 192.168.1.192.168.2...