LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-05-2002, 03:39 PM   #1
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
Samba


I think that I'm cursed to never understand howto's. Anyway, I need an easy way to make Linux and Windows talk to each other. I can set-up the network where I can Ping one computer from the other, but I can not share files. I have two computers and need someone to tell me how to make SAMBA work (with SWAT, not that stupid config file). Assume I have done nothing but install the network cards and attached the cable. I know this is a big inconvenience, but there is nothing else for me to do. I really need someone to turn to when I don't understand something, because I live in "Red-Neck county". (I show people Linux, but they think it's an application run in Windows. They are brain washed to think that when you build a computer, it naturally comes with Windows.)
 
Old 04-05-2002, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
"that stupid config file" is really easy to understand, you shouldn't be scared of config files... well some.. sendmail is a nightmare... but anyway. one samba configuratio is use is
Code:
[global]
security = user
null passwords = yes
encrypt passwords = no
server string = simon
log file = /var/log/samba/%m.log

[mp3]
path = /mp3
comment = mp3
writeable = yes
public = yes
so here, the security level is user, meaning an existing user has to log in to use it. next you don't *have* to provide a password, the passwords are not encrypted, we call ourselves "simon" for information, and that's the log file to use. next we define the share. it's called mp3, as is the comment for it, and the location is just /mp3. people can write to it, and anyone can use it. that's damn simple.
 
Old 04-05-2002, 04:46 PM   #3
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
Quote:
the security level is user, meaning an existing user has to log in to use it.
Does this mean the user has to be a login name on linux at the localhost.localdomain login.
 
Old 04-05-2002, 05:03 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yes. the alternative way would be to use password encryption (so windows can access it) and then to manually add the users to only samba using smbuseradd
 
Old 04-05-2002, 05:26 PM   #5
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
Well, then how come I can't see linux in Network Neighborhood?
 
Old 04-05-2002, 05:37 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
maybe you've not (re)started the samba server, or have not logged onto the computer from windows.
 
Old 04-05-2002, 05:53 PM   #7
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Original Poster
Rep: Reputation: 30
I have restarted windows and restarted SAMBA. Does this have anything to do with me not having SWAT installed? In Network Configurator, is the HOSTS tab suppost to have the Linux computer or the Windows computer?
 
Old 04-05-2002, 08:53 PM   #8
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
make sure these are set properly:
workgroup = windows-workgroup-name, case sensitive.

and try this if you dont want to have to suppy a username/password:
security = share


here's mine:

[global]
workgroup = WORKGROUP
server string = Slak Server
log file = /var/log/samba.%m
max log size = 50
security = share
socket options = TCP_NODELAY SO_RCVBUF=8760 SO_SNDBUF=8760
dns proxy = no

[Pictures]
path = /shared
public = yes
only guest = yes
writable = yes
printable = no

[Stuff]
path = /shared2
public = yes
only guest = yes
writable = yes
printable = no

This is not very secure, but works fine for my little 6 machine lan in my house.
 
  


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
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 - Networking

All times are GMT -5. The time now is 09:12 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