LinuxQuestions.org
Review your favorite Linux distribution.
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, 12:48 PM   #1
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Rep: Reputation: 15
Any walkthroughs on network shares?


I'm having an awful time trying to configure samba (client and server) here. This house has windows machines with shares, and this linux machine with lots of shares (file server) No matter what I do though, I just can't get anything to work right. When I go to remote:/ on the linux machine, there are no shares there, even though there should be about 15 (from the various windows boxes) When I go to the windows machines, they can see/access each other's shares just fine, but none can see the 1 share on the linux box that I've configured. Also, when I go to remote:/ and go to SMB shares, it pops an error saying "Unable to find any workgroups in your local area network"

Is there some sort of walkthrough somewhere for configuring network shares or can you guys help me here?
Thanks,
Kevin
 
Old 01-28-2007, 01:04 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,571

Rep: Reputation: 180Reputation: 180
Have you tried the simple things: check if samba is working, check the firewall etc?
 
Old 01-28-2007, 01:05 PM   #3
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Try this on for size: http://samba.netfirms.com/
 
Old 01-28-2007, 01:09 PM   #4
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
In the firewall settings, I set it up to allow connections to the samba server on this machine. I'm trying to figure out one thing at a time.

So, I guess the first thing I need to do is figure out why the windows computers aren't viewable on this linux box. How do I check if Samba is running? That's all I want to do right now - Just be able to connect from the linux machine to the windows machines....What's the first step here (I'm completely new to linux network configuration....which is why I'm totally lost)
Kevin
 
Old 01-28-2007, 01:11 PM   #5
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
On your Linux box, type, maybe as root,
Code:
testparm
and copy/paste here.
 
Old 01-28-2007, 01:11 PM   #6
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
awesome link...hopefully it can help me out here.
 
Old 01-28-2007, 01:13 PM   #7
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
Code:
[global]
        workgroup = JUKEBOX_HERO
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain master = No
        usershare max shares = 100

[music]
        comment = Music
        path = /windows/C/
        inherit acls = Yes

[printer]
        comment = Printer
        path = /var/tmp
        printable = Yes
JUKEBOX_HERO is the correct workgroup (set up on all of the windows machines) and I've attempted to share one printer and one folder.
Kevin
 
Old 01-28-2007, 01:14 PM   #8
SnotRocket
LQ Newbie
 
Registered: Jan 2007
Posts: 11

Rep: Reputation: 0
Try changing your global to this:

Code:
[global]
        workgroup = JUKEBOX_HERO
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain master = No
        usershare max shares = 100
        security = share
        os level = 65
        preferred master = yes
        local master = yes
        wins support = yes
        name resolve order = wins lmhosts bcast
or security = user

Last edited by SnotRocket; 01-28-2007 at 01:19 PM.
 
Old 01-28-2007, 01:16 PM   #9
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
smb.conf
Code:
[global]
        usershare allow guests = No
        usershare max shares = 100
        workgroup = JUKEBOX_HERO
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = No
        domain master = No
        security = user

[music]
        comment = Music
        inherit acls = Yes
        path = /windows/C/
        read only = Yes

[printer]
        comment = Printer
        path = /var/tmp
        printable = Yes

## Share disabled by YaST
# [netlogon]
Kevin
 
Old 01-28-2007, 01:18 PM   #10
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
So I see you are trying to share the music section.

Change it to this:

Code:
[music]
comment = Music
path = /windows/C/
security = share
public = yes
writable = yes <--optional
Make sure your /windows/C/ path has the correct permissions. I recommend making it 777 to test it out.

Restart your samba service located in /etc/init.d/samba
Code:
/etc/init.d/samba restart
Go to your windows box.
START->RUN
cmd
in the DOS prompt, type:

net use z: \\ipaddressofSuse\music

You should see a new Z: drive pop-up on your Windows machine showing the music folder you want to share.
 
Old 01-28-2007, 01:22 PM   #11
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
I don't have /etc/init.d/samba. I've got a /etc/init.d/smbfs

Is that the correct one?
KEvin
 
Old 01-28-2007, 01:25 PM   #12
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Quote:
Originally Posted by kvnband
I don't have /etc/init.d/samba. I've got a /etc/init.d/smbfs

Is that the correct one?
KEvin
No.
Try /etc/rc.d/init.d/smb restart
 
Old 01-28-2007, 01:28 PM   #13
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
I'm in the init.d directory right now and there is nothing even resembling 'samba' save for smbfs that I mentioned before. Could this maybe mean that samba-server isn't even installed??

Quote:
Originally Posted by init.d file listing
aaeventd boot.d boot.preload cups halt.local nfsboot random resmgr splash
acpid boot.device-mapper boot.preload_early cupsrenice hplip nfsserver raw rpasswdd splash_early
alsasound boot.evms boot.proc dbus idmapd novell-zmd rc rpmconfigcheck sshd
atd boot.ipconfig boot.rootfsck earlykbd irq_balancer nscd rc0.d rsyncd SuSEfirewall2_init
auditd boot.klog boot.sched earlykdm joystick ntp rc1.d saslauthd SuSEfirewall2_setup
autofs boot.ldconfig boot.scpm earlysyslog kbd openct rc2.d single svcgssd
autoyast boot.loadmodules boot.scsidev esound ksysguardd pcscd rc3.d skeleton syslog
bluetooth boot.local boot.swap evms lm_sensors policykitd rc4.d skeleton.compat winbind
boot boot.localfs boot.sysctl fbset mdadmd portmap rc5.d smartd xdm
boot.apparmor boot.localnet boot.udev gpm microcode postfix rc6.d smbfs xfs
boot.cleanup boot.lvm boot.udev_retry gssd multipathd powerd rcS.d smpppd xinetd
boot.clock boot.md boot.videobios haldaemon network powerfail README snmpd ypbind
boot.crypto boot.multipath cron halt nfs powersaved reboot spamd
 
Old 01-28-2007, 01:33 PM   #14
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
Also, Micro...Mapping the network drive in windows using the IP address didn't work.
Kevin
 
Old 01-28-2007, 01:43 PM   #15
kvnband
Member
 
Registered: Jan 2004
Distribution: Suse 10.2
Posts: 107

Original Poster
Rep: Reputation: 15
Just downloaded the samba binary, and lo and behold, there is now 'smb' in /etc/init.d Hopefully I can play with it some more and get it working now.
 
  


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
Non-existent network shares won't disappear evilregis SUSE / openSUSE 2 11-11-2005 03:40 PM
Accessing network shares brianread SUSE / openSUSE 8 05-25-2005 01:30 AM
Searching shares on a network Brian1 Linux - Networking 2 10-24-2004 02:23 PM
mounting and viewing network shares GraemeK Linux - Networking 4 01-27-2004 03:23 AM
Browsing network shares Phaethar Mandriva 4 12-18-2003 12:35 AM

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

All times are GMT -5. The time now is 11:32 AM.

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