Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-23-2008, 09:18 PM   #1
Registered: Dec 2005
Posts: 51

Rep: Reputation: 15
Setting up Samba

I setup samba on my CentOS box with a regular:

# yum install samba

then I configured the configuration like so...

workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
writeable = yes
admin users = smbuser
path = /home/share
force user = root
valid users = smbuser
public = yes
available = yes

then afterwards I added a user called smbuser and then set a password for it. Then I also setup the same smbuser for using smbpasswd -a smbuser.

Then a start/restart call (service smb restart)

So far everything looks fine, but the actual connectivity to that server doesn't work when I added from Windows XP (\\ip\share).

I tried resetting the firewall, but nothing seems to work.

Any ideas?
Old 04-23-2008, 09:20 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So what happens when you try and connect from Windows?
Old 04-24-2008, 12:23 AM   #3
Registered: Dec 2005
Posts: 51

Original Poster
Rep: Reputation: 15
Well the connection lags as if it has to wait (some sort of server or even client timeout).

Then it returns the message that the folder \\ip\share is not accessible. You might not have permissions to access this network resource. Contact the administrator for permission.

Anyways I think that I have the windows aspect semi-correct - I just need to figure out how to get the login credentials into the connection from windows to linux.

I would assume that Windows would open a login terminal window that asks for the username and password. Or does that need to be configured within the smb.conf file?
Old 04-24-2008, 12:41 AM   #4
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
When you try to map the drive, is there an option below "reconnect at login" to connect as a different user?

You shoudl be able to put the username in there.

Also check directory permissions on the server, and test it with SELinux temporarily disabled (setenforce 0)
Old 04-24-2008, 01:51 AM   #5
LQ Guru
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
That setup is bad because you are telling every user to be root in their own directory. Also the security is set to share and probably one of the reasons why it is not working. If you want your setup to work, you need users for the security option. I do not suggest putting path in global. The section global is the default settings for your smb/cifs server that will be applied to each shared directory.

I suggest refer to the example smb.conf file. I also suggest use webmin to help setup samba.

A good site that has informative howtos is at the following URL.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Setting Samba up-> sharptech Linux - Networking 6 02-15-2007 02:05 PM
Setting up Samba under 5.0.4 Linux31 Ubuntu 2 07-03-2005 11:37 PM
Samba in AD setting SocialEngineer Linux - Networking 1 10-23-2004 01:52 AM
Setting Up Samba tapanga Linux - Newbie 13 10-26-2003 11:07 PM
Setting up samba... AMMullan Linux - Software 3 10-26-2003 07:13 AM > Forums > Linux Forums > Linux - Software

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

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