Samba 3.0 to 3.5 on CentOS 6 questions.

Issues related to configuring your network
Post Reply
rothmail
Posts: 40
Joined: 2005/12/27 06:33:34
Location: New York City metro area

Samba 3.0 to 3.5 on CentOS 6 questions.

Post by rothmail » 2011/10/27 07:16:10

I'm been successfully running Samba 3.0.33-3.29.el5_7.4 on CentOS 5.7 on an i386 machine. I'm upgrading the file server to new hardware which is x86_64 and running CentOS 6.0 and Samba Server Version 3.5.4-68.el6_0.2.

I've been having trouble getting Samba to work with CentOS 6.0. I get connection failed and can't mount volume, when trying from the Mac, where I don't have this problem with the old CentOS server.

I have a few questions about all this, which I would appreciate some kind answers too:

Q: Should I use smbpasswd or pdbedit for managing Samba users? Do smbpasswd and pdbedit use the same user database?

Q: When using webmin 1.570 on the old CentOS 5.7 system, I can go to "Edit Samba users and passwords" and it lists a samba user. On CentOS 6.0 with webmin, it lists "No Samba users defined.". even though I have used smbpasswd and pdbedit to add Linux users.

Thanks in advance!

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Samba 3.0 to 3.5 on CentOS 6 questions.

Post by pschaff » 2011/10/27 15:27:03

Can you access the share locally with smbclient? Is SELinux Enforcing? If so might try permissive mode[code]setenforce 0[/code]for testing.

If only using Mac as a client (not clear if that is the case) why not use NFS rather than Samba?

rothmail
Posts: 40
Joined: 2005/12/27 06:33:34
Location: New York City metro area

Re: Samba 3.0 to 3.5 on CentOS 6 questions.

Post by rothmail » 2011/10/28 03:41:54

Thanks for your reply, Phil.

I have more than the Mac to support, Windows and a scanner which requires Samba. A better question might be, why does Samba even exist if we have NFS. :-)

Selinux has been disabled. I turned the firewall off too while I'm testing the new file server.

Here is what I have installed currently for samba on CentOS 6.0, anyone see anything missing?
[code]
# yum list | grep samba
samba.x86_64 3.5.4-68.el6_0.2 @updates
samba-client.x86_64 3.5.4-68.el6_0.2 @updates
samba-common.x86_64 3.5.4-68.el6_0.2 @updates
samba-swat.x86_64 3.5.4-68.el6_0.2 @updates
samba-winbind-clients.x86_64 3.5.4-68.el6_0.2 @updates
samba4-libs.x86_64 4.0.0-23.alpha11.el6 @anaconda-CentOS-201106060106.x86_64/6.0
samba-common.i686 3.5.4-68.el6_0.2 updates
samba-doc.x86_64 3.5.4-68.el6_0.2 updates
samba-domainjoin-gui.x86_64 3.5.4-68.el6_0.2 updates
samba-winbind.x86_64 3.5.4-68.el6_0.2 updates
samba-winbind-clients.i686 3.5.4-68.el6_0.2 updates
samba-winbind-devel.i686 3.5.4-68.el6_0.2 updates
samba-winbind-devel.x86_64 3.5.4-68.el6_0.2 updates
samba4.x86_64 4.0.0-23.alpha11.el6 base
samba4-devel.i686 4.0.0-23.alpha11.el6 base
samba4-devel.x86_64 4.0.0-23.alpha11.el6 base
samba4-libs.i686 4.0.0-23.alpha11.el6 base
samba4-pidl.x86_64 4.0.0-23.alpha11.el6 base
sblim-cmpi-samba.i686 1.0-1.el6 base
sblim-cmpi-samba.x86_64 1.0-1.el6 base
sblim-cmpi-samba-devel.i686 1.0-1.el6 base
sblim-cmpi-samba-devel.x86_64 1.0-1.el6 base
sblim-cmpi-samba-test.x86_64 1.0-1.el6 base[/code][Moderator edit: Added [i]code[/i] tags to preserve formatting.]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: Samba 3.0 to 3.5 on CentOS 6 questions.

Post by pschaff » 2011/10/28 09:54:55

You did not say if local access with smbclient works. I have samba4 installed as well.[code]
# rpm -qa \*samba\* | sort
samba-3.5.6-86.el6_1.4.x86_64
samba4-4.0.0-23.alpha11.el6.x86_64
samba4-libs-4.0.0-23.alpha11.el6.x86_64
samba-client-3.5.6-86.el6_1.4.x86_64
samba-common-3.5.6-86.el6_1.4.x86_64
samba-winbind-clients-3.5.6-86.el6_1.4.x86_64
[/code]
You may want to try updating from the [url=https://www.centos.org/modules/newbb/viewtopic.php?topic_id=33458&forum=53]Continuous Release [cr] repo[/url].

rothmail
Posts: 40
Joined: 2005/12/27 06:33:34
Location: New York City metro area

Re: Samba 3.0 to 3.5 on CentOS 6 questions.

Post by rothmail » 2011/10/29 06:42:17

I decided to start over with a very simple smb.conf file. This worked and smbclient output looked normal.

I added a UNIX user for smb use by adding it via pdbedit. Samba acted like the user wasn't there. I then added the user using smbpasswd -a, and then the user worked with Samba. Today I went to pick-up where I left off and the new Samba user I added stopped working. I looked in pdbedit and it showed the account flag had been changed from U and NU. I then edit a change using pdbedit to get the account flag back to U doing this:
pdbedit -r -c "[]" sambausr
This changed sambausr account flag back to U and it started working again. This is on a new server and I'm the only user on it, so I'm don't understand how it's account flag got changed.
I also don't know what is used to admin the Samba user database, is it smbpasswd or pdbedit, or both?
Through all of this, I am still unable to get the Samba users to appear in webmin's "Edit Samba users and passwords", which shows up and is available to edit on webmin running CentOS 5.7 on i386 where Samba 3.0 is working fine.

What is the relationship of smbpasswd and pdbedit? Are they both editing the same file? Should I be specifying which password file in smb.conf should be used?

Post Reply