[Samba] Back with my UID problems

Rowland Penny rowlandpenny at googlemail.com
Thu Feb 26 17:18:24 MST 2015


On 26/02/15 23:30, Brett Wynkoop wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, 26 Feb 2015 22:41:58 +0000
> Rowland Penny <rowlandpenny at googlemail.com> wrote:
>
>> Try 'samba-tool user add --help'
>> All the info you require is there.
>>
>> Rowland
>>
> Still fail:
>
> Used pdbedit to remove the previous user wynkoop
>
> used samba-tool to add user wynkoop with specific UID and GID
>
> I then connected as user wynkoop with smbclient and uploaded a file
> to /archive/test
>
>
> root at prd2:/usr/local/etc # samba-tool user add wynkoop --gid-number=34
> - --uid=34 --gecos="Brett Wynkoop" --login-shell=/usr/local/bin/bash
> - --home-directory=/home/wynkoop New Password: Retype Password:
> Processing section "[netlogon]"
> Processing section "[sysvol]"
> Processing section "[archive]"
> pm_process() returned Yes
> You are setting a Unix/RFC2307 UID or GID. You may want to set
> 'idmap_ldb:use rfc2307 = Yes' to use those attributes for
> XID/SID-mapping. User 'wynkoop' created successfully
> root at prd2:/usr/local/etc # cd /archive/test root at prd2:/archive/test #
> ls -l total 3
> - -rw-r--r--  1 3000014  wheel  6148 Feb 22 03:37 .DS_Store
> - -rw-r--r--  1 3000011  wheel   381 Feb 26 18:18 profile
> root at prd2:/archive/test #
>
> Needless to say where it says 3000011 I expect it to see wynkoop since
> I am in the local password file on that system with UID 34.
>
> - -Brett
>
> - -- 
>
> wynkoop at wynn.com               http://prd4.wynn.com/wynkoop/pgp-keys.txt
> 917-642-6925
> 929-272-0000
>
> If cowardly and dishonorable men sometimes shoot unarmed men with army
> pistols or guns, the evil must be prevented by the penitentiary and
> gallows, and not by a general deprivation of a constitutional privilege.
>
> - -Honorable J. A. Williams, Circuit Judge -
>                    Wilson v. State, 33 Ark. 557, 34 Am. Rep. 52 (1878).
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBAgAGBQJU76ynAAoJEK6K3yrc+RuDrz4H/2r7lqAZnEZPT6oIVHL82smM
> lUUMVOcUWQjaInP0VxuMoHDSHPkDC076dD2SkiH5zZ+xwKUl8rjfb/SGc55aFved
> BU6wOt7vCXGzdRpD5Umtw12uS8syi0OpjHr+Uy2+dboNPo8+Tvfkw5xduhXweV7c
> x6jBbTzy2mq72dciNKXnMsO7hzpERZ9LPaKJ7BaIObRmxoYqRwndW3J3nLPc2XEH
> I2A906M1+JJFTYNxDLAM+1eKmXa7EaNc9iWqUQiw/zKNo2PZ8VSjtdqnVKXObt3/
> UXgjK0k2gOlX4pVjbUoJa+mY1/nUYUHe+tcEy5/1fLwwwlaBBJgEhEMzmiZIn/I=
> =lcHk
> -----END PGP SIGNATURE-----

34, you are seriously using 34 for a standard user id number ? You 
shouldn't use anything below 1000 for a normal user, these low numbers 
are reserved for system use and you have run into a problem that can 
only be fixed by not using such low numbers. The 3000014 number is 
coming from idmap.ldb but the group number is coming from /etc/group (or 
whatever it is called on freebsd)

Rowland


More information about the samba mailing list