LinuxQuestions.org
Review your favorite Linux distribution.
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 04-23-2008, 09:18 PM   #1
matsko
Member
 
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...

[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

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
billymayday
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
matsko
Member
 
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
billymayday
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
Electro
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.

http://www.linuxtopia.org/
 
  


Reply


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


All times are GMT -5. The time now is 09:33 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration