Linux - NewbieThis 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
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.
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?
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.
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.