Hi I am a new bee to Linux in general. Please accept my apologies if the question is not appropriate. I have a LAN with 2 computers: One is CentOS and one is Windows XP. I am trying to transfer file between 2 computers using LAN. Can you please tell me how to do it? I have tried Samba from the Applications menu. Add a directory in there. Set it to Read only and Allow access to everyone. I couldn't see the CentOS from Windows computer. I have tried the Network Servers. There is Windows Network there. When i click to see inside that, there is nothing. I tried to see the all the services are running. The winbind status is winbindd dead but subsys locked. Thanks a lot for your help. I do appreciate that.
Ha Thai Duong wrote:> Hi > I am a new bee to Linux in general. Please accept my apologies if the > question is not appropriate. > > I have a LAN with 2 computers: One is CentOS and one is Windows XP. > I am trying to transfer file between 2 computers using LAN. Can you > please tell me how to do it? > > I have tried Samba from the Applications menu. > Add a directory in there. Set it to Read only and Allow access to > everyone. I couldn't see the CentOS from Windows computer. > > I have tried the Network Servers. There is Windows Network there. When i > click to see inside that, there is nothing. > > I tried to see the all the services are running. The winbind status is > winbindd dead but subsys locked. > > Thanks a lot for your help. I do appreciate that. > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >"service smb status" will tell you if the services (smbd, nmbd) are running but ... Maybe your firewall is active and blocking your requests; From a root prompt type # service iptables status If the response is "Firewall is stopped" then this is not the problem - however if you get a list of the firewall entries, then try # service iptables status|egrep "445|137|138|139" You should see 4 or so entries listed for the various services related to samba sharing. If you see none, you need to either ; A. stop the firewall (not recommended, but you may want to stop it to confirm that the firewall is the issue) using # service iptables stop (restart it with # service iptables start) B. config the firewall to allow these ports (recommended solution) try /usr/sbin/s set Security Level to "Enabled", Customize, under "Other ports" type "445:tcp 137:udp 138:udp 139:tcp" This should allow all the samba services to ba accessed. Regards, MrKiwi
Ha Thai Duong <duongthaiha at ...> writes:> > Hi > I am a new bee to Linux in general. Please accept my apologies if the > question is not appropriate. > > I have a LAN with 2 computers: One is CentOS and one is Windows XP. > I am trying to transfer file between 2 computers using LAN. Can you > please tell me how to do it? > > I have tried Samba from the Applications menu. > Add a directory in there. Set it to Read only and Allow access to > everyone. I couldn't see the CentOS from Windows computer. > > I have tried the Network Servers. There is Windows Network there. When i > click to see inside that, there is nothing. > > I tried to see the all the services are running. The winbind status is > winbindd dead but subsys locked. > > Thanks a lot for your help. I do appreciate that. >Simplest way - share directory (e.g.)"shared" on Windows PC, then NFS mount it under Linux. On Windows: select folder "shared", set permissions for your username as 'full control', Create sample textfile xyz.txt in the directory to check visibility. Note the machine name of the Windows box (my computer: properties). The machine name can only be used on some networks, but the IP address should always work. Find the IP address of the Windows machine; in a console window type 'ipconfig', note the IP address (e.g. 192.168.1.99). [If you have more than one network interface, it should be that connected to the Linux system!] On the Linux box, as root, 1. create a mountpoint for the Windows directory, e.g. /mnt/shared, make it owned by yourself, group 'users' (chown ... chgrp as root) 2. create a credentials file /home/yourname/.cred for your Windows login, containing text (fill in correct text!) username=yourwindowsloginname password=windowspassword 3. add the following line (it's all one line) to the end of the text file /etc/fstab (you'll need to be root): //<Windows IP address>/shared /mnt/shared smb rw,credentials=/home/yourname/.cred,gid=users,fmask=777,dmask=777 (Your system may allow you to use the machine name instead of the IP) 4. as root, type: mount /mnt/shared, you should then be able to see the file xyz.txt. Using "-v" option to mount might give more info about reason if this is unsuccessful.
>I have a LAN with 2 computers: One is CentOS and one is Windows XP. >I am trying to transfer file between 2 computers using LAN. Can you >please tell me how to do it?For quick informal file transfers between Windows and Linux, I use a program called WinSCP installed on the Windows box (find it as winscp.sourceforge.net). As long as your Linux box will accept SSH sessions, it works really well and gives you the familiar Explorer-type interface. Regards, Paul