-   Linux - Newbie (
-   -   Samba only works half as good as it should (

duhasst0 01-15-2007 05:28 PM

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.

workgroup = DEADSPACE
netbios name = PROTOTYPEX
#security = share

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

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?


jonnycando 01-15-2007 05:59 PM

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.

duhasst0 01-15-2007 06:01 PM

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.

duhasst0 01-15-2007 08:21 PM

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
Domain=[DUBMD] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
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.

workgroup = DEADSPACE
netbios name = PROTOTYPEX
security = share
guest ok = yes

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

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...


duhasst0 01-15-2007 09:14 PM

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.

Micro420 01-15-2007 09:24 PM

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

All times are GMT -5. The time now is 08:23 PM.