LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-03-2003, 01:01 PM   #1
pallocca
LQ Newbie
 
Registered: Sep 2002
Location: Morristown, NJ
Distribution: RH 7.3
Posts: 5

Rep: Reputation: 0
where is my smb.conf


I want to configure samba on my Red Hat 7.3 box. However, when I went to edit the /etc/smb.conf file it was not there. But, when I ran the samba deamon and added a username and password everthing worked.

So, where is my smb.conf file? I thought the deamon would not run without it.
 
Old 03-03-2003, 01:03 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Have you tried searching for it ? It is usually in /etc but it could be elsewhere in maybe /etc/samba, etc.
 
Old 03-03-2003, 01:03 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,856

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Try /etc/samba/
 
Old 03-03-2003, 01:19 PM   #4
MrJoshua
Member
 
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Rep: Reputation: 31
dude come on did you try a #locate smb.conf ??? Also if you did and it did not show up update you locate database first:
#cd /
#locate -u

*edit> ohh yeah and it may take a while if you have never done it <edit*
 
Old 03-03-2003, 02:31 PM   #5
pallocca
LQ Newbie
 
Registered: Sep 2002
Location: Morristown, NJ
Distribution: RH 7.3
Posts: 5

Original Poster
Rep: Reputation: 0
i did a "whereis smb.conf" and the file was not found. It must exist somewhere for samba to work, right?
 
Old 03-03-2003, 02:37 PM   #6
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by pallocca
i did a "whereis smb.conf" and the file was not found. It must exist somewhere for samba to work, right?
Try either from your / directory:

locate smb.conf

or

find / -name smb.conf
 
Old 03-03-2003, 07:21 PM   #7
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Quote:
Originally posted by trickykid
find / -name smb.conf
If you're doing that as non root you can encounter a lot of error messages om your screen, making ik hard to see the file so you could add 2>/dev/null, that sends all the errors to /dev/null.
find / -name smb.conf 2>/dev/null
 
Old 03-03-2003, 07:25 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
updatedb
(That will take a while)

locate smb.conf

Mine is in /etc/samba/smb.conf as michaelk suggested.
 
Old 03-03-2003, 07:54 PM   #9
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Quote:
Originally posted by Crashed_Again
Mine is in /etc/samba/smb.conf as michaelk suggested.
uh.... hrrm, check the post above his..
 
Old 03-03-2003, 07:56 PM   #10
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
trickykid you are the quote master. I don't understand what you are trying to point out here. The post above yours is mine. Make sure you quote me here when you reply to this okay.
 
Old 03-03-2003, 08:01 PM   #11
iceman47
Senior Member
 
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123

Rep: Reputation: 47
Quote:
Originally posted by Crashed_Again
The post above yours is mine.
Quote:
Originally posted by trickykid
Have you tried searching for it ? It is usually in /etc but it could be elsewhere in maybe /etc/samba, etc.
 
Old 03-03-2003, 08:04 PM   #12
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
OH I'm sorry. I must give credit where credit is due. Trickykid is the one who FIRST posted /etc/samba/smb.conf. Way to go!
 
Old 03-03-2003, 08:06 PM   #13
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
Let me clarify Crashed, his original post, look above michaelk, as I mentioned /etc/samba before his post.

iceman47 totally understood my joke with a smilie. If you have a problem Crashed, let me know now by email? I don't like the way you worded your that post. And I'm serious.

Regards.
 
Old 03-03-2003, 08:22 PM   #14
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
The only problem I was having was understanding what you were trying to point out. I'm sorry but I am a little dense.

Lets be friends...
 
Old 03-04-2003, 08:35 AM   #15
pallocca
LQ Newbie
 
Registered: Sep 2002
Location: Morristown, NJ
Distribution: RH 7.3
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

i feel pretty dumb. the file was in /etc/samaba/ i just don't get why when i did a "find" it did not show where the file was. thanks everyone for your patience and help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
smb.conf example xox Linux - Networking 7 10-09-2010 02:04 AM
samba conf smb.conf regnier Mandriva 5 02-17-2005 04:27 AM
where is the smb.conf?? willigi Linux - Software 4 01-12-2005 10:48 AM
smb.conf youssefe2k Linux - Networking 1 01-25-2004 02:56 AM
smb.conf help PlatinumRik Linux - Networking 6 05-29-2003 01:30 PM


All times are GMT -5. The time now is 12:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration