Post on 15-Oct-2021
transcript
1
© David Morgan 2005
quick look at quick look at webminwebmin
-- remote, webremote, web--based administrationbased administration
David Morgan
© David Morgan 2005
ExampleExample
----using using webminwebmin to drive sambato drive samba
� webmin does not drive samba
� configuration files drive samba
� webmin drives configuration files
� webmin is really a fancy editor
2
© David Morgan 2005
What is What is webminwebmin??
� a server program
� written in perl
� runs on port 10000 (default)
� graphic interface to all manner of linux config files
� point your browser to target port 10000http://<target>:10000
What does What does webminwebmin look like?look like?
3
© David Morgan 2005
What is samba?What is samba?
� an implementation of SMB file-sharing protocol
� integrates a linux machine into a Windows network’s “file and printer sharing” activity
� has a config file with defined structure
© David Morgan 2005
smb.confsmb.conf configuration fileconfiguration file
[global]
.
.
[homes]
.
.
[printers]
.
.
[custom]
.
file /etc/smb.conf or /etc/samba/smb.conf
4
© David Morgan 2005
Sample bare essentialsSample bare essentials
fileserver configuration fileserver configuration
[global]
netbios name = EMACH1
workgroup = ACME
[homes]
browseable = no
writeable = yes
[sharedstuff]
path = /home/shareme
public = yes
writeable = yes
file /etc/smb.conf or /etc/samba/smb.conf
© David Morgan 2005
Giving effect to Giving effect to smb.confsmb.conf
� restart the smb server to reread the config file
� equivalent alternatives
– /etc/rc.d/init.d/smb restart
– service smb restart
5
© David Morgan 2005
Using Using webminwebmin –– initialinitial
(empty)
smb.conf
let’s go here
© David Morgan 2005
Using Using webminwebmin –– globalsglobals
[global]
workgroup = ACME
netbios name = EMACH1
consequent
smb.conf
6
© David Morgan 2005
Using Using webminwebmin –– custom sharecustom share
let’s go here
© David Morgan 2005
Using Using webminwebmin –– custom sharecustom share
[global]
workgroup = ACME
netbios name = EMACH1
[shareme]
path = /home/shareme
consequent
smb.conf
7
© David Morgan 2005
Using Using webminwebmin –– write enablewrite enable
let’s go here
© David Morgan 2005
Using Using webminwebmin –– write enablewrite enable
let’s go here
8
© David Morgan 2005
Using Using webminwebmin –– write enablewrite enable
consequent
smb.conf
[global]
workgroup = ACME
netbios name = EMACH1
[shareme]
writeable = yes
public = yes
path = /home/shareme
© David Morgan 2005
Using Using webminwebmin –– giving effectgiving effect
go here
9
© David Morgan 2005
webminwebmin resourcesresources
� webmin homepage/download
http://www.webmin.com
� The Book of Webminhttp://www.swelltech.com/support/webminguide/
� 3rd-party add-on modules
http://webmin.thirdpartymodules.com/