#;can;be;obtained.
lpq;command;=;lpq;-P%p
#;The;print;command;by;which;unwanted;print;jobs;can;be;deleted
#;from;the;queue.
lprm;command;=;lprm;-P%p;%j
#;The;level;at;which;Samba;advertises;itself;for;browse;elections.
#;Currently;set;to;a;high;value;to;give;it;an;even;“foot-hold”;with
#;any;swarmy;NT;servers;on;the;network.;;:-)
os;level;=;34
#;These;are;user"s;personal;shares.;;If;the;client"s;username;matches;on;the
#;server,;they;can;access;their;home;directory;(provided;they;enter;the
#;correct;password).
[homes]
#;The;comments;appear;in;the;browse;list.
comment;=;Home;Directories
#;This;matches;the;username;of;the;client;to;that;of;the;share.
#;If;they;do;not;match,;no;share;will;be;displayed;in;the;browse
#;list,;or;available;to;connect;to.
user;=;%S
#;The;path;to;the;share.;;For;example,;“smithj”;would;map;to
#;“/home/smithj”
path;=;/home/%S
#;If;enabled,;allow;read/write;access;to;the;shares.
writeable;=;yes
#;Just;an;inverted;synonym;for;“writeable”.;;We;don"t;*really*;need
#;to;use;both.;;:-)
read;only;=;no
#;Keep;this;disabled;so;that;a;password;is;required;to;access;these;
#;shares.
public;=;no
#;We;don"t;want;this;share;(after;all,;it;is;private);to;appear;in
#;the;browse-list;of;other;users.
browseable;=;no
#;This;is;a;publicly;available;print;share,;called;“hp_laser”.;;It;appears
#;on;the;browse;lists;and;can;be;accessed;without;a;password;by;any;client.
[hp_laser]
#;The;comment;that;appears;in;the;browse-list.
comment;=;Main;office;printer;(HP;Laserjet;400)
#;The;username;that;this;share;is;accessed;as;(guest;means;all;users).
user;=;guest
#;All;generated;print;files;will;first;be;created;in;the;/tmp
#;directory.
path;=;/tmp
#;Do;not;allow;file;creation;except;through;print;spooling.
writeable;=;no
#;Set;permissions;accordingly;--;root;access;to;print;jobs;only.
create;mode;=;0700
#;If;this;is;enabled;a;password;is;not;required;to;access;the;share.
public;=;yes
#;This;should;be;enabled;to;indicate;that;this;is;a;printer;share.
printable;=;yes
#;Here;is;a;service;providing;access;to;the;CD-ROM;device.
[cdrom]
comment;=;Shared;CD-ROM;drive;on;Linux
user;=;guest
path;=;/cdrom
writeable;=;no
read;only;=;true
browseable;=;yes
public;=;yes
guest;ok;=;yes
小技巧:;最近的;Samba;版本,;從;2.0;以後,提供了一個非常靈活以網(wǎng)頁為基礎(chǔ)的組態(tài)公用程式叫做``swat"",
可以使得組態(tài)過程更為友善 。這個公用程式傾聽伺服器上的;TCP;port;901;,所以要使用的話必須將您的瀏覽器
指向下面的位址:;
mydomain.name:901
(當(dāng)然如果要使用;SWAT;的話您需要讓網(wǎng)頁伺服器執(zhí)行,像是;Apache 。;查看;第7章,網(wǎng)頁伺服器及;HTTP;快取代理
主機(jī)管理;一節(jié);有關(guān)細(xì)節(jié) 。);
最新版的;Samba;和;2.0;版之前的相比增加了很多功能 。;升級到這個版本是值得的 。;
客戶端必須有;TCP/IP;network;stack;以連接分享 。更進(jìn)一步,為了瀏覽工作,TCP/IP;協(xié)定必須;bound;到
NETBEUI 。在;Windows;95;可以由控制臺中的``網(wǎng)路""進(jìn)行組態(tài) 。;
假設(shè)客端已經(jīng)正常地組態(tài)好,;您應(yīng)該可以看到伺服端的分享出現(xiàn)在“網(wǎng)路上的芳鄰”;(或如果您不是使用
Windows;95/NT的相等的方案) 。您可以從網(wǎng)路上的芳鄰對映到網(wǎng)路磁碟,或鍵入到分享的絕對路徑
(例如.;“mailcdrom”) 。;如果分享服務(wù)需要鍵入密碼,您會被提示 。;
更多有關(guān);Samba的資料可以在;Samba;Home;Page;http://samba.anu.edu.au/samba/中找到 。
推薦閱讀
- Linux 網(wǎng)管 123 --- 第7章. 自訂的組態(tài)及管理內(nèi)容 -5.使用 Netata
- Linux 網(wǎng)管 123 --- 第7章. 自訂的組態(tài)及管理內(nèi)容 -6.NFS
- Linux 網(wǎng)管 123 --- 第7章. 自訂的組態(tài)及管理內(nèi)容 -7.使用 Linuxc
- Linux 網(wǎng)管 123 --- 第8章. 備份及回存程序 -1.伺服器備份程序
- Linux 網(wǎng)管 123 --- 第8章. 備份及回存程序 -3.Cisco 路由器組態(tài)備
- Linux 網(wǎng)管 123 --- 第9章. 各種雜項管理工作 -1.檢查儲存空間
- Linux 網(wǎng)管 123 --- 第9章. 各種雜項管理工作 -2.管理進(jìn)程
- Linux 網(wǎng)管 123 --- 第9章. 各種雜項管理工作 -4.使用 Cron 及 C
- Linux 網(wǎng)管 123 --- 第10章. 升級 Linux 及其他應(yīng)用軟體 -1.使用
- Linux 網(wǎng)管 123 --- 1. 前言 2. 簡介
