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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-03-2003, 01:01 PM
|
#1
|
LQ Newbie
Registered: Sep 2002
Location: Morristown, NJ
Distribution: RH 7.3
Posts: 5
Rep:
|
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.
|
|
|
03-03-2003, 01:03 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Have you tried searching for it ? It is usually in /etc but it could be elsewhere in maybe /etc/samba, etc.
|
|
|
03-03-2003, 01:03 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,126
|
Try /etc/samba/
|
|
|
03-03-2003, 01:19 PM
|
#4
|
Member
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209
Rep:
|
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*
|
|
|
03-03-2003, 02:31 PM
|
#5
|
LQ Newbie
Registered: Sep 2002
Location: Morristown, NJ
Distribution: RH 7.3
Posts: 5
Original Poster
Rep:
|
i did a "whereis smb.conf" and the file was not found. It must exist somewhere for samba to work, right?
|
|
|
03-03-2003, 02:37 PM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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
|
|
|
03-03-2003, 07:21 PM
|
#7
|
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123
Rep:
|
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
|
|
|
03-03-2003, 07:25 PM
|
#8
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
updatedb
(That will take a while)
locate smb.conf
Mine is in /etc/samba/smb.conf as michaelk suggested.
|
|
|
03-03-2003, 07:54 PM
|
#9
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Quote:
Originally posted by Crashed_Again
Mine is in /etc/samba/smb.conf as michaelk suggested.
|
uh.... hrrm, check the post above his..
|
|
|
03-03-2003, 07:56 PM
|
#10
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
03-03-2003, 08:01 PM
|
#11
|
Senior Member
Registered: Oct 2002
Location: Belgium
Distribution: Debian, Free/OpenBSD
Posts: 1,123
Rep:
|
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.
|
|
|
|
03-03-2003, 08:04 PM
|
#12
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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!
|
|
|
03-03-2003, 08:06 PM
|
#13
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
03-03-2003, 08:22 PM
|
#14
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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...
|
|
|
03-04-2003, 08:35 AM
|
#15
|
LQ Newbie
Registered: Sep 2002
Location: Morristown, NJ
Distribution: RH 7.3
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:28 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|