LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-26-2005, 01:49 AM   #1
lacitpo
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Rep: Reputation: 0
Samba shares and windows machines


I am a new linux user and I am loving it. I have a linux machine that I am trying to use as a file server for my windows boxes. I intend to map directories on my windows machines pointing to shares on my linux box. I am posting my smb.conf file below so that maybe someone can tell my what is wrong with it, because I have been messing with this for about 10 hours now and am getting no where. When I browse the network from one of my windows computers, I can see my linux computer, but when I try to access it I get an error saying access denied. Here is my smb.conf file.

[global]
server string = Linux Server
username map = /etc/samba/smbusers
time server = Yes
add machine script = /usr/sbin/useradd -d /dev/null -g storage -s /bin/false -M %u
os level = 65
preferred master = Yes
domain master = Yes

[homes]
read only = No
create mask = 0644
guest ok = Yes

[netlogon]
path = /home/samba/netlogon
guest ok = Yes

[profiles]
path = /home/samba/profiles
read only = No
create mask = 0600
directory mask = 0700
guest ok = Yes

[shares]
comment = public media, read only
path = /mnt/storage/shares
guest ok = Yes

[p2p]
comment = emule and azureus incoming
path = /mnt/storage/p2p
valid users = lacitpo, nsdogg, nsdoggs
read only = No
browseable = No

[storageadmin]
path = /mnt/storage/
valid users = lacitpo, nsdogg, nsdoggs
read only = No
browseable = No
 
Old 02-26-2005, 01:53 AM   #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
Generic checklist:

1) did you setup user accounts on both your linux and Windows box? They have to be the same
2) do you have the same domain/workgroup in windows and linux?
3) are you able to ping both computers back and forth?
4) firewall?
5) Use smb4k as it is graphical and will help you set up samba
6) make sure your SMB services are running, along with NMB
7) make sure you are setting up your folders to share correctly. You can do this by right-click on the folder and selecting SHARE (In windows and linux). By default you cannot share outside your /home directory.

Last edited by Micro420; 02-26-2005 at 01:55 AM.
 
Old 02-26-2005, 01:56 AM   #3
lacitpo
LQ Newbie
 
Registered: Dec 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks,the firewall fixed it. I owe you big
 
  


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 shares and windows xp highfructose Linux - Software 1 05-08-2005 03:22 AM
Samba 3.0.6 - How to mount Samba Shares from Windows 2003? kp1 Linux - Software 2 09-10-2004 07:03 PM
Nautilus SAMBA and Windows Machines b3<k Linux - Networking 6 06-17-2004 03:16 AM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 06:28 PM
problem seeing Samba server from Windows machines kenviro Linux - Networking 11 08-18-2003 01:04 AM

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

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