设为首页  
联系我们  
加入收藏  
网页制作 冲浪宝典 图形图像 操作系统 软件教学 编程开发 认证考试 安全技术 站长专区 文学驿站 娱乐天地 游戏天地 办公软件
文章搜索
您的位置: 首页 >> 文章首页 >> 编程开发 >> 其他开发语言 >> samba unix风格的配置文件配置信息读取C代码.
精品推荐
其他开发语言点击TOP10
·数字小键盘指法练习
·用C语言编通讯录程序(初学者级别的)
·Modem 常用AT指令集
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
·Thinking in C++ 简体中文第二版
·debug和release的区别
·error LNK2001: unresolved external symbol __ftol2 错误解决
·C库函数手册
·一个简单的C语言编译器
编程开发点击TOP10
·数字小键盘指法练习
·ASP.NET 程序中常用的三十三种代码
·用C语言编通讯录程序(初学者级别的)
·我写的Java学生成绩管理系统源代码
·CHK文件恢复工具
·Modem 常用AT指令集
·java笔试题
·异常java.sql.SQLException: Io exception:The Network Adapter could not establish connection
·单片机模拟I2C总线及24C02(I2C EEPROM)读写实例(源代码)
·C++经典电子书下载
精选专题

samba unix风格的配置文件配置信息读取C代码.

作者: 来源:网络文章 时间:2005-12-17 19:09:00

samba unix风格的配置文件配置信息读取C代码.(1)

    samba是个开源的文件服务器软件,可以在多个平台上运行.如果你使用过,那么一定设置过它的配置文件.
    如果你想写一个类似读这样的配置文件的代码,那么下面的从samba提取出来的代码讲对你很有用.它采用
    回调的机制,获取配置信息.
   
smb.conf 如下
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
 workgroup = gdcattsoft

# server string is the equivalent of the NT Description field
 server string = samba server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts Access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
 printcap name = /etc/printcap
 load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx, cups

1.samba unix风格的配置文件配置信息读取C代码.(1)
2.samba unix风格的配置文件配置信息读取C代码.(2)
3.samba unix风格的配置文件配置信息读取C代码.(3)
4.samba unix风格的配置文件配置信息读取C代码.(4)
5.samba unix风格的配置文件配置信息读取C代码.(5)
6.samba unix风格的配置文件配置信息读取C代码.(6)
7.samba unix风格的配置文件配置信息读取C代码.(7)
8.samba unix风格的配置文件配置信息读取C代码.(8)
9.samba unix风格的配置文件配置信息读取C代码.(9)
10.samba unix风格的配置文件配置信息读取C代码.(10)
11.samba unix风格的配置文件配置信息读取C代码.(11)
12.samba unix风格的配置文件配置信息读取C代码.(12)
13.samba unix风格的配置文件配置信息读取C代码.(13)
14.samba unix风格的配置文件配置信息读取C代码.(14)
15.samba unix风格的配置文件配置信息读取C代码.(15)
16.samba unix风格的配置文件配置信息读取C代码.(16)
17.samba unix风格的配置文件配置信息读取C代码.(17)
18.samba unix风格的配置文件配置信息读取C代码.(18)
19.samba unix风格的配置文件配置信息读取C代码.(19)
20.samba unix风格的配置文件配置信息读取C代码.(20)
21.samba unix风格的配置文件配置信息读取C代码.(21)
22.samba unix风格的配置文件配置信息读取C代码.(22)
23.samba unix风格的配置文件配置信息读取C代码.(23)
共23页 9 7 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [238 :>

samba unix风格的配置文件配置信息读取C代码. 相关文章:
samba unix风格的配置文件配置信息读取C代码. 相关软件:
特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。
转载请注明来源:http://www.xgdown.com