LinuxQuestions.org
Visit Jeremy's Blog.
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 01-28-2007, 06:51 PM   #1
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Rep: Reputation: 15
SAMBA configuration to join MS workgroup


I would like to setup my Fedora 6 box to work with an (unsecured) MS workgroup; I would like to avoid the agony of separate configuration steps for incoming/outgoing files shares/printers.

I believe this is probably doable in smb.conf, but I am put off by the size of the smb.conf help file. Is there any GUI that is useful?

I have smb running (I can access file shares on other computers, but awkwardly), printers attached to the Fedora box working locally.
 
Old 01-28-2007, 08:29 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
GUI's to look for are SWAT and I believe smb4k

I still don't know what you are specifically trying to do? You said you can already access file shares on other computers. So what else did you want to do?
 
Old 01-28-2007, 10:07 PM   #3
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Rep: Reputation: 15
Are you trying to set up shares on the linux box to be accessible on the windows machines? If so, it really isn't complicated at all. Here is a sample of my smb.conf

Code:
[global]
        workgroup = JUKEBOX_HERO
        netbios name = kevin
        wins support = true
        domain logons = Yes
        security = share
        comment = File Server
        server string = File Server
        dns proxy = No
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        server string = File Server
[music]
        comment = Music
        inherit acls = Yes
        path = /windows/C/
        read only = Yes
        security = share
        public = Yes
        browseable = Yes
All you have to do is change workgroup= to your workgroup, and then set up your shares under that. A few lines and you should be in business.
 
Old 01-29-2007, 05:31 PM   #4
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Made some progress by adding suggested lines to samba.conf. The Fedora box can now see the file shares on the MS boxes, but the other 3 objectives are still suffering (any advice would be appreciated).

Fedora box seeing printers attached locally to MS boxes - In the UI I would describe as "System/Administration/Printers/New Printer/Windows Printers via SAMBA" the workgroup name shows up, but the none of the printers will show up. In this UI, I can type in the address and configure the printer, and it seems to work.

MS boxes seeing the file shares on the Fedora box - the Fedora box does not show up in Network Neighborhood, nor can it be found by explicitly asking for "\\pavilionF6". On the Fedora box, a share is set up in the smb.conf file, and - in the UI I would describe as "System/Preferences/Share Public Files" I have checked "share public files" (for all the accounts defined for the Fedora box), and in the Network window, an icon for shared public files appears.

MS boxes seeing the printers on the Fedora box - to repeat, the Fedora box does not show up in Network Neighborhood, nor can it be found by explicitly asking for "\\pavilionF6". In the UI "System/Administration/Printers" the printers appear as local printers, with the checkbox set for "Share this printer".

Thanks
Jonathan
 
Old 01-29-2007, 05:33 PM   #5
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Rep: Reputation: 15
Have you tried accessing the fedora box by IP instead of by name? IE instead of \\pavilionF6, try 192.168.1.x (or whatever the IP of the machine is) This drove me crazy on my setup, because at first (for some stupid MS reason), I couldn't access the linux box by name. Only by IP. After about a day, I could access everything by name. So try it by IP and get back to us.
Kevin
 
Old 01-29-2007, 10:01 PM   #6
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Gee, that didn't work

Sorry for all these newbie questions, but the pieces are not fitting together for me ...

1) How does one figure out what IP Fedora thinks it got? all of the following were useless
a) ping pavilionF6
b) ping localhost
c) ping -I eth0
d) dhclient

2) I looked at the router logs, and the router thinks it gave 192.168.0.102 to pavilionF6

3) TCP/IP is working (at least in some fashion) as the Fedora box can access the public internet and can retreive files from the MS boxes

4) ping 192.168.0.102 works on the MS boxes, but \\192.168.0.102 gets the "Windows cannot find" error
(\\192.168.0.101 and other ips of the MS boxes work as expected)
 
Old 01-29-2007, 10:09 PM   #7
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Rep: Reputation: 15
Post your whole smb.conf here for us to look at. Have you made sure that samba-server is actually running (it kind of sounds like it's not because a ping doesn't require samba, but network sharing does)
Let us know.
Kevin
 
