Linux系统调用详解之pdbedit

合集下载

设定可使用Samba的用户帐号与密码

设定可使用Samba的用户帐号与密码

设定可使用Samba的用户帐号与密码▪设定可使用Samba 的用户帐号与密码设定使用者帐号是很重要的一环,因为设定错误的话,当然也就任何人都没有办法登入的!在这里我们必须先要说明一下Linux 的档案系统与SAMBA 设定的使用者登入权限的相关性!•在Linux 这个系统下,任何程序都需要取得UID 与GID (User ID 与Group ID) 的身份之后,才能够拥有该身份的权限,也才能够适当的进行存取档案等动作!•关于Linux 这个系统的UID 与GID 与帐号的相对关系,一般记录在/etc/passwd 当中,当然也能透过NIS, ldap 等方式来取对应;•SAMBA 仅只是Linux 底下的一套软体,使用SAMBA 来进行Linux 档案系统时,还是需要以Linux 系统下的UID 与GID 为准则!如果上面这几点说明你没有问题了,现在就来看一下当我们在Windows 电脑上面以网路上的芳邻来连接Linux 并且进行资料的存取时,会是怎样的一个情况呢?我们需要透过SAMBA所提供的功能来进行Linux的存取,而Linux的存取是需要取得Linux系统上面的UID与GID的,因此,我们登入SAMBA伺服器时,所利用SAMBA取得的其实是Linux系统里面的相关帐号!这也就是说,在SAMBA上面的使用者帐号,必须要是Linux帐号中的一个!所以说,在不考虑NIS或LDAP等其他帐号的验证方式,单纯以Linux本机帐号(/etc/passwd)作为身份验证时,在Samba伺服器所提供可登入的帐号名称,必须要存在于/ etc/passwd当中!这是一个很重要的概念!例如你要先有dmtsai在/etc/passwd当中后,才能将dmtsai加入Samba的使用者当中。

这都是很基本的帐号权限概念,如果你觉得这里阅读方面有问题,若不考虑鸟哥的解释不良,表示你必须要回去读读基础篇了~ ^_^现在我们知道需要新增smb1, smb2, smb3 三个用户,且这三个用户需要加入users 群组。

linux Samba服务器详解以及配置

linux Samba服务器详解以及配置
smbd:提供文件共享协议,工作在 445/tcp
winbind:为 Windows AD 服务
加入 Windows 的 AD
1.安装 Samba、Samba-client、Samba-conmmon、Samba-winbind 软件包
2.使用 authconfig-tui 工具两次勾选 winbind 后,填写 Domain、Domain Controllers、ADS Realm 即可添加到 Windows 的域服务器
@ # setsebool -P samba_export_all_rw on || 若要共享系统文件则必须使用该命令开启 SELinux 的访问控制
@ =============== Global Settings ================ || 双横线以下为全局配置
Samba:跨 Linux、Unix 与 Windows 平台进行文件传输
在 Linux/Unix 上使用软件模拟 NetBIOS 与 CIFS/SMB 的功能实现与 Windows 的交互,即:
当 Linux/Unix 主机上使用 Samba 的软件将某个目录共享出来,即可在同一网段内的 Windows 的主机上通过 UNC 路径直接对 Linux/Unix 上的该文件进行操作,也可以将 Windows 上共享出的目录通过 CIFS 协议挂载至 Linux/Unix 下直接进行操作
@ # maximum size of 50KB per log file, then rotate:
@ max log size = 50 || 日志大于50 KB 轮询一次(可根据时间或大小设置轮询)
@ 。。。。。。。。。。。。。
@ 。。。。。。。。。。。。

pdb 用法

pdb 用法

pdb 用法
PDB(Protein Data Bank)是一个存储生物大分子(如蛋白质、核酸等)结构信息的数据库。

PDB 文件包含有关分子的三维坐标、结构信息、生物学相关的元数据等。

以下是一些常见的 PDB 文件的用法:
查看 PDB 文件:
PDB 文件通常是文本文件,你可以使用文本编辑器查看其内容。

例如,使用命令行下的 cat(Linux/macOS)或 type(Windows):cat your_file.pdb
分析 PDB 文件:
你可以使用专业的生物信息学工具来分析PDB 文件,例如BioPython、PyMOL、或者 Rosetta。

这些工具提供了丰富的功能,用于解析、可视化、分析生物大分子的结构。

