SAMBA in Linux – Administration Checklist
 

SAMBA in Linux – Administration Checklist

 

This post was last updated on May 27th, 2020 at 05:04 pm

Samba startup guide checklist:


This applies to a lot of Linux versions, notes for this page was gathered from RH70.

install Linux
install smaba
check your hostname:
hostname.html

If the system host name is not set correctly then Samba and any number
of other programs will have problems.

Check your smb.conf file for the following:

  • Set your workgroup
  • set your descriptor string
  • Turn on encryption and point to a smbpassword file (uncomment those 2 lines).
  • shares are set up at the end of the smb.conf file. at the end
    you’ll find a lot of samples, just take one section, copy it, and make
    modifications to it.

Set up your users by 1st adding them to linux (useradd / passwd)
Set up your users by then adding them to samba (smbadduser / smbpasswd)
Check the run levels you want samba to run in (usually 2,3,4, and 5)
– Use ntsysv or use chkconfig to set the runlevels:

     chkconfig --list smb
     chkconfig --level 2345 smb on

See if samba is running: “ps ax | grep mbd”, you should see smbd
and nmbd running; if not, then they are not running.

     start samba /etc/rc.d/init.d/smb start

Now the “ps -ax | grep mbd” should show both smbd and nmbd running.

Getting SWAT to work in RH70


If running RH70 you should get the updates from www.redhat.com on
thir RH70 Post instal gotcha’s page: http://www.redhat.com/support/docs/gotchas/7.0/gotchas-7-6.html#ss6.3
Here are two items to get swat running (Samba Web Administration Tool):
edit /etc/xinetd.d/swat and change 2 lines.
The one line that says localhost, change it to 127.0.0.1
The line that says disabled=yes, change it value to no.
Restart xinetd

     /etc/rc.d/init.d/xinetd restart


prev next index


Previous Linux Loop Devices
Next How to create and use a patch in Linux
 

About author

shibaa987
shibaa987 275 posts

Linux kernel developer and a firmware developer with an experience of 10+ years.

View all posts by this author →

You might also like

Linux OS 0 Comments

Here we will walk through setting up a new server and explain what is going on along the way

This post was last updated on October 15th, 2020 at 01:51 amThe goals of this document will be to set up date and time, hostname, dhcp server, dns server (with

System Admin 2 Comments

How To Install And Use Docker In Ubuntu/Linux Mint?

This post was last updated on August 1st, 2020 at 04:58 pmUnlike the Virtual Machine in Linux which uses all the resources of the host machine, Docker is a platform

System Admin 0 Comments

How to Make a Bootable USB

This post was last updated on October 15th, 2020 at 12:29 amIt seems that the 1.4MB floppy images are disappearing, so let’s make a boot image for usb from the

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply