[Samba] Can't access shares - additional information

Carl Carpenter ccarpenter at hillcountry.org
Fri Mar 14 14:46:17 GMT 2008


I realized I forgot to include my smb.conf file:

[root at custer etc]# testparm -s
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[tmp]"
Processing section "[Intranet]"
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
[global]
        workgroup = HCCMHMRC
        server string = Intranet
        security = DOMAIN
        password server = colnago
        log file = /var/log/samba/%m.log
        max log size = 50
        preferred master = No
        dns proxy = No
        wins server = 192.168.0.7
        default service = Intranet
        cups options = raw

[homes]
        comment = Home Directories
        read only = No

[printers]
        comment = All Printers
        path = //var/spool/samba
        printable = Yes
        browseable = No

[tmp]
        comment = Temporary file space
        path = /tmp
        read only = No
        guest ok = Yes

[Intranet]
        path = /var/www/html
        read only = No
        create mask = 0774
        directory mask = 0775
        guest ok = Yes

I can access the tmp share and the Printer share.  This tells me that there
is not an issue finding the Samba server.

Permissions on Intranet share (/var/www/html):

[root at custer www]# pwd
/var/www
[root at custer www]# ls -al html
total 16
drwxrwxr-x 2 apache www-data 4096 Sep 18 10:27 .
drwxr-xr-x 8 root   root     4096 Sep 18 10:27 ..

Ccarpenter is a member of www-data.

I cleared out the samba log for my machine.  Then I tried to access the
Intranet share.  It asked for username and password which, of course,
failed.  Here's the contents of the log after that attempt.

[2008/03/14 09:39:23, 1] smbd/ipc.c:api_fd_reply(290)
  api_fd_reply: INVALID PIPE HANDLE: 72df
[2008/03/14 09:39:35, 1] smbd/service.c:make_connection_snum(950)
  osc00062 (192.168.0.101) connect to service Intranet initially as user
ccarpenter (uid=501, gid=501) (pid
6070)
[2008/03/14 09:39:37, 1] smbd/service.c:close_cnum(1150)
  osc00062 (192.168.0.101) closed connection to service Intranet
[2008/03/14 09:39:49, 1] smbd/service.c:make_connection_snum(950)
  osc00062 (192.168.0.101) connect to service Intranet initially as user
ccarpenter (uid=501, gid=501) (pid
6071)
[2008/03/14 09:39:57, 1] smbd/service.c:close_cnum(1150)
  osc00062 (192.168.0.101) closed connection to service Intranet
[root at custer samba]# tail -40 osc00062.log
[2008/03/14 09:39:23, 1] smbd/ipc.c:api_fd_reply(290)
  api_fd_reply: INVALID PIPE HANDLE: 72df
[2008/03/14 09:39:35, 1] smbd/service.c:make_connection_snum(950)
  osc00062 (192.168.0.101) connect to service Intranet initially as user
ccarpenter (uid=501, gid=501) (pid
6070)
[2008/03/14 09:39:37, 1] smbd/service.c:close_cnum(1150)
  osc00062 (192.168.0.101) closed connection to service Intranet
[2008/03/14 09:39:49, 1] smbd/service.c:make_connection_snum(950)
  osc00062 (192.168.0.101) connect to service Intranet initially as user
ccarpenter (uid=501, gid=501) (pid
6071)
[2008/03/14 09:39:57, 1] smbd/service.c:close_cnum(1150)
  osc00062 (192.168.0.101) closed connection to service Intranet

Then, looking through Webmin at the connections, I see this:

 	6097 	IPC$ 	ccarpenter 	ccarpenter 	osc00062 	Fri
Mar 14 09:43:38 2008 	None

Which also coincides with the appearance of the Printers share which is not
visible when I first open Custer through Network Neighborhood.

Is this an old problem that I'm supposed to find the answer in an obvious
place, or has it stumped everyone out there?

Carl Carpenter
IT Manager
Hill Country Community MHMR Center
(830)258-5414
 

> -----Original Message-----
> From: 
> samba-bounces+ccarpenter=hillcountry.org at lists.samba.org 
> [mailto:samba-bounces+ccarpenter=hillcountry.org at lists.samba.o
> rg] On Behalf Of Carl Carpenter
> Sent: Thursday, March 13, 2008 3:10 PM
> To: samba at lists.samba.org
> Subject: [Samba] Can't access shares
> 
> 
> Running FC6 and Samba 3.0.24-11.fc6.
> Workstation is XP Pro
> 
> Initially, after disabling SELinux and turning off Iptables, 
> I could access the shares that were set up.  Came in this 
> morning ready to start copying files and can't get in.  
> Prompts me for a username and password which is rejected.  I 
> know it's not my workstation because I have another FC6/Samba 
> server running and have no problem getting to it.  Here's 
> what else I know:
> 
> 1.  Samba log for my machine shows no errors.  In fact, shows 
> me as connected.  
> 
> 2.  Viewing connections to Samba through Webmin shows me as connected.
> 
> 3.  Testing from the console connects me.
> 
> smbclient //Custer/ccarpenter -U ccarpenter
> Password:
> Domain=[HCCMHMRC] OS=[Unix] Server=[Samba 3.0.24-11.fc6]
> smb: \>
> 
> 4.  From the DOS prompt on my workstation, I can ping the 
> Samba server by name.  When I do a net view \\Custer it shows 
> the shares.  When I do net use
> m: \\Custer\Intranet it prompts me for a username and 
> password and then fails.
> 
> I have added user=ccarpenter to the share--no effect.  As far 
> as I know, I didn't make any changes to Samba after I got it working. 
> 
> It's probably something simple, but what am I missing?
> 
> Carl Carpenter
> IT Manager
> Hill Country Community MHMR Center
> (830)258-5414
>  
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
> 



More information about the samba mailing list