LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Samba & XP stupid problem (https://www.linuxquestions.org/questions/linux-networking-3/samba-and-xp-stupid-problem-211469/)

Fordor 07-30-2004 09:52 AM

Samba & XP stupid problem
 
I am trying to setup a home network based on a canyon router. Both PCs(one XP@1400MHz&256RAM second console only Slackware 10@166MHz&32RAM) can access the internet just fine, both can ping each other and connect to open services(FTP, SSH, Telnet), so the network itself works ok.
I am trying to setup a share on the Slack PC, but XP sees the shares, but tying to enter them give me an access denied error. I have read a lot of posts here about this and tried different configs, but nothing helped.

Here is my smb.conf:

[global]
workgroup = WORKGROUP
server string = Panzer
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/private/smbpasswd

[homes]

[myshare]
path = /home/ftp
browseable = yes
public = yes
read only = no


####End of config#########

I really don't understand what am I missing.
By the way when starting samba in interactive move it displays an
api_fd_reply : INVALID PIPE HANDLE: 753f

Please tell me how to fix this problem, as I don't know what to do now.

Thank you
Dennis

Vincent_Vega 07-30-2004 11:52 AM

You could try adding 'guest ok = yes' to your share options. Are you entering a username and password to access the share? Have you setup a password on the linux box using smbpasswd? I assume you have but just checking.

Fordor 07-30-2004 01:21 PM

I have tried adding the guest ok = yes option to the shared directory and added the passwords with smbpasswd, but the strange thing is that the password doen't get requested it just says access denied.

Vincent_Vega 07-30-2004 07:14 PM

Can you mount it using the smbmount command including a username and password?

Fordor 07-31-2004 01:31 AM

No, I can't. There must be some config error in the smb.conf, but I don't know what is it.

nitroid 07-31-2004 10:53 AM

This is from my smb.conf:

Code:

[homes]
browseable=No
comment=Home Directories
inherit permissions=Yes
read only=No
valid users=%S

That last line above may be what you're missing. Without that all the boxes on the workgroup can see the shares, but not access them.

Fordor 07-31-2004 11:21 AM

OK, I have copied this example as my smb.conf, so now I get a straight access denied message. I can see the capacity of the network drive even, but when I click on it windows can't access it.
There is some other thing : when I try to enter a login for the network drive windows first asks me for a drive and then shows the login box again with a disabled login name field which says 192.168.62.51\Guest
I don't know why it shows as guest, maybe that's why access is denied?

Hope you have some ideas about this.

Fordor 07-31-2004 11:21 AM

By the way, there is some stopped service winbindd , do I need to start that also?

Vincent_Vega 07-31-2004 01:20 PM

can you change the username to a real account on the linux box and try using its password?
If you can't even do that, I would think that something went wrong with the Samba installation. You don't need winbindd. Just smbd and nmbd.
Do you have any type of firewall running that could be blocking it?

Fordor 07-31-2004 01:45 PM

I am already using the real username. My windows accounts are the same as linux ones(except for the built-in windows admin and root).
Why does windows sometimes show only the username when logginng in and sometimes the_host_address/username?

And I didn't install any firewall apps, so all ports are opened. I'm beginning to worry about this config problem.

Vincent_Vega 07-31-2004 02:48 PM

I'm not on a linux computer right now so I can't really go too deep into this problem for you myself but I think I would suggest removing Samba and reinstalling.
Are you sure that you have SMB support in your kernel? That might be a dumb question since you can see the shares but I'm trying to think of anything I can.

Vincent_Vega 07-31-2004 02:50 PM

Also, what are the permissions on the shared folder in linux? If you've set them to 700 or maybe even 770 you could be locked out by linux, not samba. Check that first.

Fordor 07-31-2004 03:15 PM

Yes, the permissions are ok, they are set to 777 for the directory that I am sharing, but I didn't have smb support, however the kernel compiler menu says that it is needed only for mounting windows shares and not the other way around. Should I compile it in anyway?

Vincent_Vega 07-31-2004 04:18 PM

yes


All times are GMT -5. The time now is 08:55 AM.