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

From Pandora Wiki
Jump to: navigation, search
(Created page with "= 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...")
 
(SWAT, Samba Web Administration Tool)
Line 57: Line 57:
 
to
 
to
 
  swat          stream  tcp    nowait.400 root /usr/sbin/swat  swat
 
  swat          stream  tcp    nowait.400 root /usr/sbin/swat  swat
* Start inetd. Now you can access SWAT with a web browser.  
+
* [http://pandorawiki.org/Software_projects/OS/Slackware/Advanced_usage/Inetd Start inetd]. Now you can access SWAT with a web browser.  
 
* From the OP:
 
* From the OP:
 
  http://127.0.0.1:901
 
  http://127.0.0.1:901

Revision as of 18:15, 17 April 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 with 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/root_password .