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

Sibananda Sahu
Sibananda Sahu 149 posts

A Linux Kernel Developer and a Firmware Developer by profession. Have worked with few big companies: BROADCOM Corporation, Cypress Semiconductor, LSI Corporation, TOSHIBA Corporation, Western Digital; on various cutting edge technologies and product lines, such as: RAID storage Driver, SSD Firmware, WLAN Firmware etc. Having more than 9 years of experience in Software Engineering domain. Now, took a pledge to educate all aspirant students to teach about Linux Kernel Development.

View all posts by this author →

You might also like

Administration 0 Comments

How To Use Cron to Schedule a Task In Linux/Unix?

This post was last updated on August 1st, 2020 at 04:05 pmCron is a program that is used to automate a task in a Unix based operating system. It is

Networking 0 Comments

Manual NIC Setup

This post was last updated on June 3rd, 2020 at 04:16 pmManually setting up a network interface. This can come in handy if you need networking but don’t have any

Administration 0 Comments

How To Backup And Restore Files Using Tar In Linux/Unix?

This post was last updated on August 1st, 2020 at 03:09 pmA system backup is a process in which the state, files, and data of a computer system are copied

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply