PDA

View Full Version : Accessing a Samba share with WinXP



coleslaw
04-07-2003, 06:32 PM
I've got a FreeBSD box that I would like to access from my WinXP box using Samba. I've got Samba installed and, as far as I can tell, it's configured properly.

However, I can't seem to access the share - it states that "the account is not authorized to log in from this station". It DOES show up under My Network Places, etc. I have the sharing restricted to the LAN IP of the WinXP box and the account name and password is the same on each box, so I don't see what the problem is.

Should I try using inetd and using NetBIOS over port 455? :confused:

Anyone have any other ideas?

mojo
04-07-2003, 06:44 PM
have you checked your hosts.allow and hosts.deny? (not sure what they are in freebsd)

rajatQ2
04-09-2003, 11:29 AM
have you tested out that user name thoroughly? I mean, the first test would be from your XP box to SSH into the BSD box, using that username and pw combo. if that doesnt work check your .allow and .deny files thoroughly.

can you post your smb.conf file?

have you tried mapping the drive? Try something like this, this is from a batch file that runs on my XP box on startup to map my samba drives on my linux box:
net use z: \\wigga\mp3 password /USER:share

hth, post more details if possible. later

coleslaw
04-09-2003, 12:53 PM
I can connect to the system from my XP box just fine through SSH.

Here's my smb.conf file:


[global]
workgroup = poop
server string = Boobies!
hosts allow = 192.168.1.100 localhost
log file = /etc/samba/var/log.%m
max log size = 50
security = user
dns proxy = no
domain logons = yes
logon path = \\%L\Profiles\%U
logon home = \\%L\%U

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S

[netlogon]
comment = Network Logon Service
path = /etc/samba/lib/netlogon
guest ok = yes
writable = no
share modes = no

[Profiles]
path = /etc/samba/profiles
browseable = no
guest ok = yes

[printers]
comment = Printers
path = /usr/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes

[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes

[public]
comment = Public Stuff
path = /usr/home/coleslaw/public
public = yes
writable = no
printable = no


rajatQ2, since you've got your Samba share working, would you mind sharing your smb.conf file as well.

I'm not sure if I should be using netlogon or not, but it doesn't seem to make a difference one way or the other.

rajatQ2
04-10-2003, 12:28 PM
Hey Coleslaw,
I dont have time right now to figure out exactly how you are using your shares, but here is a link to a file that should help you. Its an itemized smb.conf file that has exact examples of different types of shares, ie printers, shadows, read only, dumps, stuff like that. Take some time and go through it (make sure you have the latest version of samba, and you should be golden.
It was stolen from Mandrake 9. Sorry i dont have barely any BSD experience but this works on all linux distro's i've ever worked on, so i'm confident.
Linky:

http://www.ews.uiuc.edu/~rbanerje/linux/smb.conf
or
http://www.ews.uiuc.edu/~rbanerje/linux/smb.conf.txt

I cant get to my box now otherwise i'd give you mine.
HTH, Later
rajatq2

rajatQ2
04-10-2003, 12:30 PM
ps: the file has been minorly edited but you can tell.

also, if you need any more help let me know.
www.tldp.org (the linux documentation project) is your friend. Definitive reference for the standard distros.
i left my AIM in your private messages. later

revil
04-10-2003, 12:47 PM
i had the same problem. it's proably not your samba box. go to your ip configuration for your network card in xp. select the advanced button near the bottom. in the WINS tab, select "enable NetBIOS over TCP/IP" It should work then.

coleslaw
04-11-2003, 02:03 PM
I think my problem may be with the directory structure of my samba installation.

I try to do "smbpasswd -a coleslaw" to add myself as a user for the encrypted password file, yet it states "add_smbfilepwd_entry: unable to open file".

I've already had to add a symbolic link to my smb.conf file to get it to this point, so maybe I will have to wipe this drive and start fresh so that I can get Samba (and Apache/PHP) working correctly. :(

I can see the share in Windows and it will prompt me for a username/password, yet no combination of usernames/passwords works.