PDB 文件格式:
如果你想编写脚本来处理PDB 文件,了解PDB 文件的格式是很重要的。

PDB 文件的格式描述了原子的坐标、结构信息等。

详细了解 PDB 文件格式可以帮助你更好地处理和解析数据。

获取 PDB 文件:
你可以从PDB 数据库或其他相关数据库中下载PDB 文件。

在网站上搜索感兴趣的分子或结构,并下载相应的 PDB 文件。

可视化 PDB 文件:
使用专业的分子可视化工具如 PyMOL、VMD 或者 Chimera,可以加载 PDB 文件并以三维方式展示生物大分子的结构。

请根据你的具体需求选择适当的工具和方法。

生物信息学领域有很多工具和资源,适用于不同的任务和分析。

简要描述samba服务搭建的流程

简要描述samba服务搭建的流程

简要描述samba服务搭建的流程
Samba是一种常用的文件共享服务,可以在Linux系统中搭建。

以下是简要描述samba服务搭建的流程:
1. 安装samba服务:在Linux系统中使用包管理工具安装samba 服务,例如yum install samba
2. 配置samba服务:编辑Samba的配置文件smb.conf,指定共享目录、访问权限等参数,例如:[share] path = /data/share browseable = yes writable = yes valid users = user1,user2
3. 创建共享目录:在Linux系统中创建需要共享的目录,并设
置访问权限,例如:mkdir /data/share ; chmod 777 /data/share 4. 创建Samba用户账号:使用smbpasswd命令或pdbedit命令
创建Samba用户账号,并设置密码,例如:smbpasswd -a user1
5. 启动Samba服务:使用systemctl或service命令启动Samba 服务,例如:systemctl start smb.service
6. 在Windows系统中访问:在Windows系统中打开文件资源管
理器,输入Linux系统的IP地址和共享名称,例如:192.168.1.1share,输入Samba用户账号和密码即可访问共享文件。

以上是简要描述samba服务搭建的流程,具体可根据实际需求进行拓展。

- 1 -。

PDB文件详解

PDB文件详解

PDB⽂件详解1. PDB⽂件的介绍PDB(Program Data Base),意即程序的基本数据,是VS编译链接时⽣成的⽂件。

DPB⽂件主要存储了VS调试程序时所需要的基本信息,主要包括源⽂件名、变量名、函数名、FPO(帧指针)、对应的⾏号等等。

因为存储的是调试信息,所以⼀般情况下PDB⽂件是在Debug 模式下才会⽣成。

2. PDB⽂件的调⽤过程模块(Module),EXE和DLL都可以称之为模块,因为它们都有⾃已独⽴的Stack,所以我们在调试程序时,可以在Call Stack窗⼝查看到所有调⽤的Module Name。

并且可以右键查看相应模块的ybmol Load Information,即该模块调⽤的PDB⽂件路径的过程。

每个模块被载⼊的时候,其相同名字的PDB⽂件同时被载⼊。

所以Debug模式下,不仅因为代码没有优化,同时因为要载⼊PDB⽂件,所以Debug模式下的程序执⾏速度⾮常慢。

每个模块只会⽣成⼀个相同名字的PDB⽂件,并且模块⽣成的同时,会校验PDB⽂件⽣成GUID记录在模块内。

这是因为调试时,调试器强制要求每个模块必须和PDB⽂件保持⼀致。

实验过程中,⽤之前⽣成的PDB⽂件替换当前⽣成的PDB⽂件时,Debug窗⼝会显⽰No symbols loaded. MSDN也做了相应的说明:The debugger will load only a PDB for a binary that exactly matches the PDB that was created when the binary was built.PDB⽂件中记录了源⽂件路径的相关信息,所以在载⼊PDB⽂件的时候,就可以将相关调试信息与源码对应。

这样可以可视化的实时查看调试时的函数调⽤、变量值等相关信息。

模块当中记录的PDB⽂件是绝对路径。

所以只要模块在当前电脑上载⼊,调试器⾃然地会根据模块当中的路径信息找到相应PDB⽂件并载⼊。

pdb 常用指令

pdb 常用指令

pdb 常用指令pdb(Python 调试器)是 Python 标准库中的一个模块,用于在程序运行过程中进行调试和分析。

pdb 提供了一系列常用的指令,用于控制程序的执行、查看变量的值、设置断点等操作。

下面将介绍几个常用的 pdb 指令及其用法。

