[CentOS] Samba problem
Chris Weisiger
cweisiger at bellsouth.net
Sat Oct 5 01:44:53 UTC 2013
You can connect to a samba share without user or password authentication. That's how I have my server setup at my house. I dont know the settings off hand but illpost them shortly
-----Original Message-----
From: Earl Ramirez
Sent: 10/04/13 8:35 PM
To: CentOS mailing list
Subject: Re: [CentOS] Samba problem
On Fri, 2013-10-04 at 18:27 -0500, Joseph Hesse wrote:
> On 10/04/2013 02:39 PM, John R Pierce wrote:
> > On 10/4/2013 12:11 PM, Joseph Hesse wrote:
> >> security = user
> >
> > you'll need to run
> >
> > smbpasswd -a admin
> >
> > on the samba server, and give the 'admin' SMB user a password. Samba
> > can't use the unix /etc/password|shadow combination as the hashes used
> > by SMB aren't compatible.
> >
> >
> I used "smbpasswd "to assign a Samba password to user "admin". My Win7
> virtual machine still couldn't see the share. It is my impression that
> the smb.conf file in the book I am using allows passwordless access to
> the shares.
<snip>
Are you able to authenticate to the samba server from the Windows 7
machine?
> Also, if it helps, here is some more output.
>
> [root at CentOS ~]# smbclient -L localhost -U
> Enter root's password:
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1]
>
> Sharename Type Comment
> --------- ---- -------
> homes Disk Home Directories
> IPC$ IPC IPC Service (CentOS)
> Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1]
>
> Server Comment
> --------- -------
> CENTOS CentOS
> WIN7VM
>
> Workgroup Master
> --------- -------
> WORKGROUP WIN7VM
What is the out put from smbclient -L localhost -U admin?
I saw that you have the home directory enabled, by default SELinux does
not permit access to the home directory, unless you enable the boolean
$ sudo setsebool -P samba_enable_home_dirs on
When you try to access the samba share from the windows 7 machine, what
is happening? Are you being prompt for the credentials?
If you do not have a backup of the smb.conf file, I have placed a copy
from a clean install [0]
[0] http://trinipino.com/share/smb.conf
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
--
Kind Regards
Earl Ramirez
GPG Key: http://trinipino.com/PublicKey.asc
More information about the CentOS
mailing list