How to configure samba server to access Linux files from Windows
Hi guys,
I am new to Linux and want to setup Samba server in my CentOS 5.3. I have downloaded samba server from yum repository with command yum install samba I then followed the steps which i got by some googling on http://crazytoon.com/2007/05/22/samb...centos-fedora/ this site which contains steps like: cd /etc/samba mv smb.conf smb.conf.backup vi smb.conf Paste content below in to your vi: [global] workgroup = wrkgrp netbios name = smbserver security = SHARE load printers = No default service = global path = /home available = No encrypt passwords = yes [share] writeable = yes admin users = smbuser path = /home/share force user = root valid users = smbuser public = yes available = yes save and exit adduser smbuser #add unix account passwd smbuser #set unix account password smbpasswd -a smbuser #lets create same user account on samba <put same password as your unix account password> /etc/init.d/smb restart Now let us setup drive letter on our Windows so we can easily access these files. Start -> run -> cmd <enter> At the prompt type: net use z: \\ip_of_your_samba_server\share /user: smbuser password_you_assigned But i get an error while connecting this from windows as System error 67 has occurred. The network name cannot be found. How to resolve it can u guys please tell me? My computer is connected with LAN network with other computers. |
are you able to ping your linux system from the window box? are they on the same subnet/ip-address-range?
|
I'm not sure it's a good idea to have the samba users as root.
I've never tried this thing of mapping the linux share on windows as a drive letter. Did the share work when you go "normally" to it, through " windows explorer > my network " or whatever it is? The comments on the blog you posted may be helpful too. Someone said, "be sure that the shared folder actually exists". |
@the dsc: running with root is not a good idea in production. The blog I posted was to get users started and take it from there. A lot of the users who have used this is probably (I am just guessing here) using it at home to share files between computers.
@vicky7038: You can check the firewall by looking at "iptables -L" output. Also, check (as @the dsc mentioned) if that folder you shared actually exists. You should also check the windows box and see if it has any firewall or ip filtering type of thing on it. |
to access samba server in linux. Click Places>Connect to Server>select in service type "Windows Share"
Iam using linux Mandriva or to have a shareddocs in linux you should install samba server it is in the control panel of linux |
I am using putty to configure it. The CentOS machine is Virtual Machine in our network and having IP of our network only and the folder i have share is there in linux.
One thing i m confused is with the smb.conf file is that we are not using any workgroup but our computers contains its specific domain like e.g. fps.xxx.com (which i checked by right clicking on "My Computer" on windows machine). I don't configure samba server from GUI , i use only putty to work on that from my windows machine. |
All times are GMT -5. The time now is 02:30 PM. |