1. 介绍 pdb 模块及其常用指令pdb 是Python 内置的调试器,通过在代码中插入断点来实现程序的调试。

它提供了一系列的指令,可以在程序运行过程中控制程序的执行和查看变量的值。

下面将介绍几个常用的 pdb 指令。

2. 设置断点和程序执行控制- `break` 指令用于设置断点,可以在代码中的任意位置设置断点。

例如,使用 `break 10` 在第 10 行设置一个断点。

- `continue` 指令用于继续执行程序,直到遇到下一个断点或程序结束。

- `next` 指令用于执行下一行代码,并停在下一个可执行的代码行。

- `step` 指令用于进入函数或方法的内部,并停在函数或方法的第一行。

- `return` 指令用于跳出当前函数或方法,并继续执行后续代码。

3. 查看变量的值- `print` 或 `p` 指令可以打印变量的值。

例如,使用 `p x` 可以打印变量 x 的值。

- `list` 或 `l` 指令用于显示当前代码的上下文。

可以使用 `l 5, 10` 显示第 5 行到第 10 行的代码。

- `args` 指令用于显示当前函数或方法的参数及其值。

- `where` 或 `w` 指令用于显示当前的函数调用栈。

4. 控制程序的执行流程- `return` 指令用于在函数或方法内部强制返回。

- `jump` 指令用于跳转到指定的行号继续执行程序。

- `disable` 指令用于禁用指定断点,可以使用 `disable 1` 禁用第一个断点。

- `enable` 指令用于启用指定断点,可以使用 `enable 1` 启用第一个断点。

5. 其他常用指令- `help` 指令用于显示 pdb 的帮助信息。

《Linux网络操作系统配置与管理(第三版)》综合项目实训任务书[5页]

《Linux网络操作系统配置与管理(第三版)》综合项目实训任务书[5页]

XXXXXXX职业学院《Linux网络操作系统配置与管理》综合项目实训任务书教务处制《Linux网络操作系统配置与管理》综合项目实训任务书一、项目实训目的通过一个以学校为背景的校园网建设项目的综合实训,使学生在Red Hat Enterprise Linux 7操作系统平台上,掌握服务器的管理与配置技术,学会搭建一个中小型校园网的设计细节和施工流程,为今后架设综合网络平台以及云计算数据中心打下基础。

二、项目实训方式与基本要求1.项目实训前必须仔细阅读《项目施工任务书》,明确实训的目的、要求和任务,制定好上机步骤。

2.每人备用一台笔记本(至少16GB内存容量),独立完成全部项目任务。

3.上机时必须携带本项目实训任务书以及相关的教材资料,以备查阅。

三、项目施工时间和进度安排本项目实训安排在该课程学习的最后两周,每次4小时,共计32学时,进度见表15-4。

表15-4 项目实施进度表实施进度实施内容1 阅读本任务书,把握任务要求、明确实训内容2 搭建实训环境(准备好6台虚拟机及其所需数量的网卡,调试好4台虚拟机交换机)3 部署软路由器,配置所有主机的网络参数,实现4个内部子网及外网的互连互通4 逐台配置其他的功能服务器、完成本地客户机对服务器的访问测试5 进行综合调试和测试6 项目验收及成绩评定7 整理技术文档,并通过网络空间提交《综合项目实训报告书》四、项目规划及施工环境本项目通过1台物理机和VMware Workstation软件,构建了一个具有4个内部子网、一个外部模拟公网、4台虚拟交换机和6台虚拟机的网络,网络拓扑图如图15-2所示。

图15-2 校园网示意图设备及IP地址分配见表15-5。

表15-5 设备及IP地址配置参考表任务1:配置各虚拟机的网络参数和NAT服务,实现内部4个子网和外网的互连互通(1)为虚拟机①和虚拟机③添加所需数量的网卡,并根据表15-5的规划将各网卡连接至相应的虚拟交换机,配置所有虚拟机上各网卡的IP地址等网络参数。

Linux应用调试使用gdb和gdbserver命令详解

Linux应用调试使用gdb和gdbserver命令详解

