LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2003, 06:16 AM   #1
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Rep: Reputation: 30
samba?


i have just got my rh8 box to share my winxp internet connection. thanks to linuxquestions.org now i want to share my xp files. ive been trying to read man pages on samba and online how to's. and i still dont understand samba.

i think on linux. you have to configure a file smb.conf which i cannot find (or i have to create it?) put the ip addresse, the folder i want to share for linux, passwords and more stuff that i dont understand. then start up the two samba daemons smbd and nmbd. then i should be able to use mozilla to access the shared folder in windows??

i think for windows. xp already has a shared folder. im not sure if theres any thing that has to be configured there

thats about as far as i can understand or not understand. any clarity would help thanks
 
Old 05-05-2003, 06:34 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
the file will be /etc/smb.conf or /etc/samba/smb.conf or something very similar. it will be there IF you have alerady got samba installed, which you *probably* do you start the samba SERVER with "service smb start" or "/etc/init.d/smb start" but to share the files on windows, i.e. linux is the samba CLIENT you mount it:

mount -t smbfs //windowsserver/share /mnt/samba -o username=blah,password=blah

check the mount and samba manpages and docs for more information
 
Old 05-05-2003, 07:09 AM   #3
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
[/etc]
smbadduser smbcontrol smbpasswd smbstatus smproxy
smbcalcs smbmnt smbprint smbtar
smbclient smbmount smbspool smbumount

not sure which 1 is smb.conf

i was trying to start it in the menu. it would start up mozilla then i get a message that it could not connect. the address in the search box is not the windows comp ip? or the linux comp?? is that because no file system has been mounted?

mount -t smbfs //windowsserver/share /mnt/samba -o username=blah,password=blah
username and password is this for the linux comp or windows

thanks

Last edited by bm1; 05-05-2003 at 07:12 AM.
 
Old 05-05-2003, 07:33 AM   #4
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
in my windows comp i can see another network called Mygroup but i dont have access to it. is this because i havent mount the linux file system with samba so windows cant see my linux comp? when i mount a drive do i only mount the folder i want windows access or do i mount everything
thanks
 
Old 05-05-2003, 07:40 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
not sure which 1 is smb.conf
ermm, none of them as none of them are called smb.conf... those are the programs for samba, and they aren't in /etc either...

what were you starting in what menu? there's no way at all that that could load mozilla... please try to clarify what you are talking about a little more.

you don't maount the remote folder, you mount the SHARE, which is just coincidentally a folder (and thus everything beneath it)
 
Old 05-05-2003, 11:44 AM   #6
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Check out http://www.valkyrie.net/~tangle/comp.../smb_conf.htm.
 
Old 05-05-2003, 04:41 PM   #7
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
yeah sorry bout that i found the smb.conf file my win comp can see the network but not my comp. i started smb and mounted my linux comp. not sure where to look to fix the problem.
thanks
 
Old 05-05-2003, 07:33 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
If you can't see see the Linux box, that means that it is a WINS problem. I forget how long it takes for a Windows machine to refresh WINS. You can do a an nbtstat -R at the command line in Windows to do a refresh or just restart the PC.
When you browse the network, WINS is actually use to see the other nodes (computers) on the LAN. I hope I didn't confuse you.
 
Old 05-06-2003, 12:08 AM   #9
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
i can see my linux box in mshome network but i cant access it. the error message is like duplicate names exists on the network. so ichange the name of my winxp box. when i restart linux does it unmount and turn samba off?
i changed the workgroup to mshome in smb.conf if that has anything to do with the problem. please let me know
thanks
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration