samba user uid failure?

Tom H tomh0665 at gmail.com
Sun Dec 5 11:47:46 UTC 2010


On Sun, Dec 5, 2010 at 4:17 AM, Gregory Woodbury <redwolfe at gmail.com> wrote:
> On Sun, Dec 5, 2010 at 2:10 AM, Tom H <tomh0665 at gmail.com> wrote:
>>
>> On Sat, Dec 4, 2010 at 11:18 PM, Gregory Woodbury <redwolfe at gmail.com>
>> wrote:
>> >
>> > samba has begun acting strangely.  I'm using it to share a filesystem to
>> > an
>> > XP client and the logs are showing:
>> >
>> > [2010/12/04 22:55:05.112604,  1]
>> > smbd/service.c:1070(make_connection_snum)
>> > tembo (::ffff:10.11.12.2) connect to service karaoke  initially as user
>> > ggw (uid=0, gid=501) (pid 19445)
>> >
>> > The problem is that ggw should not be set to uid=0
>> >
>> > I've tried to smbpasswd add the ggw user, but /etc/samba/smbuser isn't
>> > being updated.
>> >
>> > Installed version of samba is:
>> > Name        : samba
>> > Arch        : x86_64
>> > Version     : 3.5.6
>> > Release     : 71.fc14
>> > Size        : 17 M
>> > Repo        : installed
>> > From repo   : updates-testing
>>
>> What's the output of
>> id ggw
>> pdbedit -Lv -u ggw
>> pdbedit -Lw -u ggw
>> testparm -s --parameter-name 'passdb backend'
>
> [root at wolves samba]# id ggw
> uid=501(ggw) gid=501(ggw) groups=501(ggw),10(wheel)
>
> [root at wolves samba]# pdbedit -Lv -u ggw
> Unix username:        ggw
> NT username:
> Account Flags:        [U          ]
> User SID:             S-1-5-21-2964259807-1119642270-1169463996-1001
> Primary Group SID:    S-1-5-21-2964259807-1119642270-1169463996-513
> Full Name:            ggw
>
> [root at wolves samba]# pdbedit -Lw -u ggw
> ggw:501
>
> [root at wolves samba]#  testparm -s --parameter-name 'passdb backend'
> tdbsam

>From the last, it's clear why "/etc/samba/smbuser" isn't updated. With
tdbsam, the user file is passdb.tdb and it's in either
"/var/lib/samba" or "/var/lib/samba/private" (I've forgotten which).

>From the first two, ggw looks OK.

Do you have a "username map" stanza in the global section or a "force
user" or "admin users" stanza in the share section?


More information about the users mailing list