【转】centos 6.4 samba 安装配置
2014-03-05 21:32
323 查看
关掉防火墙
service iptables stop
chkconfig iptables off (永久关闭防火墙)
关闭SELinux
vi /etc/sysconfig/selinux
把 SELINUX=enforcing 修改为SELINUX= disabled
退出保存,并且重启
[root@bogon lee]# yum install samba smbfs smbclient
二 创建目录
[lee@bogon ~]$ mkdir share
[lee@bogon ~]$ chmod 777 /home/lee/share/
三 修改samba配置文件
[root@bogon lee]# cp /etc/samba/smb.conf smb_backup.conf
[root@bogon lee]# vi /etc/samba/smb.conf
将下面部分加入到smb.conf 末尾
[share]
path = /share
available = yes
browseable = yes
public = yes
writable = yes
四 创建samba账户
[root@bogon lee]# touch /etc/samba/smbpasswd
[root@bogon lee]# smbpasswd -a lee
如果还不能访问,尝试修改/etc/samba/smb.conf
# ----------------------- Standalone Server Options ------------------------
# Scurity can be set to user, share(deprecated) or server(deprecated)
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
security = user
==> security = share
其他细节参考:
http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html
service iptables stop
chkconfig iptables off (永久关闭防火墙)
关闭SELinux
vi /etc/sysconfig/selinux
把 SELINUX=enforcing 修改为SELINUX= disabled
退出保存,并且重启
[root@bogon lee]# yum install samba smbfs smbclient
二 创建目录
[lee@bogon ~]$ mkdir share
[lee@bogon ~]$ chmod 777 /home/lee/share/
三 修改samba配置文件
[root@bogon lee]# cp /etc/samba/smb.conf smb_backup.conf
[root@bogon lee]# vi /etc/samba/smb.conf
将下面部分加入到smb.conf 末尾
[share]
path = /share
available = yes
browseable = yes
public = yes
writable = yes
四 创建samba账户
[root@bogon lee]# touch /etc/samba/smbpasswd
[root@bogon lee]# smbpasswd -a lee
如果还不能访问,尝试修改/etc/samba/smb.conf
# ----------------------- Standalone Server Options ------------------------
# Scurity can be set to user, share(deprecated) or server(deprecated)
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
security = user
==> security = share
其他细节参考:
http://www.cnblogs.com/mchina/archive/2012/12/18/2816717.html
相关文章推荐
- centOS6.4 部分常用软件 安装配置 (LAMP,PYTHON,SAMBA等不定期更新)
- CentOS 6.4安装和配置Samba服务
- CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)
- CentOS 6.4系统下编译安装LNMP和配置PHP环境具体步骤
- CentOS 6.4安装配置LAMP服务器
- Linux系统(CentOS 6.4)的NTFS驱动-NTFS-3g的安装和配置
- CentOS6.5安装与配置Samba服务
- CentOS 6.4安装配置LAMP服务器(Apache+PHP5+MySQL)
- centos 6.4 安装配置vsftp
- 服务器安装centos6.4 x86_64 与 配置XManager的XDMCP服务 与 配置Ntfs读写
- NTP的安装配置和使用(在centos6.4_x86_64环境下)
- CentOS 6.3下Samba服务器的安装与配置:samba服务企业中运用
- CentOS 6.4安装和配置VNC服务
- 开发人员学Linux(10):CentOS7安装配置代码质量管理平台SonarQube6.4
- CentOS 6.4安装配置LNMP服务器(Nginx+PHP+MySQL)
- CentOS6.4 安装配置iptables
- Linux Apache php MySQL 安装配置(Centos 6.4 yum安装)
- CentOS6.3安装samba服务,配置匿名访问
- CentOS6.3 Samba安装配置、多用户、加域
- centOS下yum安装配置samba