centos 5.6 samba 的安装和调试

 从今天准备学习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里访问时,出现

 

   

 

你可能感兴趣的:(centos,职场,samba,休闲)