On Wed, 25 Feb 2015 19:48:07 +0000 Rowland Penny <rowlandpenny at googlemail.com> wrote:> As for creating users & groups, samba 4 comes with 'samba-tool' for > more info on this, run 'samba-tool --help' or 'samba-tool user add > --help', you can also run 'man samba-tool' > > Rowland >Nothing in the samba-tool man page speaks to setting a specific UID for a specific USER. Please show me the passage in the samba-tool docs that speak to this. I am on 4.1.17. I could be wrong, but I believe I am finding documentation bugs and shortcomings. It would make sense for the project to fix documentation if it leaves systems staff uninformed after reading it. Thank you. -Brett -- wynkoop at wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6925 929-272-0000 Amendment I Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof; or abridging the freedom of speech, or of the press; or the right of the people peaceably to assemble, and to petition the government for a redress of grievances.
On 02/26/2015 02:31 PM, Brett Wynkoop wrote:> On Wed, 25 Feb 2015 19:48:07 +0000 > Rowland Penny <rowlandpenny at googlemail.com> wrote: > >> As for creating users & groups, samba 4 comes with 'samba-tool' for >> more info on this, run 'samba-tool --help' or 'samba-tool user add >> --help', you can also run 'man samba-tool' >> >> Rowland >> > > Nothing in the samba-tool man page speaks to setting a specific UID for > a specific USER. Please show me the passage in the samba-tool docs > that speak to this. I am on 4.1.17. > > I could be wrong, but I believe I am finding documentation bugs and > shortcomings. It would make sense for the project to fix documentation > if it leaves systems staff uninformed after reading it. > > Thank you. > > -Brett > >It's documented within samba-tool's builtin help... "samba-tool user add --help" will show that info. I do agree that info should be in the man page, and may in fact be in there with 4.2. -- John Yocum, Systems Administrator, DEOHS
On 26/02/15 22:31, Brett Wynkoop wrote:> On Wed, 25 Feb 2015 19:48:07 +0000 > Rowland Penny <rowlandpenny at googlemail.com> wrote: > >> As for creating users & groups, samba 4 comes with 'samba-tool' for >> more info on this, run 'samba-tool --help' or 'samba-tool user add >> --help', you can also run 'man samba-tool' >> >> Rowland >> > Nothing in the samba-tool man page speaks to setting a specific UID for > a specific USER. Please show me the passage in the samba-tool docs > that speak to this. I am on 4.1.17. > > I could be wrong, but I believe I am finding documentation bugs and > shortcomings. It would make sense for the project to fix documentation > if it leaves systems staff uninformed after reading it. > > Thank you. > > -Brett > >Try 'samba-tool user add --help' All the info you require is there. Rowland
On 26/02/15 22:35, John Yocum wrote:> On 02/26/2015 02:31 PM, Brett Wynkoop wrote: >> On Wed, 25 Feb 2015 19:48:07 +0000 >> Rowland Penny <rowlandpenny at googlemail.com> wrote: >> >>> As for creating users & groups, samba 4 comes with 'samba-tool' for >>> more info on this, run 'samba-tool --help' or 'samba-tool user add >>> --help', you can also run 'man samba-tool' >>> >>> Rowland >>> >> Nothing in the samba-tool man page speaks to setting a specific UID for >> a specific USER. Please show me the passage in the samba-tool docs >> that speak to this. I am on 4.1.17. >> >> I could be wrong, but I believe I am finding documentation bugs and >> shortcomings. It would make sense for the project to fix documentation >> if it leaves systems staff uninformed after reading it. >> >> Thank you. >> >> -Brett >> >> > It's documented within samba-tool's builtin help... "samba-tool user add > --help" will show that info. I do agree that info should be in the man > page, and may in fact be in there with 4.2. >I actually pointed him at 'samba-tool user add --help' and when I replied to the list I inadvertently sent an email to him as well and just got this: Delivery to the following recipient failed permanently: wynkoop+samba at wynn.com Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the server for the recipient domain wynn.com by wa3yre.wynn.com. [199.89.147.3]. The error that the other server returned was: 554 5.7.1 Mail (42499-06917) appears to be unsolicited - resend the mail with 622ARANDOM appended to the subject and contact postmaster at wynn.com for resolution So the OP wants help but only on his terms. Rowland
On Thu, 26 Feb 2015 14:35:27 -0800 John Yocum <jtyocum at uw.edu> wrote:> > It's documented within samba-tool's builtin help... "samba-tool user > add --help" will show that info. I do agree that info should be in > the man page, and may in fact be in there with 4.2. >Thank you for that. It would seem I am finding documentation bugs. No wonder this has become such a beast to deal with. -Brett -- wynkoop at wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt 917-642-6925 929-272-0000 Gun Control: The theory that a woman found dead in an alley, raped and strangled with her own pantyhose, is somehow morally superior to a woman explaining to police how her attacker got that fatal bullet wound
-----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-----
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).