Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: fail to connect to samba on centOS 5.6

19 May 2011   #1
sunxiaoyang

windows 7 professional 64bit
 
 
fail to connect to samba on centOS 5.6

I have following home network:

laptop (window7) <--> router <---> linux PC (centOS 5.6)
|
|
modem
|
|
internet

I want to connect laptop to samba service on the linux PC.
But it does not work.

I have setup router to reserve IP address for both laptop and linux PC.
I have setup samba service on the linux PC.

I can ping the ip address 192.168.0.102 from laptop.

C:\Users\Tim>ping 192.168.0.102
Pinging 192.168.0.102 with 32 bytes of data:
Reply from 192.168.0.102: bytes=32 time=6ms TTL=64
Reply from 192.168.0.102: bytes=32 time=1ms TTL=64
Reply from 192.168.0.102: bytes=32 time=1ms TTL=64

I also can putty to the linux PC from laptop:
login as: tim
tim@192.168.0.102's password:
Last login: Thu May 19 22:55:40 2011 from tim-pc.jgsignet
[tim@JGWORK ~]$

Don't know why?

I check my laptop, there is no "Windows Live ID" program. I just did not see it from All Programs.

Attached Untitled.png, shows that window7 Network in file explorer can shows the two share directory on the IP address.
But when I click the "home_tim" directory, it shows error like error.png.




Attached Images
fail to connect to samba on centOS 5.6-untitled.png fail to connect to samba on centOS 5.6-error.png 
My System SpecsSystem Spec
.
19 May 2011   #2
sunxiaoyang

windows 7 professional 64bit
 
 

in the network structure, the line connected to internet is from router; the blank space characters are eaten up.
My System SpecsSystem Spec
19 May 2011   #3
TCG

 
 

Have you added the samba user with permissions to the share directory?

smb.conf
Code:
[home_tim]
   comment =
   path = /home/tim/
   browseable = no
   guest ok = no
   writable = true
   printable = no
   valid users = tim
   invalid users = *
Add samba user:
Code:
smbpasswd -a tim
Then restart samba service.
My System SpecsSystem Spec
.

19 May 2011   #4
sunxiaoyang

windows 7 professional 64bit
 
 

here is my /etc/samba/smb.conf

[home_tim]
comment = tim's home
path = /home/tim/
browseable = yes
guest ok = yes
writable = yes


I just try to allow anyone to access it.
My System SpecsSystem Spec
19 May 2011   #5
TCG

 
 

If you do it like that then what you'll have to do is make sure that the user "nobody" has permissions to the "path" directory specified. Otherwise your samba share will be "read only" for anyone that connects to it as they'll be running as the "nobody" user.

Code:
[home_tim]
comment = tim's home
path = /home/tim/
available = yes
browseable = yes
writable = true
guest ok = yes
security = share
My System SpecsSystem Spec
19 May 2011   #6
sunxiaoyang

windows 7 professional 64bit
 
 

some good news, some bad news.

1. I find selinux will prevent some ftp/samba access home directory on CentOS.
So I enable home directory sharing by
setsebool -P samba_enable_home_dirs 1

with this, if I use ftp 192.168.0.102, it works and can list out the home directory. of course, you need to key in
the username/password.

2. Now my laptop can see the hostname of the linux PC

3. Try either way of #3 and #5, it still does not work. attached is what windows7 tells me.


Attached Images
fail to connect to samba on centOS 5.6-error.png 
My System SpecsSystem Spec
19 May 2011   #7
sunxiaoyang

windows 7 professional 64bit
 
 

I also follow this article:
Access FTP sites natively in Windows 7 | Redmond Pie

to map the directory in windows 7 explorer. But it does not work. Windows 7 allows me to map the driver. But shows nothing under the ftp-server.

Here is comparison. Using ftp in "cmd" console.

C:\Users\Tim>ftp 192.168.0.102
Connected to 192.168.0.102.
220 (vsFTPd 2.0.5)
User (192.168.0.102none)): tim
331 Please specify the password.
Password:
230 Login successful.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
Desktop
Public
readme.tim
tools
226 Directory send OK.
ftp: 41 bytes received in 0.00Seconds 41000.00Kbytes/sec.
ftp> bye
221 Goodbye.

and attached is the windows 7 explorer. you can see the directory can not be "expand" and nothing shown in right-hand panel.


Attached Images
fail to connect to samba on centOS 5.6-error.png 
My System SpecsSystem Spec
Reply

 fail to connect to samba on centOS 5.6




Thread Tools




Similar help and support threads
Thread Forum
Can't connect to Samba share from Win 7 ultimate 64-bit
I know this is an old story, a problem with many different solutions on line. I've tried 'em all and none have worked for me yet. I'm hoping someone can give another suggestion. I have an old Red Hat Linux box that I use, amongst other things, to run Samba. Vista and Win XP PCs can access the...
Network & Sharing
Keep getting access denied when trying to connect to Samba share
I have a Linux machine that I use as a home server. I know the username and password are the same as on my Win7 Ultimate x64 PC. I can see all the shares, but when I try to connect, using Windows Explorer, and enter the password, it continuously tells me "Access Denied". (See attachment) I...
Network & Sharing
Updates Fail, Slow Response, Fail to Connect to a Windows Service, etc
Hi, l've been having a constant issue with my computer and I can't seem to get out of this trouble no matter how many times I reinstall and even wipe out my hard drive. I wiped out everything in my hard drive and installed windows 7 Ultimate for the '7th' time, and the same problems happen every...
Windows Updates & Activation
Win 7 Home - unable to connect to samba server
I am currently installing a Win 7 box. When I first set things up I was able to get onto my Linux server in Network -> , by logging in to Win 7 using the same user name and password set up on the Linux box. A short while later I am unable to connect - I get a dialog prompting me to enter a user...
Network & Sharing
Can't connect to samba share via name; ip works
I'm unable to connect to a samba share on a FreeBSD (via FreeNAS) box when using the machine name. The message it gives me is "The account is not authorized to log in from this station". The share is in anonymous mode; there's on restrictions. If I try to connect to the same share via it's...
Network & Sharing
Can't connect to samba share
I'm trying to connect to a samba share hosted on OS X 10.4. The connection works fine, using my domain account to logon when using Windows XP (in fact, it automatically uses my domain credentials). However, if I try to use Windows 7 to connect, I get an access denied error, saying my...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:18.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App