Linux应⽤调试使⽤gdb和gdbserver命令详解1.gdb和gdbserver调试原理通过linux虚拟机⾥的gdb,来向开发板⾥的gdbserver发送命令,⽐如设置断点,运⾏setp等,然后开发板上的gdbserver收到命令后,便会执⾏应⽤程序做相应的动作,来实现调试的功能和之前学的裸板GDB调试⼀样,只不过之前学的是在win下的,本次是在linux⾥的gdb1.1同样,它们都会需要⼀个带调试信息的编译⽂件.通过Makefile⾥的arm-linux-gcc -g 来的, -g:表⽰编译⽂件⾥包含gdb调试信息1.2为什么需要调试信息的编译⽂件?⽐如读开发板的应⽤程序⾥的变量a:⾸先gdb通过应⽤程序的带调试信息的编译⽂件,来找出变量a存的地址位置然后将地址发送给开发板⾥的gdbserver,来读出a地址的值2.安装gdb和gdbserver2.1在虚拟机上安装GDB: # tar xjf gdb-7.4.tar.bz2 //解压# cd gdb-7.4/ //进⼊gdb-7.4⽬录#./configure --target=arm-linux//GDB需要在pc本机⾥运⾏,并调试开发板⾥的应⽤程序,所以--target设为arm-linux#make //编译#mkdir tmp#make install prefix=$PWD/tmp //安装到./tmp⽬录下sudo cp tmp/bin/arm-linux-gdb /bin/ //复制到/bin⽬录下/bin/arm-linux-gdb -v //-v: 确定⼀下gdb的版本VID,是否是7.42.2 在开发板上安装GDBServer:cd gdb/gdbserver/ //在gdb-7.4⽬录下输⼊./configure --target=arm-linux --host=arm-linux //设GDBServer的⼯作环境make //编译出现以下错误:指在linux-arm-low.c⾥,没有找到PTRACE_GETSIGINFO 定义2.3 解决:1)#echo $PATH //来查看PATH环境变量找到编译器gcc位于/work/tools/gcc-3.4.5-glibc-2.3.6/bin2)#cd /work/tools/gcc-3.4.5-glibc-2.3.6/ # grep "PTRACE_GETSIGINFO" * -nR在gcc根⽬录下,搜索到在linux/ptrace.h中定义:3)#vi linux-arm-low.c添加: #define PTRACE_GETSIGINFO 0x42024)最后重新make,⽣成gdbserver命令⽂件然后将gdbserver命令⽂件,放⼊我们开发板的根⽬录/bin中,便能使⽤了cp gdbserver /nfs_root/bin/ //nfs_root:开发板的nfs系统根⽬录3.测试程序如下(test_debug.c)#include <stdio.h>void C(int *p){ *p = 0x12;}void B(int *p){ C(p);}void A(int *p){ B(p);}void A2(int *p){ C(p);}int main(int argc, char **argv){ int a; int *p = NULL; A2(&a); // A2 > C printf("a = 0x%x\n", a); A(p); // A > B > C return 0;}其中A2(&a)会调⽤A2()->C(),然后将a赋值为0x12.A(p)会调⽤A()->B()->C(),由于p是个空指针,这⾥将会出错.接下来,我们便以这个应⽤程序为例.4.编译#arm-linux-gcc -g -o test_debug test_debug.c //-g:附带调试信息5.调试test_debug.c在开发板上:⾸先,需要让gdbserver建⽴本地服务器,以及要测试的哪个⽂件:#gdbserver 192.168.2.107:2345 ./test_debug//192.168.2.107:本地IP地址//2345:端⼝号,⽤来让gdb来连接⽤的//./test_debug:要测试的哪个⽂件在虚拟机上:#/bin/arm-linux-gdb ./test_debug // 启动gdb,指定调试⽂件为test_debug#target remote 192.168.2.107:2345 //与gdbserver建⽴连接5.1连接成功,便使⽤gdb命令来调试列出所有源代码break [file]:[row]打断点,⽐如:break test_debug.c:21 //在test_debug.c⽂件的第21⾏处打断点info br查看断点info file列出当前的⽂件,共享库。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Namepdbedit − manage the SAM database (Database of Samba Users)Synopsispdbedit [−a] [−b passdb−backend] [−c account−control] [−C value][−d debuglevel] [−D drive] [−e passdb−backend] [−f fullname][−−force−initialized−passwords] [−g] [−h homedir] [−i passdb−backend][−I domain] [−K] [−L] [−m] [−M SID|RID] [−N description][−P account−policy] [−p profile] [−−policies−reset] [−r][−s configfile] [−S script] [−t] [−−time−format] [−u username][−U SID|RID] [−v] [−V] [−w] [−x] [−y] [−z] [−Z]DESCRIPTIONThis tool is part of the samba(7) suite.The pdbedit program is used to manage the users accounts stored in thesam database and can only be run by root.The pdbedit tool uses the passdb modular interface and is independentfrom the kind of users database used (currently there are smbpasswd,ldap, nis+ and tdb based and more can be added without changing thetool).There are five main ways to use pdbedit: adding a user account, removinga user account, modifing a user account, listing user accounts,importing users accounts.OPTIONS−L|−−listThis option lists all the user accounts present in the usersdatabase. This option prints a list of user/uid pairs separated bythe ´:´ character.Example: pdbedit −Lsorce:500:Simo Sorcesamba:45:Test User−v|−−verboseThis option enables the verbose listing format. It causes pdbedit tolist the users in the database, printing out the account fields in adescriptive format.Example: pdbedit −L −v−−−−−−−−−−−−−−−username: sorceuser ID/Group:500/500user RID/GRID:2000/2001Full Name:Simo SorceHome Directory: \\BERSERKER\sorceHomeDir Drive:H:Logon Script:\\BERSERKER\netlogon\sorce.batProfile Path:\\BERSERKER\profile−−−−−−−−−−−−−−−username: sambauser ID/Group:45/45user RID/GRID:1090/1091Full Name:Test UserHome Directory: \\BERSERKER\sambaHomeDir Drive:Logon Script:Profile Path:\\BERSERKER\profile−w|−−smbpasswd−styleThis option sets the "smbpasswd" listing format. It will makepdbedit list the users in the database, printing out the accountfields in a format compatible with the smbpasswd file format. (see the smbpasswd(5) for details)Example: pdbedit −L −wsorce:500:508818B733CE64BEAAD3B435B51404EE:D2A2418EFC466A8A0F6B1DBB5C3DB80C:[UX ]:LCT−00000000:samba:45:0F2B255F7B67A7A9AAD3B435B51404EE:BC281CE3F53B6A5146629CD4751D3490:[UX ]:LCT−3BFA1E8D:−u|−−user usernameThis option specifies the username to be used for the operationrequested (listing, adding, removing). It is required in add, remove and modify operations and optional in list operations.−f|−−fullname fullnameThis option can be used while adding or modifing a user account. It will specify the user´s full name.Example: −f "Simo Sorce"−h|−−homedir homedirThis option can be used while adding or modifing a user account. It will specify the user´s home directory network path.Example: −h "\\\\BERSERKER\\sorce"−D|−−drive driveThis option can be used while adding or modifing a user account. It will specify the windows drive letter to be used to map the homedirectory.Example: −D "H:"−S|−−script scriptThis option can be used while adding or modifing a user account. It will specify the user´s logon script path.Example: −S "\\\\BERSERKER\\netlogon\\sorce.bat"−p|−−profile profileThis option can be used while adding or modifing a user account. It will specify the user´s profile directory.Example: −p "\\\\BERSERKER\\netlogon"−M|´−−machine SID´ SID|ridThis option can be used while adding or modifying a machine account.It will specify the machines´ new primary group SID (SecurityIdentifier) or rid.Example: −M S−1−5−21−2447931902−1787058256−3961074038−1201−U|´−−user SID´ SID|ridThis option can be used while adding or modifying a user account. It will specify the users´ new SID (Security Identifier) or rid.Example: −U S−1−5−21−2447931902−1787058256−3961074038−5004Example: ´−−user SID´ S−1−5−21−2447931902−1787058256−3961074038−5004 Example: −U 5004Example: ´−−user SID´ 5004−c|−−account−control account−controlThis option can be used while adding or modifying a user account. It will specify the users´ account control property. Possible flags are listed below.•N:No password required•D:Account disabled•H:Home directory required•T:Temporary duplicate of other account•U:Regular user account•M:MNS logon user account•W:Workstation Trust Account•S:Server Trust Account•L:Automatic Locking•X:Password does not expire•I:Domain Trust AccountExample: −c "[X ]"−K|−−kickoff−timeThis option is used to modify the kickoff time for a certain user.Use "never" as argument to set the kickoff time to unlimited.Example: pdbedit −K never user−a|−−createThis option is used to add a user into the database. This command needs a user name specified with the −u switch. When adding a new user, pdbedit will also ask for the password to be used.Example: pdbedit −a −u sorcenew password:retype new passwordNotepdbedit does not call the unix password syncronisation script if unixpassword sync has been set. It only updates the data in the Samba userdatabase.If you wish to add a user and synchronise the password thatimmediately, use smbpasswd´s−a option.−t|−−password−from−stdinThis option causes pdbedit to read the password from standard input, rather than from /dev/tty (like the passwd(1) program does). Thepassword has to be submitted twice and terminated by a newline each.−r|−−modifyThis option is used to modify an existing user in the database. This command needs a user name specified with the −u switch. Otheroptions can be specified to modify the properties of the specified user. This flag is kept for backwards compatibility, but it is no longer necessary to specify it.−m|−−machineThis option may only be used in conjunction with the−a option. It will make pdbedit to add a machine trust account instead of a user account (−u username will provide the machine name).Example: pdbedit −a −m −u w2k−wks−x|−−deleteThis option causes pdbedit to delete an account from the database.It needs a username specified with the −u switch.Example: pdbedit −x −u bob−i|−−import passdb−backendUse a different passdb backend to retrieve users than the onespecified in smb.conf. Can be used to import data into your local user database.This option will ease migration from one passdb backend to another.Example: pdbedit −i smbpasswd:/etc/smbpasswd.old−e|−−export passdb−backendExports all currently available users to the specified passworddatabase backend.This option will ease migration from one passdb backend to another and will ease backing up.Example: pdbedit −e smbpasswd:/root/samba−users.backup−g|−−groupIf you specify−g,then−i in−backend −e out−backend applies to the group mapping instead of the user database.This option will ease migration from one passdb backend to another and will ease backing up.−b|−−backend passdb−backendUse a different default passdb backend.Example: pdbedit −b xml:/root/pdb−backup.xml −l−P|−−account−policy account−policyDisplay an account policyValid policies are: minimum password age, reset count minutes,disconnect time, user must logon to change password, passwordhistory, lockout duration, min password length, maximum password age and bad lockout attempt.Example: pdbedit −P "bad lockout attempt"account policy value for bad lockout attempt is 0−C|−−value account−policy−valueSets an account policy to a specified value. This option may only be used in conjunction with the−P option.Example: pdbedit −P "bad lockout attempt" −C 3account policy value for bad lockout attempt was 0account policy value for bad lockout attempt is now 3−y|−−policiesIf you specify−y,then−i in−backend −e out−backend applies to the account policies instead of the user database.This option will allow to migrate account policies from theirdefault tdb−store into a passdb backend, e.g. an LDAP directoryserver.Example: pdbedit −y −i tdbsam: −e ldapsam:ldap://my.ldap.host−−force−initialized−passwordsThis option forces all users to change their password upon nextlogin.−N|−−account−desc descriptionThis option can be used while adding or modifing a user account. It will specify the user´s description field.Example: −N "test description"−Z|−−logon−hours−resetThis option can be used while adding or modifing a user account. It will reset the user´s allowed logon hours. A user may login at any time afterwards.Example: −Z−z|−−bad−password−count−resetThis option can be used while adding or modifing a user account. It will reset the stored bad login counter from a specified user.Example: −z−−policies−resetThis option can be used to reset the general password policiesstored for a domain to their default values.Example: −−policies−reset−I|−−domainThis option can be used while adding or modifing a user account. It will specify the user´s domain field.Example: −I "MYDOMAIN"−−time−formatThis option is currently not being used.−h|−−helpPrint a summary of command line options.−d|−−debuglevel=levellevel is an integer from 0 to 10. The default value if thisparameter is not specified is 0.The higher this value, the more detail will be logged to the logfiles about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day−to−day running − it generates a small amount ofinformation about operations carried out.Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.Note that specifying this parameter here will override thesmb.conf.5.html#parameter in the smb.conf file.−V|−−versionPrints the program version number.−s|−−configfile <configuration file>The file specified contains the configuration details required bythe server. The information in this file includes server−specificinformation such as what printcap file to use, as well asdescriptions of all the services that the server is to provide. Seesmb.conf for more information. The default configuration file nameis determined at compile time.−l|−−log−basename=logdirectoryBase directory name for log/debug files. The extension".progname"will be appended (e.g. log.smbclient, log.smbd, etc...). The logfile is never removed by the client.NOTESThis command may be used only by root.VERSIONThis man page is correct for version 3 of the Samba suite.SEE ALSOsmbpasswd(5),samba(7)AUTHORThe original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Sourceproject similar to the way the Linux kernel is developed.The pdbedit manpage was written by Simo Sorce and Jelmer Vernooij.。

相关文档
最新文档