RE: [squid-users] winbind directories permissions issue

From: <vincent.blondel_at_ing.be>
Date: Mon, 15 Dec 2008 10:30:33 +0100

...
Amos

I made some cut from our previous posts to avoid any confusion.

>
>
>Sorry I haven't had much to do with winbind than we have already tried.
>you are the first I've seen where these fixes have not worked.
>
>Can you get a full "ls -la" trace of the directory content and
permissions
>at a time where it's working, and one where its not? Also a list of the
>squid user name and the groups names it belongs to.
>

$ egrep 'squid|winbin' /etc/passwd /etc/group
/etc/passwd:squid:x:1560:1560:SQUID user:/home/SQUID:/bin/ksh
/etc/group:squidg::1560:
/etc/group:winbind::2222:squid

Below what happended on one of my machine .. sbepskdd.

some minutes before the bug occured ..

$ ls -nai /var/lib/samba
total 121612
    162445 drwxr-x--- 5 0 2222 512 Dec 15 04:14 .
    330886 drwxr-xr-x 5 0 0 512 Nov 17 19:39 ..
    162448 -rw-r----- 1 0 2222 8192 Dec 15 04:14
gencache.tdb
    162450 -rw-r----- 1 0 2222 696 Nov 17 19:39
idmap_cache.tdb
    168469 drwxr-x--- 4 0 2222 512 Nov 17 19:39 locks
    162451 -rw-r----- 1 0 2222 8192 Dec 14 22:06
messages.tdb
    162454 -rw-r----- 1 0 2222 62144512 Dec 15 08:41
netsamlogon_cache.tdb
     54155 drwxr-x--- 2 0 2222 512 Dec 15 04:14
smb_krb5
    162453 -rw------- 1 0 0 57344 Nov 25 06:49
winbindd_cache.tdb
    451222 drwxr-x--- 2 0 2222 512 Nov 25 06:47
winbindd_privileged

$ ls -nai /var/lib/samba/winbindd_privileged
total 4
    451222 drwxr-x--- 2 0 2222 512 Nov 25 06:47 .
    162445 drwxr-x--- 5 0 2222 512 Dec 15 04:14 ..
    451223 srwxrwxrwx 1 0 0 0 Nov 25 06:47 pipe

when SQUID is still running but the bug is happening ..

$ ls -nai /var/lib/samba
total 122140
    162445 drwxr-x--- 5 0 2222 512 Dec 15 04:14 .
    330886 drwxr-xr-x 5 0 0 512 Nov 17 19:39 ..
    162448 -rw-r----- 1 0 2222 8192 Dec 15 04:14
gencache.tdb
    162450 -rw-r----- 1 0 2222 696 Nov 17 19:39
idmap_cache.tdb
    168469 drwxr-x--- 4 0 2222 512 Nov 17 19:39 locks
    162451 -rw-r----- 1 0 2222 8192 Dec 14 22:06
messages.tdb
    162454 -rw-r----- 1 0 2222 62414848 Dec 15 10:04
netsamlogon_cache.tdb
     54155 drwxr-x--- 2 0 2222 512 Dec 15 04:14
smb_krb5
    162453 -rw------- 1 0 0 57344 Nov 25 06:49
winbindd_cache.tdb
    451222 drwxr-x--- 2 0 2222 512 Nov 25 06:47
winbindd_privileged

$ ls -nai /var/lib/samba/winbindd_privileged
total 4
    451222 drwxr-x--- 2 0 2222 512 Nov 25 06:47 .
    162445 drwxr-x--- 5 0 2222 512 Dec 15 04:14 ..
    451223 srwxrwxrwx 1 0 0 0 Nov 25 06:47 pipe

just after restart of SQUID process ..

$ ls -nai /var/lib/samba
total 122140
    162445 drwxr-x--- 5 0 2222 512 Dec 15 04:14 .
    330886 drwxr-xr-x 5 0 0 512 Nov 17 19:39 ..
    162448 -rw-r----- 1 0 2222 8192 Dec 15 04:14
gencache.tdb
    162450 -rw-r----- 1 0 2222 696 Nov 17 19:39
idmap_cache.tdb
    168469 drwxr-x--- 4 0 2222 512 Nov 17 19:39 locks
    162451 -rw-r----- 1 0 2222 8192 Dec 14 22:06
messages.tdb
    162454 -rw-r----- 1 0 2222 62414848 Dec 15 10:04
netsamlogon_cache.tdb
     54155 drwxr-x--- 2 0 2222 512 Dec 15 04:14
smb_krb5
    162453 -rw------- 1 0 0 57344 Nov 25 06:49
winbindd_cache.tdb
    451222 drwxr-x--- 2 0 2222 512 Nov 25 06:47
winbindd_privileged

$ ls -nai /var/lib/samba/winbindd_privileged
total 4
    451222 drwxr-x--- 2 0 2222 512 Nov 25 06:47 .
    162445 drwxr-x--- 5 0 2222 512 Dec 15 04:14 ..
    451223 srwxrwxrwx 1 0 0 0 Nov 25 06:47 pipe

Now another notice, I made a change last tuesday on another SQUID server
and this seems working almost one week ..

$ ls -nai /var/lib/samba
total 78156
    342924 drwxr-xr-x 5 0 2222 512 Dec 15 04:22 .
     66177 drwxr-xr-x 5 0 0 512 Nov 18 01:34 ..
    342930 -rw-r--r-- 1 0 2222 8192 Dec 15 04:22
gencache.tdb
    342932 -rw-r--r-- 1 0 2222 696 Nov 18 01:34
idmap_cache.tdb
    354946 drwxr-xr-x 4 0 2222 512 Nov 18 01:34 locks
    342933 -rw-r--r-- 1 0 2222 8192 Dec 13 22:06
messages.tdb
    342936 -rw-r--r-- 1 0 2222 39903232 Dec 15 10:20
netsamlogon_cache.tdb
    222599 drwxr-xr-x 2 0 2222 512 Dec 15 04:22
smb_krb5
    342934 -rw------- 1 0 0 57344 Dec 9 10:44
winbindd_cache.tdb
    138380 drwxr-x--- 2 0 2222 512 Dec 9 10:39
winbindd_privileged

$ ls -nai /var/lib/samba/winbindd_privileged
total 4
    138380 drwxr-x--- 2 0 2222 512 Dec 9 10:39 .
    342924 drwxr-xr-x 5 0 2222 512 Dec 15 04:22 ..
    138381 srwxrwxrwx 1 0 0 0 Dec 9 10:39 pipe

I do not understand anything, maybe situation is more clear for you ..

Hope some good news from you ..

>This will be needed by anyone who may be more able to help.
>
>
>Amos
-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------
Received on Mon Dec 15 2008 - 09:30:45 MST

This archive was generated by hypermail 2.2.0 : Mon Dec 15 2008 - 12:00:01 MST