Robin's Java World
I Love Java As My Life!
BlogJava
首页
新随笔
联系
聚合
管理
随笔-96 评论-265 文章-0 trackbacks-0
Fedora Core 8配置SAMBA服务成功
新装了Fedora Core8,虽然我们有可爱的rz/sz命令可用,但是像Windows一样的文件共享更方便,这也我们不得不佩服Windows的地方。同时,我也需要向同事们共享我的文件,所以决定采用SAMBA来配置我的共享服务。
1、使用yum命令来安装或更新你的SAMBA包。
yum install samba
2、samba的配置文件在如下
/etc/samba/smb.conf
修改其配置如下:
#
=======================
Global Settings
=====================================
[
global
]
# ----------------------- Netwrok Related Options -------------------------
#
# workgroup
=
NT-Domain-Name or Workgroup-Name
,
eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect
,
and you can
# specifiy it as a per share option as well
#
workgroup
=
robin
server string
=
MYSERVER
netbios name
=
MYSERVER
;
hosts allow = 127. 192.168.
# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach
# logs split per machine
log file
=
/var/log/samba/log.%m
# max 50KB per log file
,
then rotate
max log size
=
50
# ----------------------- 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
=
share
;
encrypt passwords = yes
guest ok
=
yes
guest account
=
root
#
============================
Share Definitions
==============================
[
homes
]
comment
=
Home Directories
browseable
=
no
writable
=
yes
;
valid users = %S
;
valid users = MYDOMAIN\%S
[
printers
]
comment
=
All Printers
path
=
/var/spool/samba
browseable
=
no
;
guest ok = no
;
writable = No
printable
=
yes
# Un-comment the following and create the netlogon directory for Domain Logons
;
[netlogon]
;
comment = Network Logon Service
;
path = /var/lib/samba/netlogon
;
guest ok = yes
;
writable = no
;
share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;
[Profiles]
;
path = /var/lib/samba/profiles
;
browseable = no
;
guest ok = yes
# A publicly accessible directory
,
but read only
,
except for people in
# the
"
staff
"
group
;
[public]
;
comment = Public Stuff
;
path = /home/samba
;
public = yes
;
writable = yes
;
printable = no
;
write list = +staff
[
temp
]
path
=
/root/temp
writeable
=
yes
;
browseable = yes
guest ok
=
yes
3、重启SAMBA服务
/etc/init.d/smb restart
4、Enjoy
PS:Fedora Core从V2起都有预装SELinux,这个不会配置的可以先把她关掉,关闭的方法如下:
修改/etc/selinux/config文件中的SELINUX="" 为 disabled ,然后重启FC
posted on 2008-01-24 14:29
Robin's Java World
阅读(1213)
评论(0)
编辑
收藏
所属分类:
原创
、
其它
新闻频道
新用户注册
刷新评论列表
标题
姓名
主页
验证码
*
内容(请不要发表任何与政治相关的内容)
Remember Me?
登录
使用高级评论
新用户注册
返回页首
恢复上次提交
[使用Ctrl+Enter键可以直接提交]
博客园
BlogJava
博客生活
IT博客网
C++博客
PHP博客
博客园社区
管理博客
教师博客
天文博客
汽车博客
足球博客
股票博客
电子博客
管理
相关文章:
JVM分析的两个工具(MAT&GCViewer)试用
WAS与IHS结合时如何配置SSL
纯Java通过SSH执行Linux命令
Quartz与Spring结合时如何动态更新Job的启动时间
WebSphere Portal V6.1安装手记
Apache Http Server与BEA WebLogic整合手记
广州出差日记(2.15-2.22)
Struts与Spring集成时使用AutowiringRequestProcessor产生的问题及解法
Fedora Core 8 使用经验集(不断更新)
VBA编程心得
<
2008年1月
>
日
一
二
三
四
五
六
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
常用链接
我的随笔
我的评论
我的参与
最新评论
留言簿
(13)
给我留言
查看公开留言
查看私人留言
随笔分类
(93)
其它(29)
原创(43)
心情(3)
翻译(1)
读书(6)
转载(11)
随笔档案
(90)
2008年7月 (5)
2008年5月 (2)
2008年4月 (1)
2008年3月 (3)
2008年2月 (2)
2008年1月 (7)
2007年12月 (6)
2007年11月 (6)
2007年10月 (3)
2007年9月 (1)
2007年8月 (6)
2007年7月 (4)
2007年6月 (2)
2007年5月 (3)
2007年3月 (1)
2007年2月 (1)
2007年1月 (3)
2006年12月 (7)
2006年10月 (1)
2006年8月 (3)
2006年7月 (1)
2006年6月 (5)
2006年4月 (6)
2006年3月 (2)
2006年2月 (3)
2006年1月 (1)
2005年11月 (5)
相册
文章相关图片
收藏夹
other
Friend Links
Tiger's Space
Tiger的Blog,专注于过程改进,项目管理,质量管理三个方向。
搜索
积分与排名
积分 - 132344
排名 - 53
最新评论
1. re: XFire完整入门教程
@ponpon
在另一个工程里面要传List<User>这样的参数,你可以把服务端的User对象打包过来。然后import这个对象即可呀。
--Robin's Java World
2. re: JVM分析的两个工具(MAT&GCViewer)试用
非常好,谢谢博主
--44you
3. re: XFire完整入门教程
评论内容较长,点击标题查看
--ponpon
4. re: JVM分析的两个工具(MAT&GCViewer)试用
@单飞
当然可以,MAT中有一项叫“Leak Suspects”,可以查看原因。
--Robin's Java World
5. re: JVM分析的两个工具(MAT&GCViewer)试用
能分析出是那个类,那个方法抛出的OOM吗?
--单飞
阅读排行榜
1. Fedora Core 6硬盘安装手记(10212)
2. [译]Struts Menu开发向导(4927)
3. XFire完整入门教程(3915)
4. JBuilder2006也用CheckStyle(3658)
5. JDK1.5API完整中文版CHM格式文档发放(可下载)(3150)
评论排行榜
1. XFire完整入门教程(28)
2. JDK1.5API完整中文版CHM格式文档发放(可下载)(21)
3. Fedora Core 6硬盘安装手记(17)
4. [分享]2007年3月个人学习的积累图(13)
5. 技术总结及推荐例程和文章+学习计划,请大家提建议(10)
60天内阅读排行
1. 纯Java通过SSH执行Linux命令(1011)
2. JVM分析的两个工具(MAT&GCViewer)试用(942)
3. Dudu老大,给你提个大Bug(827)
4. WAS与IHS结合时如何配置SSL(702)
5. 分析一下明天的投资情况及备忘(57)