LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 01-15-2007, 06:28 PM   #1
duhasst0
LQ Newbie
 
Registered: Jan 2004
Distribution: Gentoo 2006.1, Slackware
Posts: 29

Rep: Reputation: 15
Samba only works half as good as it should


Hi. I am having some problems with samba of course. I am using a minimal config file written by myself. It works just not as well as it really should. This is my config file.
Code:
[global]
workgroup = DEADSPACE
netbios name = PROTOTYPEX
#security = share

[share1]
path = /mnt/windows/Media
comment = Old windows install
create mask = 0774
directory mask = 0775

[share2]
path = /home/duhasst0
comment = My home dir
Like I said it should work just fine but thing is I can't access any of my files from my windows laptop. Gives me the access not allowed error. Shouldn't the create mask and directory mask allow me access to all files and directories within the share? Is there anything that I am missing that would help me fix this?

John
 
Old 01-15-2007, 06:59 PM   #2
jonnycando
Member
 
Registered: Nov 2006
Location: Virginia
Distribution: OpenSuSE 10.2
Posts: 121

Rep: Reputation: 15
I have a Samba thing which may relate. My windoze laptop can see on my Linux desktop all that I provided for when I configured Samba. And I can read and write files from win to Linux. However Linux can not see the laptop at all, even though there are many shares on it to look at. And all workstation firewalls are configured to trust intralan communications.
 
Old 01-15-2007, 07:01 PM   #3
duhasst0
LQ Newbie
 
Registered: Jan 2004
Distribution: Gentoo 2006.1, Slackware
Posts: 29

Original Poster
Rep: Reputation: 15
well I had a problem with that kinda if you have a firewall like norton which i have i added the ips from the internal network to be able to access the windows box. so try that.
 
Old 01-15-2007, 09:21 PM   #4
duhasst0
LQ Newbie
 
Registered: Jan 2004
Distribution: Gentoo 2006.1, Slackware
Posts: 29

Original Poster
Rep: Reputation: 15
Alright here is what I get from both computers for results on whether or not it connects and it does connect I just can't seem to figure this out.

From Gentoo box:
smbclient -L dubMD
Password:
Domain=[DUBMD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
Printer4 Printer Creates Adobe PDF
Printer Printer Microsoft Office Document Image Writer
Domain=[DUBMD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Server Comment
--------- -------

Workgroup Master
--------- -------

From Windoze box:
c:>net view \\PROTOTYPEX
Shared resources at \\PROTOTYPEX

Samba 3.0.22

Share name Type Used as Comment

-------------------------------------------------------------------------------
DuHasstHome Disk (UNC) My home dir
OldWin Disk (UNC) Old windows install
The command completed successfully.

smb.conf:
[global]
workgroup = DEADSPACE
netbios name = PROTOTYPEX
security = share
guest ok = yes

[OldWin]
path = /mnt/windows/Media
comment = Old windows install
available = yes
browsable = yes
public = yes
#create mask = 0774
#directory mask = 0775
create mask = 0744
directory mask = 0755

[DuHasstHome]
path = /home/duhasst0
comment = My home dir



So far I can access both shares. Thing is the /home/duhasst0 works just the way it should. The other share though I can just access the directory and only the first sub directory but the next sub directory and any file in there cannot be accessed by any of my windows programs. I can't even copy the files so...

PLEASE HELP.
 
Old 01-15-2007, 10:14 PM   #5
duhasst0
LQ Newbie
 
Registered: Jan 2004
Distribution: Gentoo 2006.1, Slackware
Posts: 29

Original Poster
Rep: Reputation: 15
Alright from what I have read my problem is that one of my shares happens to reside in a ntfs part. Unfortunetly I don't have any extra space to transfer to. I am in one sticky situation. So I think I am screwed on that one. Anyway I hope that this post will help others in the future.
 
Old 01-15-2007, 10:24 PM   #6
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
This is a simple fix. Just uncomment the security = share

Make sure your /mnt/windows/media has at least XX4 permissions. Same with your /home

Last edited by Micro420; 01-15-2007 at 10:26 PM.
 
  


Reply

Tags
file, lan, networking, ntfs, samba, sharing, windows


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
Lilo only half works... after Slack10.2 A.C. Helm Slackware 11 09-29-2005 12:46 PM
SB live with 10.1 - half works!? sharkzf6 Slackware 6 03-07-2005 04:35 PM
SB live with Slackware 10.1 - half works!? sharkzf6 Linux - Hardware 7 03-04-2005 06:05 AM
Grub only half works Gsee Linux - General 32 01-16-2005 07:52 PM
php works HALF on slackware tuxandme Linux - Software 1 02-04-2004 12:06 PM


All times are GMT -5. The time now is 09:28 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration