Re: Wie die numerische Userid anzeigen?



Helmut Schneider schrieb:
> Burkhard Schultheis (schultheis@xxxxxxxxxxxxx) wrote:
>
>
>>Wenn ich in der Cygwin-Bash uid aufrufe, bekomme ich als Userid 1000.
>>Mache ich das in einer Shell der SFU, erhalte ich eine ganz andere uid.
>>Der Benutzername ist aber gleich. Kann ich mit Windows-Bordmitteln die
>>numerische Userid anzeigen?
>
>
> Ich hab keine Ahnung, welche ID SFU reportet und nachdem Du uns die
> verschweigst, kann ich nur raten:
> Cygwin liefert die UNIX UID, während SFU die Windows SID liefert.
>
> http://www.sysinternals.com/Utilities/PsGetSid.html
>

PsGetSid liefert einen langen String, der bis zur letzten Zifferngruppe
für den Administrator und mich gleich ist. Die letzte Gruppe ist 500
bzw. 1000, so dass also die Bash wohl richtig liegt. ksh liefert 197608.

Danke für die Hilfe. Allerdings hatte ich gedacht, auch Windows selbst
könne einem die Userid verraten. Aber da muss man wohl in der Registry
suchen. :-(

Grüße,
--
Burkhard Schultheis
Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim
Email: schultheis@xxxxxxxxxxxxx
Phone: +49 7245 9287-21
.



Relevant Pages

  • Re: USS/OMVS chown weirdness!
    ... chown does not set a file owner to a RACF userid, it sets it to the numeric UID corresponding to that userid -- because use of numeric UIDs and GIDs for file/directory ownership is the convention for UNIX file systems. ... When you display the directory, that UID may be displayed as a RACF userid, but only because a backward lookup is being done to convert the numeric UID to a userid. ...
    (bit.listserv.ibm-main)
  • RE: hfs ishell owner field blank
    ... Your problem is due to you not having a userid in your security database ... assigned with that UID, but that user is no longer in the security ... hfs ishell owner field blank ...
    (bit.listserv.ibm-main)
  • Re: deleting user account: disposition of users files?
    ... The system will report them as being owned by uid "x", ... Not the userid, the uid--the number associated with the userid. ... all the old files will suddenly belong to the new ... I don't know of any system that prevents recycling uids. ...
    (comp.unix.solaris)
  • Re: Combo Box Filter according to user log in
    ... Have table with userid, username, password and level of access ... (security table) ... Dim uid As String ... splitting and maintaining the front-end. ...
    (microsoft.public.access.formscoding)
  • How can i control the UID number in SFU Attributes???
    ... In my platform i have SFU 3.0 and the last 5 users that i created have the ... UID number 8000x. ... There is anyway to control that continued in the next number at 15000 ??? ...
    (microsoft.public.windows.server.active_directory)