Samba Server Step by Step
Samba Server Step by Step
1. In t r o d u c t i o n 1.1 What Samba i s ? 1.2 What Samba can do? 1.3 Dif f e r e n t componen t s of Samba se r v e r su i t . 1.3.1 Samba se r v e r s cor e componen t s - smbd & nmbd . 1.3.2 Samba se r v e r conf i g u r a t i o n f i l e (smb.conf). 1.3.3 Ut i l i t i e s fo r samba se r v e r . 1.4 Conf i g u r i n g Samba se r v e r us i ng - swa t 1.4.1 What i s swa t ? 1.4.2 How to s t a r t swat se r v i c e s ? 1.4.3 Conf i gu r i n g Samba se r v e r s GLOBALS sec t i o n (smb.conf) 1.4.4 Cra t i n g Samba Password da t a b a s e 1.4.4.1 How to add new use r to Samba pas sword da t ab a s e ? 1.4.5 Cra t i n g sha r ed re cou r s e 1.4.5.1 Shar i n g Serve r s CDROM Drive 1.4.6 Sta r t i n g smbd & nmbd demons 1.4.7 Samba se r v e r in Act i on 1.5 Shar i n g Pr i n t e r s 1.5.1 Pr i n t e r i s connec t e d to Anothe r Windows Sys t em 1.5.2 Pr i n t e r i s connec t e d to Linux Serve r i t s e l f 1.6 Resou r c e s
1 In t r o duc t i o n
Most of th e ne twork s bas i c use i s f i l e s & pr i n t e r sha r i n g. Gener a l l y in windows ne twork i n g we have MS-DOS, MS-Windows 95/98 as c l i e n t s machine and Windows NT as se r v e r , toge t h e r they fo rms Microso f t windows NT ne twork.
Fig.1 : Microso f t
But when we would l i k e to use Linux as se r v e r and windows 95/98 as c l i e n t s us i ng Micro so f t windows NT l i k e ne twor k we need to use spec i a l prog r am to emula t e Windows NT on top of Linux se r v e r , th i s can be done us i ng Samba. Thi s i s requ i r e d becaus e windows and Linux can not exchange the da t a di r e c t l y . In th e most of th e ne twork env i r o nmen t we use di f f e r e n t oper a t i n g sys t em fo r ver i t y of works and most of us need to sha r e our f i l e and pr i n t e r s f r om di f f e r e n t works t a t i o n s l i k e MAC, Linux, Micro so f t Windows 9x/Me/XP/NT/DOS, OS/2, Novel e t c. Thi s par t of documen t shows you how to con f i g u r e samba se r v e r us i n g swat - web admin i s t r a t i o n too l fo r Micros o f t Windows 9x/XP/NT Os.
You can sha r e f i l e s & fo l d e r s be tween Linux and re s t of windows c l i e n t s inc l u d i n g windows NT Serve r/Works t a t i o n . Shar i n g of Pr i n t e r s a t t a c h e d to Linux se r v e r or any of the windows c l i e n t compute r . Authen t i c a t i o n (l i k e Windows NT Domain se r v e r ) fo r windows c l i e n t s .
div i d e d in t o di f f e r e n t
prog r ams l i k e
Core componen t s of samba (smbd & nmbd). Samba conf i g u r a t i o n f i l e (smb.conf). Uti l i t i e s fo r samba se r v e r .
Documenta t i o n fo r samba.
Fi l e s & fo l d e r sha r i n g
I f you eve r used windows l i k e ne twork th en you ar e fami l i a r with Network Neighborhood which i s used to see a l l compute r connec t e d to your ne two rk. nmbd daemon i s used to show Linux se r v e r (Samba Serve r) in t o your Network Neighborhood ' s browse r l i s t . I t s a l s o know as NetBIOS namese r v e r which prov i d e s naming se r v i c e s to i t s c l i e n t comput e r . Withou t th i s you can ' t see Samba se r v e r in t o Network Neighborhood . TIP: You can s t a r t / s t op above daemon f r om /et c/r c.d/ in i t . d/ smb sc r i p t . For e.g. To s t a r t the samba daemon type th e command / e t c/r c.d/ in i t . d/ smb s t a r t on your t e rm i n a l .
1.3.3 Ut i l i t i e s
fo r samba se r v e r
Thi s i s th e se t of ut i l i t i e s which can be used to browse windows sha r e f r om Linux or to di agno s e Samba conf i g u r a t i o n er r o r s . Fol l ow i ng are some of the ut i l i t i e s :
smbpas swd - Use to manage samba se r v e r s pas sword. t e s t p a rm - Use to t e s t smb.conf con f i g u r a t i o n f i l e . I t check s the par ame t e r s in smb.con f f i l e . t e s t p r n s - Use to t e s t pr i n t e r con f i g u r a t i o n . smbcl i e n t - To open windows sha r e f r om Linux se r v e r i.e. SMB cl i en t. smbta r - I t s prog r am to backup the f i l e s f r om any windows cl i en t.
Above commands can be exp l a i n e d as fo l l ow s: Commands Use for Become roo t (admins t r a t o r ) so tha t re s t of su -l in s t a l l a t i o n conf i g u r a t i o n can be done. Mount the cdrom so th a t we can in s t a l l th e mount /mnt/cd r om swat cd / cur r t mnt/cd r om/RedHat/RP Change RPMS e n r e cwork i ng di r e c t o r y to Red Hat ' s di to ry MS rpm -ivh samba- swa t- Using rpm too l we can in s t a l l the swa t 2.2.3a- 6.i386.rpm cd;umount / Unmount the CDROM and e j e c t th e cd. mnt/cd r om;e j e c t
Linux 7.3 th i s se r v i c e i s tu r n of f fo r secu r i t y re a s on s, you need to s t a r t th i s se r v i c e befo r e us i ng swat f r om any web browse r.
Look fo r the en t r y ca l l e d di s ab l e yes to no . I f you want to run th e (us i n g browse r) then se t (put) the f r on t of on ly_ f r om a t t r i b u t e . For se r v i c e s f r om Windows 98 machine then your en t r y shou l d look l i k e 127.0.0.1
and change i t s va l u e f r om swa t se r v i c e s f r om remot e l y IP addr e s s of your machine in e.g. i f you want to use swat hav i ng IP add r e s s 192.168.1.2 on ly_ f r om = 192.168.1.2
Save the above f i l e and re s t a r t th e xine t d daemon and s t a r t the ht t p d daemon (i f i t s not runn i n g) as fo l l ow s:
[root@ns1 xinetd.d]# /etc/rc.d/init.d/xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ] [root@ns1 xinetd.d]# /etc/rc.d/init.d/httpd start Starting httpd: [ OK ]
your s e l f
Fig.3: swa t - Home Page and Admini s t r a t i o n Opt i on s (Top of the Page) Aft e r succe s s f u l l y open i ng the swa t home page, you can con t r o l most of th e samba se r v e r us i ng th e opt i o n loc a t e d top of th e home page (Home, Globa l s e t c) 9
Thi s Icon/But t o n wi l l l e t you open swa t home page. Use to se t globa l s sec t i o n of smb.con f. Use to def i n e sha r e s fo r se r v e r l i k e CDROM dr i v e connec t e d to se r v e r or norma l di r e c t o r y on se r v e r . Use th i s opt i o n fo r pr i n t e r sha r i n g. I t shows Serve r Sta t u s l i k e who i s connec t e d to samba se r v e r , f i l e opened by use r s e t c. Also you can s t a r t and s t op samba se r v e r f r om th i s opt i o n. I t l e t s vi ew you the smb.conf f i l e . Use th i s opt i o n fo r Samba pas sword managemen t (Like new use r add i t i o n , pas swo rd change e t c).
smb.conf f i l e div i d e d in t o seve r a l sec t i o n, minimum you have to conf i g u r e GLOBALS Sec t i o n and th en re s t of th e sha r e s l i k e HOME (User s home di r e c t o r y ), re sou r c e s sha r i n g l i k e CDROM, Fold e r s e t c.
10
workg roup
ne t b i o s name
se r v e r s t r i n g
hos t s al l ow
Try to se t same workg roup name fo r OFFICE al l c l i e n t s , so tha t th i s name can be used in query. Name of Serve r (Thi s LinuxSe r v e r name i s shown in Network Neighborhood ) Thi s s t r i n g appea r in browse l i s t s nex t Samba Pr i n t & Fi l e to the machine name Serve r in ne two rk Neighbo r hood. For Windows 98 and above NT 4 wi th Yes Serv i c e Pack 3 or above requ i r e s th i s se t to be t r u e. Use to spec i f i e s which hos t s/ c ompu t e r s ar e permi t t e d to acce s s a Samba Serve r s se r v i c e s i.e. sha r e d re sou r c e s . We want to re s t r i c t th e acce s s to Loca l Network (In t e r n a l 192.168.1.0/255.255.255 LAN) and no t to the .0 ex t e r n a l Network (In t e r n e t ). Ple a s e not tha t her e we are us i ng 192.168.1.0 C Clas s Network range. I f you ar e us i ng A or B Clas s make the approp r i a t e change s her e.
11
12
Make su r e secu r i t y (Authen t i c a t i o n ) method i s USER l ev e l . Fina l l y c l i c k on "Commit Change s " But t o n to f i n i s h the bas i c conf i g u r a t i o n of GLOBALS sec t i o n of smb.con f (Samba se r v e r )
13
To add the admin use r t o samba pas sword da t a b a s e: (admin use r accoun t i s a l r e a d y pre s e n t Linux se r v e r so no need to add admin use r)
Cl i ck on "PASSWORD Icon. " Type User Name: admin Type the new use r pas sword (aga i n re t y p e the same pas sword) Cl i ck on "Add New User " but t o n to add admin use r to pas sword dat a b a s e f i l e .
Fig.6: swa t - Pas sword Opt i o n Page Remember th i s admin use r pas sword cab be di f f e r e n t (norma l l y i t shou l d be di f f e r e n t fo r secu r i t y rea s o n s) f r om the our norma l sys t em ' s admin accoun t. Add the re s t of the use r s of your ne twork by above ment i on ed method. Method Second: Second method invo l v e s the cr e a t i o n of use r s accoun t on Linux se r v e r f i r s t , and then add i t to samba pas sword da t a b a s e. You can cr e a t e new use r us i n g redha t- conf i g- user s use r managemen t 14
too l (You can run th i s too l f r om KDE - GUI Desk t op by c l i c k i n g on kon t r o l - pane l > User Manager) or use command l i n e prog r am use r a d d. (For e.g. # useradd ran i ). Then add the use r to pas sword da t ab a s e us i ng swat as ment i o n e d above or use "smbpasswd -a " sambas ut i l i t y as shown be l ow. To add new use r l e t s say ra ju f r om she l l prompt i t se l f and not us i n g swat then use fo l l ow i ng two command:
# useradd raju # smbpasswd -a raju New SMB password: rajus password Retype new SMB password: rajus password Added user raju. Password changed for user raju.
Above commands can be exp l a i n e d as fo l l ow s: Commands Use for Add new use r ra j u to Linux Password da t a b a s e useradd raju fi l e. Add the use r ra j u to Samba pas swor d da t a b a s e smbpasswd -a raju f i l e (ind i c a t e d by -a opt i o n) and se t th e new pas sword.
15
Fig.7: swa t - How to add new sha r e (How to sha r e fo l d e r ) (g) Open your t e rm i n a l window and type fo l l ow i n g two commands a t she l l prompt: # mkdir /home/publ i c # chmod 0777 /home/pub l i c # chmod o+t /home/publ i c Above commands can be exp l a i n e d as fo l l ow s: Commands Use for Crea t e di r e c t o r y /home/publ i c so tha t a l l of mkdir /home/public use r put the sha r e d f i l e s in th i s fo l d e r s
chmod 0777 / home/public
Make th e di r e c t o r y wor ld re ad ab l e. Set th e s t i c k y bi t on pub l i c l y sha r e d fo l d e r so tha t th e owner of the f i l e can del e t e the f i l e . Gener a l l y i f a use r has wri t e permi s s i o n to a di r e c t o r y then use r can de l e t e any f i l e f r om the di r e c t o r y. Note th a t se t s t i c k y bi t on ly fo r pub l i c l y sha r e d fo l d e r s .
16
Note tha t you can mount the CDROM dr i v e as use r c l i c k s on th i s sha r e f r om any windows c l i e n t . Thi s wil l hel p use r s , becau s e withou t mount i n g CDROM you can ' t use i t and eve ry t ime roo t use r might be not ava i l a b l e . (a) Cl i c k on "Advance vi ew " but t o n fo r CDROM sha r e, then sc r o l l down to Misce l l a n e ou s Opt ion s (b) Set roo t preexe c to mount /mnt/cdrom (c) Set roo t pos t e x e c to umount /mnt/cdrom (d) Cl i c k on "Commit Changes " But t on.
samba se r v e r .
Cick on "STATUS" opt i o n. Cl i ck on Star t smbd and Star t nmbd but t o n to s t a r t daemons. samba
17
th e samba se r v e r by runn i n g
Fig.10: Network Neighbo r hood af t e r se t t i n g Samba showing Wks (windows 98) & LinuxSe r v e r
18
sha r e d
1.5 Shar i ng Pr in t e r
Pr i n t e r sha r i n g i s ano t h e r impor t a n t fea t u r e of any ne twork. You can sha r e pr i n t e r connec t e d to Linux se r v e r or pr i n t e r connec t e d to windows comput e r wi th Linux. Next par t of the tu t o r i a l wi l l show you how to ach i e v e th i s . You can sha r e th e pr i n t e r two ways:
19
1) Your pr i n t e r i s connec t e d to ano t h e r Windows Machine - you can sha r e th i s us i n g samba and want to pr i n t f r om Linux i t s e l f . 2) Your pr i n t e r i s connec t e d to Linux Serve r i t s e l f windows c l i e n t s want s to use i t . and a l l
Red Hat Linux 7.3 prov i d e s th e graph i c a l X windows too l pr i n t c o n f ut i l i t y . Thi s ut i l i t y wri t e s i t s con f i g u r a t i o n to / e t c/p r i n t c a p f i l e and manages the f i l t e r s and spoo l i n g fo r your pr i n t e r .
pr in t c on f too l cab be s t a r t
as fo l l ow s:
From KDE Desk t op > Cl i c k on Cont r o l - pane l > Cl i c k on Pr i n t e r Conf i g u r a t i o n , which wi l l open windows as shown in Fig. 21 . Once you s t a r t e d to add the pr i n t e r i t wil l give you cho i c e s how the sys t em wi l l communica t e wi th th e pr i n t e r (as shown in Fig.17 )
Queue Type Loca l Pr i n t e r (LOCAL) Use for
Thi s kind of pr i n t e r at t a c h e d to ano t h e r remot e Unix/Linux compute r sys t em and can be acce s s ove r TCP/IP ne twor k. Windows Thi s kind of pr i n t e r at t a c h e d sys t em which work Pr i n t e r (SMB) on SMB ne twork (l i k e Microso f t Windows) Novel l Pr i n t e r (NCP) Thi s kind of pr i n t e r at t a c h e d Nove l l Network Je tD i r e c t Thi s kind of pr i n t e r di r e c t l y connec t e d to Pr i n t e r ne two rk i.e. Network pr i n t e r , th i s kind of pr i n t e r (JETDIRECT) have ded i c a t e d IP addr e s s . Unix Pr i n t e r (LPD) Aft e r se l e c t i n g the Queue type you need to spec i f y the pr i n t e r dr i v e r .
20
In my ne twork I use EPSON 670 Colo r Pr i n t e r which i s connec t e d to Windows ME based Sys t em. I as sume tha t pr i n t e r dr i v e r s ar e in s t a l l e d . Fi r s t s t e p i s to sha r e the pr i n t e r as fo l l ows on Windows ME based sys t em: Sta r t Windows based sys t em and log i n to i t . Then 1) Goto Sta r t > Se t t i n g s > Pr i n t e r s
Fig.12: Shar i n g Windows Pr i n t e r 2) Sel e c t the pr i n t e r Shar i n g (EPSON 670) > Righ t Cl i c k i t > Sel e c t
21
Fig.13: Shar i n g Pr i n t e r
in Windows
3) In the Pr i n t e r Prope r t i e s di a l o g box Cl i c k on > Sha r ed As rad i o but t o n > Ent e r Shar e Name "EPSON" > Set Comment as "Epson 670 Pr i n t e r " > I f you want th e pas sword pro t e c t e d pr i n t e r then Give Password > Cl i c k on "OK but t o n. "
22
Fig.14: Pr i n t e r
sha r e d as EPSON
Cl i ck on "Ok" But t on. Now your pr i n t e r connec t e d to windows machine i s sha r e d and ava i l a b l e to othe r windows machin e as wel l as fo r Linux machin e us i n g samba c l i e n t . You can now use any windows machine to connec t th e pr i n t e r , download the dr i v e r f r om tha t machine and pr i n t i t . Even you can use Linux Serve r or Works t a t i o n to pr i n t on th i s remo t e windows pr i n t e r . For th i s purpos e you need to use Samba i.e. Sambas Cl i e n t prog r am to connec t to th i s pr i n t e r and pr i n t i t . But befo r e tha t you need to add th i s pr i n t e r to your Linux works t a t i o n s or se r v e r as fo l l ows: 1) Login to Linux se r v e r . Sta r t th e X Windows (KDE) and th en Open Cont r o l - pane l > Cl i ck on Pr i n t e r Conf i g u r a t i o n , which wi l l open windows as fo l l ows:
23
Fig.15: pr i n t c o n f Ut i l i t i e s
24
wi th wiza r d s
3) Set th e queue name to WIN_EPSON > Se l e c t Queue type as Windows Pr in t e r > Cl i c k on Next but t o n to con t i n u e.
25
Fig.17: Pr i n t e r
(SMB)
4) Set th e opt i o n s as fo l l ow s:
Opt ion Se t to Value/At t r i b u t e Remark
Shar e Host IP
Spec i f y the Windows Pr i n t e r Shar e name as \ \ c ompu t e r n ame \ s h a r e - name IP Addre s s of machine where pr i n t e r i s connec t e d. Workgroup name Set th e use r n ame, in our case we have no t any use r n ame whi l e sha r i n g pr i n t e r . Set th e pas sword, in our case we have no t any use r n ame whi l e sha r i n g pr i n t e r .
26
Fig.18: Conf i gu r i n g remot e windows pr i n t e r 5) Sel e c t the pr i n t e r dr i v e r as Pos t s c r i p t on Next but t o n to con t i n u e. Pr i n t e r and Cl i c k
27
Fig.19: Se l e c t i n g pr i n t dr i v e r fo r remot e pr i n t e r .
Caut i on: Don' t se l e c t fo l l ow s: Prin t e r Driv e r
her e pr i n t e r
dr i v e r , in s t a t e d se l e c t
as
Why
Example
Se l e c t th i s i f you have co lo r DeskJ e t , Pos t s c r i p t pr i n t e r . Se l e c t th i s i f remot e pr i n t e r on ly suppo r t s t ex t l i k e Dot Matr i x pr i n t e r Se l e c t th i s fo r ne twork pr i n t e r or i f bot h of above don ' t works.
Most l y a l l DeskJe t , Pos t s c r i p t Pr i n t e r s l i k e EPSON 670 or HP DJ-840 Dot Matr i x Pr i n t e r l i k e EPSON or TVSE or WIPRO Network pr i n t e r you do as fo l l ows:
28
And not as fo l l ow s: (which i s not cor r e c t ) Your- Document/ Image -> Loca l Prin t e r Drive r -> Remote Pr i n t e r Driv e r > Remote Pr i n t e r So wheneve r you pr i n t on any of the remot e pr i n t e r NPC e t c) use th e above th r e e as pr i n t e r dr i v e r . (SMB, LPD,
conf i g u r a t i o n the
Now save your change s as: Fi l e > Save Changes and re s t a r t lpd so tha t new pr i n t e r can be used. Use lp r command to pr i n t f r om Linux se r v e r to smb pr i n t e r . # lp r memo1.tx t
29
In cas e you have more pr i n t e r then you can run fo l l ow i ng command: (remember th i s pr i n t e r queue name i s win_epson, See the Fig.17 ) # lp r -Pwin_epson memo1.tx t To see s t a t u s of def au l t # lpq To see s t a t u s of a l l pr i n t e r # lpq -a To remove a l l pr i n t job f r om queue (i.e. s t op pr i n t i n g) give command: # lp rm -a To remove job no. 15 f r om pr i n t e r # lp rm -Pwin_epson 15 win_epson give command: give command: pr i n t e r give command:
30
Fig.22: Cl i c k on New bu t t o n
31
Fig.23: Sta r i n g Wizard to add the new pr i n t e r Type the Queue name as "EPSON and se l e c t pr i n t e r queue type as " "Loca l Prin t e r (LOCAL)" and cl i c k on "Next " bu t t o n.
32
Fig.24: Set Queue name & typ e pr i n t c o n f wil l t r y to de t e c t your pr i n t e r au toma t i c a l l y , i f i t s det e c t e d i t wi l l show th e fo l l ow i n g window > Cl i ck Next to con t i n u e.
33
Fig.25:
Pr i n t e r
i s au toma t i c a l l y
de t e c t e d by pr i n t c o n f
pr i n t c o n f wil l a l s o se l e c t s dr i v e r fo r you, i f i t ' s not cor r e c t se l e c t th e one acco r d i n g to your pr i n t e r > Cl i ck Next but t o n to con t i n u e.
34
Fig.26: In s t a l l i n g Pr i n t e r
dr i v e r
35
Fig.27:
Note: I f your pr i n t e r cus t om dev i c e.
Now c l i c k on Fi l e > Save Changes. I f you di r e c t l y give command Fi l e > Qui t, Fol l ow i ng di a l o g box wi l l appea r on sc r e e n: (Cl i ck on "Yes " bu t t o n to save change s)
Fig.28: Sel e c t yes to save changes Fina l l y you wi l l ge t fo l l ow i n g sc r e e n i.e. lpd re s t a r t succe ed ed. 36
i s ready to use.
Aft e r se t t i n g the pr i n t e r wi th Linux, ju s t re s t a r t th e smb by runn i n g fo l l ow i ng command, th i s ensu r e s tha t Linux pr i n t e r ge t s re ady fo r samba. # /et c/ r c.d/ i n i t . d/ smb re s t a r t Once re s t a r t e d now you can browse th e pr i n t e r Neighbo r hood as shown in fo l l ow i ng f i gu r e : in Network
Fig.30: New pr i n t e r
But befo r e us i ng th i s pr i n t e r f r om any windows based ne twork you need to connec t th i s pr i n t e r (ins t a l l the dr i v e r - c l i e n t s i d e) as fo l l ows: Open Network Neighbo rhood f r om window machine: Righ t Cl i ck on pr i n t e r menu. (Epson) > Cl i c k on "Open " or "Connec t "
37
Fig.31: In s t a l l i n g Cl i e n t Side Drive r Thi s wil l s t a r t con t i n u e. Add Pr i n t e r Wizard > Cl i c k on "Next " bu t t o n to
Fig.32: Wizard s t a r t s
to in s t a l l
the pr i n t e r
Sel e c t "Network Pr in t e r " so tha t we can pr i n t on pr i n t e r connec t e d to Linux Serve r > Cl i c k on "Next " bu t t o n to con t i n u e.
38
Fig.33: You l i k e to se t Network pr i n t e r Cl i ck on "Browse " bu t t o n to give Linux se r v e r Queue or you can type as \ \ L i n u x s e r v e r - name\queu e name.
Fig.34: Spec i f y the Network pa t h of pr i n t e r Cl i ck on Workgroup name (in our case i t s OFFICE) > Then Cl i c k on Linux se r v e r > And f i n a l l y on sha r e d pr i n t e r name > Fina l l y c l i c k on "OK but t o n. "
39
us i ng browse
Fig.37: Network pa t h i s given At th i s s t a g e Wizard wi l l ask the dr i v e r fo r Windows EPSON 670 (Cl i e n t s i d e) you need to give th i s dr i v e r f r om Floppy/CD or i f i t s s t o r e d somewhere in the hard dr i v e. Cl i c k on "Have Disk... " but t o n.
40
Fig.38: In s t a l l i n g the dr i v e r fo r windows Sel e c t th e approp r i a t e pl a c e and type th e pa th in box. (where your pr i n t e r s dr i v e r ar e s t o r e d)
Fig.39: Spec i f y i n g the lo c a t i o n of dr i v e r Wizard wi l l au toma t i c a l l y de t e c t and shows you pr i n t e r ju s t cl i c k on "Next " bu t t o n to con t i n u e. name,
41
dr i v e r ( s)
42
Fig.42: Windows copy i ng th e f i l e s And f i n a l l y shows the di a l o g, conf i rm s tha t se t u p i s comple t e d succe s s f u l l y .
Fig.43: Now you can pr i n t f r om any app l i c a t i o n to th i s smb pr i n t e r . Aft e r above con f i g u r a t i o n you want to s t a r t the Samba se r v e r au t oma t i c a l l y wi th each and eve ry t ime sys t em ge t s reboo t s , run the fo l l ow i ng command fo r th i s purpo s e. # chkcon f i g --l ev e l 35 smb on
1.6 Resourc e s
(1) (a) (b) (c) (d) (e) Man man man man man man Pages: smb.conf : Al l the conf i g u r a t i o n opt i o n s fo r samba. lpq: Al l th e opt i o n s re l a t e d to lpq command. lp rm: Al l th e opt i o n s re l a t e d to lp rm command. lpd: In f o rma t i o n on l i n e pr i n t e r daemon. lpc: Line Pr i n t e r con t r o l prog r am man page.
43
Book - Using Samba - wri t t e n by Rober t Ecks t e i n , David Col l i e r - Brown and Pet e r Kel l y Samba HOWTO Col l e c t i o n Othe r ut i l i t i e s in f o rma t i o n.
44