Re: samba user uid failure?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 5, 2010 at 4:17 AM, Gregory Woodbury <redwolfe@xxxxxxxxx> wrote:
> On Sun, Dec 5, 2010 at 2:10 AM, Tom H <tomh0665@xxxxxxxxx> wrote:
>>
>> On Sat, Dec 4, 2010 at 11:18 PM, Gregory Woodbury <redwolfe@xxxxxxxxx>
>> 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@wolves samba]# id ggw
> uid=501(ggw) gid=501(ggw) groups=501(ggw),10(wheel)
>
> [root@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@wolves samba]# pdbedit -Lw -u ggw
> ggw:501
>
> [root@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?
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux