LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   deleting SMB and starting over? (https://www.linuxquestions.org/questions/linux-networking-3/deleting-smb-and-starting-over-158796/)

Doug.Gentry 03-17-2004 01:06 AM

deleting SMB and starting over?
 
Ah yes, ANOTHER SMB question.

I'm running Suse 9.0 and my Wife is running XP Pro. I have everything hooked up and running. I also have a D-Link dl-604 router. We're up and on the internet and I have my XP machine and Hers seeing each other.

The issue now is. I would like to be able to share files from my Suse box with the wifes machine and vice and versa.

I'm looking at this website for installing and configuring SMB. I have it already installed on my system so I didn't have to do that part. MAybe just configure it. Anyway I get to a point which is this.

3.1 smb.conf

The smb.conf(5) file controls the behavior of Samba. By default, it's not created, so you'll have to make one up. Some examples are provided later on in this chapter. However, if you're going to run a Samba server, it's critical that you know where this configuration file is and how many unnecessary duplicate copies of this file exist. Common situations include someone installing Samba on a machine that had left over configuration files from a previous version of Samba. Which smb.conf file is the Administrator supposed to edit? Which one will Samba pay attention to? I think you get my drift. To make sure you're in the clear, run the following command as root:

I do this. I log in as SU and enter my password and then type in

find / -name testparm -exec ls -Fla {} \;

and I get this response back.

linux:/home/doug # find / -name testparm -exec ls -Fla {} \;
lrwxrwxrwx 1 root root 31 2004-03-12 23:50 /var/lib/samba/bin/testparm -> /usr/lib/samba/classic/testparm*
lrwxrwxrwx 1 root root 27 2004-03-11 19:27 /usr/bin/testparm -> /var/lib/samba/bin/testparm*
-rwxr-xr-x 1 root root 378866 2003-09-23 16:17 /usr/lib/samba/ldap/testparm*
-rwxr-xr-x 1 root root 377976 2003-09-23 16:17 /usr/lib/samba/classic/testparm*
linux:/home/doug #


HMMmmmmm, cause the next section of the configuration says I should see this and only this.

# find / -name testparm -exec ls -Fla {} \;
-rwxr-xr-x 1 root root 440268 2004-02-09 09:19 /usr/bin/testparm*


and IF I see anything else...If all goes well, only one file will show up. Why are we searching for testparm(1) instead of smb.conf(5)? By default, no smb.conf configuration file is installed with Samba, but testparm (which checks the syntax of your smb.conf file) is. So if you've just installed Samba on a system with an existing version of Samba on it, you might have duplicate configuration files located in odd locations you'd never expect. If you find more than one testparm file, you'd better determine why this is and take corrective action before proceeding!


ACCckk... It says I better determine why this is and take corrective action.. DAMN.... I don't KNOW what corrective action I SHOULD take. It left that chapter out!

SO I guess I'm asking you guys. What should I do with this?
And how do I do it?

Thanks so very much for reading such a long boring post?

Doug Gentry





:study:

trey85stang 03-17-2004 11:27 AM

im not sure what you are wanting.. are trying to learn samba inside and out.. Or do you just need help setting up for a particulay task?? Let us know what you are trying to setup?

Best way to start (some distro include a sample smb.conf file) is delete the existing smb file. I have never had anything but problems with sample file. I usually make a copy of it.. then erase the entire contents.. and start from scratch :)

Doug.Gentry 03-17-2004 02:23 PM

I'm actually trying to set smb up so I can map to my wifes xp system and also have her see my files. Also I would like to be able to use the pinter that we have also.

As far as that sample file goes. I believe they mentioned that I was lookingb to see where the smple file was so we'd know WHERE it was kept. It says further, I should only see one file location and not a bunch of different ones.
When I see my test parm thing I see I have it in 4 places.

So, I guess the question is, Should I do anything with these 4 file locations or just leave them.

and then, I'll move onto setting up samba and seeing the other computers.

Thanks
Doug


All times are GMT -5. The time now is 02:49 PM.