[Samba] Back with my UID problems
wynkoop+samba at wynn.com
Thu Feb 26 17:12:03 MST 2015
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.
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
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.
wynkoop at wynn.com http://prd4.wynn.com/wynkoop/pgp-keys.txt
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).
More information about the samba