Old 01-30-2007, 02:24 PM   #8
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Maybe SAMBA is not running ...

I think I made an unwarranted assumption. Some element of the SAMBA machinery is presumably working, as network shares on the MS boxes are visible by opening an icon which displays "SMB". There likely are SAMBA elements that are either not yet installed or not activated. I should have been more suspicious when there was no listing for SAMBA in UI referenced as "System/Administration/Services".

In any event, below is a copy of samba.conf (with comments redacted):

BTW - would I want to set [Printers]/Broswsable to Yes?

[global]

workgroup = 21PRINCE
netbios name = PAVILIONF6
server string = Pavilion running Fedora
security = share
load printers = yes
cups options = raw
log file = /var/log/samba/%m.log
max log size = 50
domain logons = yes
dns proxy = no

[homes]
comment = Home Directories
browseable = no
writable = yes

[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[guest]
comment = Guest home
inherit acls = Yes
path = /home/guest/
security = share
public = Yes
browseable = Yes
 
Old 01-30-2007, 04:33 PM   #9
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Rep: Reputation: 15
If you didn't explicitly install samba server, then it is probably not installed. Go to whatever software management fedora has and install it. Then start the service (and set it to start every time the computer is started) and then you should be in business.
Kevin
 
Old 01-30-2007, 06:03 PM   #10
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Making progress, not 100% yet

"yum install samba" worked and activating the samba service was fruitful, but

1) The MS boxes now see "pavilionF6" and the folders and printers shared by it. Unfortunately, the folders and printers all seem to have access problems. I went and looked at the permissions for the shared folder and saw
a) for Owner (which is a drop-down list box - this semantic makes no sense to me) the permissions are Read-Write.
b) for Group, the permissions are None
c) for Others, the permissions are None (I imagine this is the problem, but I thought I should ask)
I do not see where to set permissions for the Printers

2) The Printers configuration interface seems to be looking for the shared printers attached to the MS boxes, but fails to find them. Likewise the Computer/network shows the MS boxes and their shared folders, but not their printers (this is not crucial, but it would be nice to get it to work)

Thanks for your patience.

Jonathan
 
Old 01-31-2007, 06:23 AM   #11
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Some more info (I just installed system-config-samba)

The firewall settings list SAMBA as a trusted service

The printers and file shares show up as being available to "all users" (not clear to me how "Share" authentication - which is what is configured - relates to this)

Jonathan
 
Old 01-31-2007, 12:41 PM   #12
hilmerg
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
Where is the samba config file? I havent worked on linux for a while...sorry if the question is dumb
 
Old 01-31-2007, 01:28 PM   #13
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
The usual place

/etc/samba/samba.conf
 
Old 01-31-2007, 02:55 PM   #14
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Rep: Reputation: 15
I've given you all of my knowledge and I'm completely stumped now. We're definitely making progress, but I'm not sure where to go from here. On my shares, I have owner with full access, and group/others with read access and it's working. Maybe try that and see if you can browse them then?
Kevin
 
Old 01-31-2007, 07:00 PM   #15
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Oops, been making negative progress

I have tried various alternatives (security=user and a variety of other variations); I got as far as having the MS box ask me for a password for the Fedora box, but the password failed. I did something to screw up the entire network, so I am having to backtrack to ground zero.

I will probably stop for today (should have done that an hour ago).

Jonathan
 
  


Reply

Tags
samba, workgroup



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 Workgroup and Domain with File n printer Share full Configuration for Fedora 4 d.vinayaham Linux - Software 8 11-02-2006 03:13 AM
Workgroup vs Domain configuration santhosh.bachu Linux - Networking 1 07-27-2006 07:19 AM
smbclient to join workgroup and a domain JimBass Linux - Newbie 1 12-31-2005 11:19 AM
how do you join an existing windoze workgroup mnm_mc Linux - Networking 6 09-29-2004 11:10 AM
can a linux box join a windows workgroup? PlatinumRik Linux - Networking 2 06-04-2003 07:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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