On Fri, 2013-10-04 at 14:27 -0500, Joseph Hesse wrote:
On 10/04/2013 02:15 PM, Earl Ramirez wrote:
On Fri, 2013-10-04 at 14:11 -0500, Joseph Hesse wrote:
Hello,
I am trying to learn how to use Samba. I first just want to get it to work, then I'll make it better. I am not concerned about security since everything is on a private network. I am following the material in "CentOS 6 Linux Server Cookbook" by Jonathan Hobson. I am using two virtual computers with Virtual Box running on Fedora 19. Both virtual computers have bridged networking. One virtual computer is Win7, the other is CentOS 6.4. They are both up to date. There is only one user, "admin", on the CentOS virtual computer.
The Win7 computer can successfully ping the CentOS computer.
My Win7 computer can not see the share on the Samba server.
The command "# testparm" shows no errors.
The command below gives the following error:
[admin@CentOS ~]$ smbclient //CentOS/admin Enter admin's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.9-151.el6_4.1] tree connect failed: NT_STATUS_ACCESS_DENIED
My smb.conf file, below, is taken from the book I am using.
Any suggestions or help would be much appreciated.
Thank you, Joe Hesse
[global] unix charset = UTF-8 dos charset = CP932 workgroup = WORKGROUP server string = CentOS netbios name = CentOS dns proxy = no wins support = no interfaces = 127.0.0.0/8 192.168.0.0/24 eth0 bind interfaces only = no log file = /var/log/samba/log.%m max log size = 1000 syslog only = no syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = tdbsam obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\ spassword:* %n\n *password\supdated\ssuccessfully* . pam password change = yes map to guest = bad user usershare allow guests = no domain master = no local master = no preferred master = no os level = 8 [homes] comment = Home Directories browseable = yes writable = yes valid users = %S create mask =0755 directory mask =0755 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hello Joseph,
Is the samba service runing?
$ service smb start $ service nmb start
You will also need to configure the firewall for the following ports, 137, 138, 139 and 445.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Both services are running. I checked with "service smb status" and "service nmb status" Also checked with chkconfig --list The ports are open. I checked with "system-config-firewall" and the ports for Samba and Samba Client are open. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Did you create the a samba account "admin", to test you can do the following $ smbclient -L localhost -U "sambausername"
You will also need to check the SELinux label for the directory that you are sharing.
Kind Regards Earl Ramirez GPG Key: http://trinipino.com/PublicKey.asc