Difference between revisions of "Software projects/OS/Slackware/Advanced usage/Samba"

From Pandora Wiki
Jump to: navigation, search
(SWAT, Samba Web Administration Tool)
(SWAT, Samba Web Administration Tool)
 
(One intermediate revision by the same user not shown)
Line 52: Line 52:
 
= SWAT, Samba Web Administration Tool =
 
= SWAT, Samba Web Administration Tool =
 
* SWAT is a browser-based configuration tool.
 
* SWAT is a browser-based configuration tool.
* It's usually started with inetd. Take a look at [http://pandorawiki.org/Software_projects/OS/Slackware/Advanced_usage/Inetd this].
+
* It's usually started by inetd. Take a look at [http://pandorawiki.org/Software_projects/OS/Slackware/Advanced_usage/Inetd this].
 
* Edit /etc/inetd.conf and uncomment
 
* Edit /etc/inetd.conf and uncomment
 
  #swat          stream  tcp    nowait.400 root /usr/sbin/swat  swat
 
  #swat          stream  tcp    nowait.400 root /usr/sbin/swat  swat
Line 62: Line 62:
 
* Or from outside:
 
* Or from outside:
 
  http://ip_of_your_OP:901
 
  http://ip_of_your_OP:901
* The login/password are root/root_password .
+
* The login/password are root/your_own_root_password .
 +
 
 +
 
 +
[[Category:Network]]
 +
[[Category:Slackware]]
 +
[[Category:Software]]

Latest revision as of 13:18, 6 May 2012

Samba

  • Samba is a file and print server compatible with many OS.
  • The configuration can be basic, and also very fine-tuned.

Configuration

  • The main configuration file is /etc/samba/smb.conf .
  • Man page:
man smb.conf
  • A basic sample:
# Global parameters
[global]
workgroup = WG
server string = Samba Server
security = SHARE
log file = /var/log/samba.%m
max log size = 50
dns proxy = No
wins support = Yes
load printers = Yes
printing = cups
printcap name = cups

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printer = HP3005
public = Yes
guest ok = Yes
printable = Yes
browseable = Yes
create mask = 0777

[print$]
comment = Printer Drivers Share
path = /var/lib/samba/drivers
write list = prof
printer admin = prof

[tmp]
comment = Share the /tmp folder
path = /tmp
read only = No
guest ok = Yes
  • The shipped sample is /etc/samba/smb.conf-sample .

SWAT, Samba Web Administration Tool

  • SWAT is a browser-based configuration tool.
  • It's usually started by inetd. Take a look at this.
  • Edit /etc/inetd.conf and uncomment
#swat           stream  tcp     nowait.400 root /usr/sbin/swat  swat

to

swat           stream  tcp     nowait.400 root /usr/sbin/swat  swat
  • Start inetd. Now you can access SWAT with a web browser.
  • From the OP:
http://127.0.0.1:901
  • Or from outside:
http://ip_of_your_OP:901
  • The login/password are root/your_own_root_password .