samba
来源:百度文库 编辑:神马文学网 时间:2024/04/30 11:28:54
测试平台: RedHat LINUX 7.2 samba-2.2.2-1
[root@test root]# rpm -qa |grep samba
samba-common-2.2.2-1
samba-client-2.2.2-1
samba-2.2.2-1
#groupadd g1
#groupadd g2
#for user in test1 test2
>do
>useradd -g g1 -s /bin/false $user 后面-s /bin/false 是禁止使用shell
>smbpasswd -a $user
>done
#mkdir /home/g1
#chgrp g1 /home/g1
#chmod 770 /home/g1
#chmod g+s /home/g1
[root@test root]#netstat -tlump | grep ‘:13‘
[root@test samba]# testparm
[root@test samba]# /etc/rc.d/init.d/smb restart
[root@test root]# vi /etc/samba/smb.conf
====================================== smb.conf =====================================
[global]
workgroup = workgroup
netbios name = linux72r
server string = test SAMBA server
client code page = 950
log file = /var/log/samba/log.%m
max log size = 0
security = user share 为简单共享
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 10.10.6.10
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
valid user =%S
create mode = 0664
directory mode =0775
[g1]
path = /home/g1
comment = g1
public = no
valid user = @g1
write list = @g1
create mask = 0770
directory mask = 0770
[g2]
path = /home/g2
comment = g2
public = no
valid user = @g2
write list = @g2
create mask = 0770
directory mask = 0770
[tmp$]
comment = temporary file space
path= /tmp
read only = no
public = yes
[root@test root]# rpm -qa |grep samba
samba-common-2.2.2-1
samba-client-2.2.2-1
samba-2.2.2-1
#groupadd g1
#groupadd g2
#for user in test1 test2
>do
>useradd -g g1 -s /bin/false $user 后面-s /bin/false 是禁止使用shell
>smbpasswd -a $user
>done
#mkdir /home/g1
#chgrp g1 /home/g1
#chmod 770 /home/g1
#chmod g+s /home/g1
[root@test root]#netstat -tlump | grep ‘:13‘
[root@test samba]# testparm
[root@test samba]# /etc/rc.d/init.d/smb restart
[root@test root]# vi /etc/samba/smb.conf
====================================== smb.conf =====================================
[global]
workgroup = workgroup
netbios name = linux72r
server string = test SAMBA server
client code page = 950
log file = /var/log/samba/log.%m
max log size = 0
security = user share 为简单共享
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
interfaces = 10.10.6.10
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
valid user =%S
create mode = 0664
directory mode =0775
[g1]
path = /home/g1
comment = g1
public = no
valid user = @g1
write list = @g1
create mask = 0770
directory mask = 0770
[g2]
path = /home/g2
comment = g2
public = no
valid user = @g2
write list = @g2
create mask = 0770
directory mask = 0770
[tmp$]
comment = temporary file space
path= /tmp
read only = no
public = yes
samba
Samba
SAMBA架設
RHEL5 - Samba
samba配置
SAMBA架設
Samba使用大全 samba-2.2.2
SAMBA配置详解
Samba服务器初步
samba文件共享
开机自动启动samba
samba与iptables
SAMBA配置详解
centos开启samba服务
搭建Samba服务器
Debian下配置Samba服务器 - Samba - 技术应用 - 豆豆网
利用samba3.0构建samba服务器
在 Linux 使用 Samba CUPS 分享印表機
opensuse下samba服务器的配置
samba-3源码安装一:编译安装
用swat配置samba更方便
【原创系列】玩转Samba之Samba服务器搭建全程讲解_锋芒网-Oracle+Linux...
redhat linux 9.0 samba配置详解--mophis的博客
Linux與Windows溝通的橋樑--samba 專題