Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't connect to my shares

Status
Not open for further replies.

dantalus

Technical User
Feb 11, 2003
4
US
Hello again,

I think i am almost there!! I can see my shares from a windows .net machine ... I only have one little problem, I can't connect to them. each time i try and make the connection i get an error message from the windows box

\\Samba\/home/share is not accessible. You might not have permission to use the network resource. Contact the adminitrator of this server to find out if you have access permissions.

No network provider accepted the given network path.


here is my smb.conf:

# Global parameters
[global]
workgroup = JEFFROSOFT
server string = Samba Server (Red Hat 8.0)
interfaces = eth0 127.0.0.1
bind interfaces only = Yes
encrypt passwords = Yes
smb passwd file = /etc/smbpasswd
pam password change = Yes
unix password sync = Yes
max log size = 0
hosts allow = 192.168.1.

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

[/home/share]
comment = Windows File Share
path = /home/share
read only = No
create mask = 0765

[/tmp]
path = /tmp
read only = No

[HP]
path = /var/spool/samba
read only = No
printer name = HP
oplocks = No
available = No
 
You're syncing your unix users to samba users so, do you have a unix/samba user that matches the windows user that you are trying to connect with? What command are you using on the Windows machine to connect with Samba - net use? - \\Samba\/home/share is this a typo?
 
I'm new to the topic, but in my experience I've noticed that linux (my server runs mandrake 8.2) resets the permissions to /home, so that even if you modify them to, for example, 770, and the ownership to root.mysmbgroup, after a while the system takes the permissions back to 700, which is the standard set for the dir /home.

In this case, even if you have set the right path and permissions for the shares in smb.conf, you won't be able to access the shares in /home, as Linux considers every dir in /home as a "private" home directory.

If you notice that the permissions to you dir /home/share is reset to 700 (drwx---------), then you might coose another dir from /home to put you share dir in. I've made these changes to my system and now everthing woks fine...

sorry if I missed the point,
 
Just to share out my knowledge of samba.
Initially i got problem to share out folder in my sun server with Sun Solaris 8 Os by using samba. My workstation with Win XP cannot access the share folder but later with the following setting, I able to connect the share drive by using 'net use' command or GUI map network option. Hope this help.


[global]
workgroup = WORKGROUP
keepalive = 300
os level = 20
security = share
netbios name = SPRI-SUN01
encrypt passwords = yes

[vpv3run]
path=/softw/vpv3run
read only = yes
guest ok = yes

[appl]
path=/softw/appl
writeable=yes
guest ok = yes

[hasil]
path=/hasil
writeable=yes
guest ok = yes
public=yes

 
The path you are stating is not correct:
\\SAMBA/home/share is an invalid path name.

Change the name of /home/share to something else like hshare.

So when you connect you connect as \\SAMBA\hshare.

You can not put a / in a unc, it is used as a switch. ie
net use * \\SAMBA\hshare /u:user "password"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top