Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
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.
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.
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:
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?
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.
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".
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
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)
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
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
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
"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)
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)
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
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.