LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to access Samba server in WinXp (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-access-samba-server-in-winxp-702167/)

lucky_chouhan 02-04-2009 03:15 AM

Unable to access Samba server in WinXp
 
Hi, Using Redhat Linux AS5 Server, sucessfully configure Samba share and able to see this share on my xp machine, remove password security on samba. but when i try to access samba share in xp, its asking for username & password, when i give the root and pass , they deny for access. what i do.:confused:

" Successfully access the root via Putty";)

http://img6.imageshack.us/my.php?ima...bashareno6.jpg

ImageShack - Image Hosting :: sambashareno6.jpg

rylan76 02-04-2009 03:37 AM

What does your /etc/samba/smb.conf look like?

Mine works perfectly when I access it from an XP machine over the lan. Here's my config that does this.

Code:

[global]

netbios name = development
workgroup = WORKGROUP
security = share
log file = /var/log/samba.log
log level =  1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 10.0.0.1 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.6 10.0.0.7 10.0.0.8 10.0.0.9 10.0.0.10 10.0.0.11 10.0.0.11
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

[shared]
path = /mnt/win/shared
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes

I can access the /mnt/win/shared on my Linux box from any of my Windows systems without it prompting for password / usernames...

taylorkh 02-04-2009 11:39 AM

Did you create a Samba account on the Linux box? As root issue the command "smbpasswd -a username" where username is the XP user. If you make the password the same on the Samba server as on the XP machine you should be able to connect without the challenge.

Ken

lucky_chouhan 02-05-2009 02:44 AM

Thanks for your help after i reconf samba when i try to click on icon i'm able to access my 2 share folders w/o asking for username & password and able to open the network location (192.168.1.2) and got my share folders.

but when i click the folder getting message "Network access denied you dont have permission".

taylorkh 02-05-2009 05:56 AM

Have you checked the permissions on the folders and files from the Linux side? If the user(s) cannot access them from Linux they cannot access them with Samba. You also might check the firewall settings on the Windows PCs. I had a Zone Alarm upgrade break my first Samba setup some years ago. I blamed the problems on Samba and it took a looooooong time for me to figure out that the Windows firewall was the source of the problem.

Ken


All times are GMT -5. The time now is 10:37 AM.