LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2004, 06:30 PM   #1
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Rep: Reputation: 0
smb.config help


this is my first time with linux and i have just edited my smb.conf file, but now my only problem is how do i save. i read up that you use the cammand :x but that soesnt seem to work
 
Old 01-14-2004, 06:37 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
first, have you edited the file as root? second, what editor did you use..i.e. pico, vi, emacs, ...etc., or a gui based editor...gedit,kedit, kwrite...etc.? will need more info to help, what distro are you running? what are you trying to accomplish w/samba? alittle more info will help. other than that i can offer a link to documentation on samba here.

http://us3.samba.org/samba/docs/using_samba/toc.html
 
Old 01-14-2004, 06:43 PM   #3
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Original Poster
Rep: Reputation: 0
i have logged in as root, and edited the smb.conf with the vi command. I am using red hat 9. What i want to try and do is firstly share files and folders, and secondly i gain access to the net via my xp box so i want linux to go live on the net through xp, if that makes sense. i hope this helps, ive spent a few days trying to get this working on my own, but....im just a baby to linux pls help
 
Old 01-14-2004, 06:56 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If you are editing with vi , you press the insert key to enable editing. When you are done editing, press the esc key to exit edit mode, then type: :wq! to Write , Quit and Commit changes.
To quit without saving, just type: :q!
 
Old 01-14-2004, 06:58 PM   #5
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Original Poster
Rep: Reputation: 0
when i do that it says to me thats it is not an editoe command :xq!
 
Old 01-14-2004, 07:00 PM   #6
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Original Poster
Rep: Reputation: 0
finger problems...sorry, thank you so much for your help. now i can atlease try configue uses!
 
Old 01-14-2004, 07:09 PM   #7
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Original Poster
Rep: Reputation: 0
i dont understand......i edit my smb.conf file

[homes]
comment = Home Directories
#describes the folder
browseable = yes
#should be set to yes so that you can access it
#as a default folder
read only = no
#allows writing when applicable

and save it, i then go on to setup a user password
#smbpasswd -a <name>

it says :
params.c:OpenConfFile() - unable to open configuration file "/etc/samba/smb.conf": No such file or Directory
cant load /etc/samba/smb.conf - run testparm to debug it.

i have no idea why this is happening
 
Old 01-14-2004, 07:19 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Did you restart samba after making the changes? Something like service smb restart aught to do it.
 
Old 01-14-2004, 07:49 PM   #9
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Original Poster
Rep: Reputation: 0
im still getting the same error message. ive even tried restarting linux, and that hasnt helped either
 
Old 01-14-2004, 07:58 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
"/etc/samba/smb.conf": No such file or Directory
Did you create a smb.conf someplace or did you edit the one located in the /etc/samba directory?
 
Old 01-14-2004, 08:01 PM   #11
cainbrain
LQ Newbie
 
Registered: Jan 2004
Posts: 14

Original Poster
Rep: Reputation: 0
i did theis to edit the config file
cd /etc/samba
then i did vi smb.conf.

the error is saying unable to open configuration file "/etc/samba/smb.conf No such file or directory
 
Old 01-14-2004, 10:29 PM   #12
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
You have to copy smb.conf.example to smb.conf.

mv smb.conf.example smb.conf

Once you configure it, make sure you start the service. If you don't, it'll cause alot of frustration.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Swat does not know where it it is getting smb.config from. Please help Tiyogi Linux - Networking 1 04-07-2004 02:30 AM
config smb to use multiple interfaces netguy2000 Linux - Networking 0 01-03-2004 05:45 AM
Why can't i use swat to config my SMB server on RH9? exper Linux - Software 1 11-19-2003 01:36 PM
GUI for servers config ( smb, mail, web) gillesb Linux - Newbie 3 09-29-2002 12:44 PM
Smb Config msaintcyr Linux - Networking 1 09-21-2002 08:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration