Fedora - Editing Samba Server

All threads related to any flava of Linux or BSD.
Post Reply
sh_ithe_ad
Sargeant at Arms
Posts: 244
Joined: Thu Dec 11, 2003 4:28 pm

Fedora - Editing Samba Server

Post by sh_ithe_ad » Thu Jul 31, 2008 6:22 pm

I'm having serious trouble configuring the smb.conf file for Samba on my Fedora file server. None of the tutorials for Fedora are complete. I'm new to Linux and alot of these tutorials tell you to rename smb.conf but don't tell you how so I'm stuck. Can I manually edit the smb.conf file that already exists instead of creating a new conf file like all the tutorials tell you to?

Will an smb.conf file work for all distro's? I got Samba working on Ubuntu because the tutorial gave a sample smb.conf file and all I did was edit it but I can't find any sample conf files on any of the Fedora tutorials.

It was dead simple the conf file too nothing like the one here
http://www.comptechdoc.org/os/linux/man ... bconf.html
It omitted that ridiculous amount of comments and just left what was necessary.

I've been at this for about 2 hours now. Does anyone here use Samba on Fedora if so did you use SWAT to edit the server? I can't get swat running because in the tutorials they tell you to edit the file with the vi command and luckily I knew you had to press the INSERT key to allow you to edit the file but unfortunately I forgot how to save the file after you press ESC.

User avatar
pozican
Oh lawd is dat sum chikinz
Posts: 1617
Joined: Tue May 18, 2004 1:29 pm
Location: #hackerthreads

Re: Fedora - Editing Samba Server

Post by pozican » Sun Aug 03, 2008 1:20 am

Couple things.
First - smb.conf will be the same for all distros. Samba is nothing but a program running on an OS. Nothing changes.

Use the one you used for ubuntu. If youc an't find the sample one -- Search on ubuntuforums.com (org?) for someone having issues with samba, they will include a clipping of their conf file.

Basic vi stuff:
vi [filename]
opens a file, or edits a file
Pressing 'i' will put you into insert mode. This is where you can type normally.
Pressing esc while in insert mode will bring you back to command line mode. This is where you can press ':' and it will allow you to type in a command.
'w' will write the file
'w [filename]' write the file with filename specified
'q' quit
'wq' write and quit
'q!' quit without saving

There are plenty of tutorials.
You can also try using nano, pico or emacs. All of which are far more user friendly than vi.

-poz
Get some exercise -- Support bad porn
Life for President, Ramius for vice, GhostHawk for Secretary of Beer
i <3 2 sqrt(u)

sh_ithe_ad
Sargeant at Arms
Posts: 244
Joined: Thu Dec 11, 2003 4:28 pm

Re: Fedora - Editing Samba Server

Post by sh_ithe_ad » Sun Aug 03, 2008 11:22 am

Thanks alot. That vi command was driving me mad. I used the same configuration file that worked on Ubuntu on my Fedora server and restarted samba on it but its not detecting the shared folder. The Ubuntu shared folder is coming up in the networks folder but not the Fedora one. Any idea what the problem might be? I definitely allowed samba in my firewall.

Post Reply