Ded Serius

 

Ded Serius - Quick and Dirty Samba Ded Serius
Michel Verdier

Create Your Badge
 
 
 
 

Y2KMatrix

 
 

Today's Fortune

 
 

Halloween Document

 
 

RedHat 7.1 MILO Alpha

 
 

Archive AWT Java Tutorial

 
 

Apache/FrontPage/PHP
Linux Instructions

 
 

Quick n Dirty Samba

 
 

HTML 3.2 Tutorial

 
 

KDE Screenshots
(UNIX Desktops)

 
 

Slackware

 
 

Resume

 
 

Music

 
 
 
 

Table of Contents

Quick and Dirty Samba

  1. Install Samba and Swat
  2. Configure for the Workgroup
  3. Add user
  4. Create a backup of some files on one system to another via samba 
  5. Uninstall Samba and Swat

Install Samba and Swat

Winslow was loaded with a custom RedHat 7.2 using the bootnet.img boot disk and selecting the following options:

  1. Get samba here:  
  2. [vanboers@winslow RPMS]$ ncftp ftp.redhat.com
    ncftp / > bin
    ncftp / > cd pub/redhat/redhat-7.2-en/os/i386/RedHat/RPMS
    ncftp ...en/os/i386/RedHat/RPMS > bin
    ncftp ...en/os/i386/RedHat/RPMS > mget samba*
    samba-2.2.1a-4.i386.rpm samba-client-2.2.1a-4.i386.rpm samba-common-2.2.1a-4.i386.rpm samba-swat-2.2.1a-4.i386.rpm
  3. Install Samba
  4. [root@winslow tmp]# rpm -ivh samba-*
    Preparing... ########################################### [100%]
    1:samba-common ########################################### [ 25%]
    2:samba ########################################### [ 50%]
    3:samba-client ########################################### [ 75%]
    4:samba-swat ########################################### [100%]
  5. Enable Swat
  6. [root@winslow xinetd.d]# cat /etc/xinetd.d/swat | sed '/disable = yes/s//disable = no/g' > /tmp/tmp.txt && mv /tmp/tmp.txt /etc/xinetd.d/swat
    mv: overwrite `/etc/xinetd.d/swat'? y
    *Note:  The space between 'disable' and '=' is 2 tab characters
  7. [root@winslow xinetd.d]# /etc/init.d/xinetd restart
Back to Top

Configure for the Workgroup

This assumes you've installed XWindows on the machine you are configuring for Samba and have installed a web browser such as Netscape 4.7x:

  1. Navigate to the following URL:  http://localhost:901/globals
  2. Fill in the WORKGROUP name with the name of the workgroup the Samba server is joining
  3. Put a useful NETBIOS name (can be different from the hostname of the Linux box)
  4. Click Commit Changes
  5. Navigate to the following URL:  http://localhost:901/status
  6. Click restart smbd
  7. Click restart nmbd
Back to Top

Add a User

  1. Navigate to the following URL:  http://localhost:901/passwd
  2. In the Server Password Management section type in the username of the user you wish to add and key in the masked password value in the 2 boxes below it.
Samba should now be visible and accessible to the user(s) you created above in step 9.  You might want to open Network Neighborhood on a Windows client and see if you can see the Samba server and manipulate files in its share.   
Back to Top

Create a backup of some files on one system to another via samba

Need to determine what files are involved and src/dest for backups.  I.e. it would be nice to have NT machine with a tape drive attached for the destination...

Back to Top

Uninstall Samba and Swat

It's not a good idea to have Swat running on a production server.

  1. [root@winslow xinetd.d]# cat /etc/xinetd.d/swat | sed '/disable = no/s//disable = yes/g' > /tmp/tmp.txt && mv /tmp/tmp.txt /etc/xinetd.d/swat
    mv: overwrite `/etc/xinetd.d/swat'? y
    *Note:  The space between 'disable' and '=' is 2 tab characters
  2. [root@winslow samba]# /etc/init.d/xinetd restart
  3. [root@winslow samba]# rpm -e samba-swat-2.2.1a-4
    warning: /etc/xinetd.d/swat saved as /etc/xinetd.d/swat.rpmsave
Back to Top

411 hits since January 15, 2017.

Mail me, with your comments.
I updated this page on Sunday January 15, 2017 7:55:04 PM Van

If you just came here for the MIDIs:

Taxi SourceForge Logo
Apache 1.3b6

Powered by MySQL 3.21.33
Privacy Statement

Mail comments to Van
Slackware Linux 8.x

Powered by PHP3
©Copyright 2017 Ded Serius Music

Tailored after the Layout of PHP3.NET