LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2010, 08:36 AM   #1
vicky7038
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Rep: Reputation: Disabled
Question 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.
 
Old 10-12-2010, 09:17 AM   #2
rn_
Member
 
Registered: Jun 2009
Location: Orlando, FL, USA
Distribution: Suse, Redhat
Posts: 127
Blog Entries: 1

Rep: Reputation: 25
are you able to ping your linux system from the window box? are they on the same subnet/ip-address-range?
 
Old 10-12-2010, 09:49 AM   #3
the dsc
Member
 
Registered: May 2009
Distribution: Debian
Posts: 175
Blog Entries: 243

Rep: Reputation: 47
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".
 
Old 10-12-2010, 11:44 AM   #4
CrazyToon
LQ Newbie
 
Registered: Jun 2003
Posts: 21

Rep: Reputation: 0
@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.
 
Old 10-12-2010, 10:49 PM   #5
aries_baluyot
Member
 
Registered: Oct 2010
Location: India
Distribution: Mandriva, Suse, Ubuntu, Centos, Maemo, Omnia Xp
Posts: 86

Rep: Reputation: -11
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
 
Old 10-13-2010, 12:08 AM   #6
vicky7038
LQ Newbie
 
Registered: Aug 2008
Posts: 18

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't edit files while using ssh to remotely access linux server from a Windows comp soundersfc Linux - Newbie 3 10-11-2010 01:48 PM
[SOLVED] [SAMBA] How to track windows user access , create files /modify files on linux SMB efciem Linux - Server 2 05-16-2010 08:45 AM
[SOLVED] How to access windows files & folders from Enterprise Linux Server hnpat Linux - Newbie 4 09-23-2009 05:56 AM
[SOLVED] how to share files in linux server & access them from windows xp machine m.anand80 Linux - Newbie 5 08-20-2009 05:12 AM
To access files on SAMBA installed Linux from Windows ahmed73 SUSE / openSUSE 1 02-27-2008 01:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration