General discussion

Locked

configuring samba

By cwphang ·
How can i configure the samba server? is it just type:
vi smb.conf
to load into the file and configure it?
Then if i finished, how can i save it, i mean what command should i type to save my configuration and how can i test it?

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

configuring samba

by D_Frost In reply to configuring samba

Your first question is about vi, not samba. To save a file in vi, instead of using ":q" to quit, use ":w" to save, then ":q" to quit.

To test your config, if possible you should use the 'testparm' utility that comes with most samba packages. It does some basic syntax checking and displays for you all the configured options (so you can see the defaults on options you didn't change, for example).

If 'testparm' doesn't spit up errors, you can start samba by going to the appropriate directory(like /etc/rc.d/init.d) and running "./smb start"

If you find vi I troublesome way of editing your samab config file, you can also set up SWAT on some systems. SWAT is a web-based tool for administering Samba. Red Hat Linux comes with samba and SWAT. TO enable the service, edit the inetd.conf file in /etc - look for the a line that is probably commented out "#swat ..." and uncomment it. Run "/etc/rc.d/init.d/inet restart", then point a browser to that machine at port 901, where swat runs. ("http://localhost:901

Collapse -

configuring samba

by cwphang In reply to configuring samba

The question was auto-closed by TechRepublic

Collapse -

configuring samba

by D_Frost In reply to configuring samba

Argh. Note to TechRep - 1000 chars is not enough to answer many of these questions!
...continued

Run "/etc/rc.d/init.d/inet restart", then point a browser to that machine at port 901, where swat runs. ("http://localhost:901/" or "http://hostname:901/")

Be aware that SWAT wipes your smb.conf file and writes its own with less of the instructions. I'd back up smb.conf before starting. If you don't, it's not too bad, SWAT includes very good help on each configuration option.

Hope this all helps!

Collapse -

configuring samba

by cwphang In reply to configuring samba

The question was auto-closed by TechRepublic

Collapse -

configuring samba

by Kyle Gordon In reply to configuring samba

After you have configured the smb.conf file, it is best to run "testparm" to check it for errors. If there aren't any then it should return a list of shares that will be made available. If all is good then "samba start" or "samba restart" will load the new smb.conf.

HTH

Collapse -

configuring samba

by cwphang In reply to configuring samba

The question was auto-closed by TechRepublic

Collapse -

configuring samba

by deepen In reply to configuring samba

for vi you have to use press ESC button may be twice then type " :wq "and the press ENTER button. I suggect you to use "mc"
which is copy of norton commander of DOS called as "midnight commander"
which has good facility like after file is selected you have to press F4 for editing then F10 to exit ..About SAMBA you can give more detail of your settup (techincally) and what you want then I can better help you.
Deepen
www.deependhulla.com

Collapse -

configuring samba

by cwphang In reply to configuring samba

The question was auto-closed by TechRepublic

Collapse -

configuring samba

by cwphang In reply to configuring samba

This question was auto closed due to inactivity

Back to Linux Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums