set-effective-user ( string/id -- ) (original) (raw)
set-effective-user ( string/id -- )
Unix users
Prev: | effective-user-id ( -- id ) |
---|---|
Next: | with-real-user ( string/id/f quot -- ) |
Inputs
string/id | a string or a user id |
---|
Outputs
None
Word description
Sets the current effective user given a user-name or a user id.
See also
real-user-name, real-user-id, set-real-user, effective-user-name, effective-user-id
Definition
GENERIC: set-effective-user ( string/id -- )
Methods
USING: math unix.users unix.users.private ;
M: integer set-effective-user (set-effective-user) ;
USING: strings unix.users unix.users.private ;
M: string set-effective-user ?user-id (set-effective-user) ;