set-real-user ( string/id -- ) (original) (raw)

set-real-user ( string/id -- )
Unix users

Prev: real-user-id ( -- id )
Next: effective-user-name ( -- string )

Vocabulary
unix.users

Inputs

string/id a string or a user id

Outputs
None

Word description
Sets the current real user given a user-name or a user id.

See also
real-user-name, real-user-id, effective-user-name, effective-user-id, set-effective-user

Definition

IN: unix.users

GENERIC: set-real-user ( string/id -- )

Methods

USING: math unix.users unix.users.private ;

M: integer set-real-user (set-real-user) ;

USING: strings unix.users unix.users.private ;

M: string set-real-user ?user-id (set-real-user) ;