Zesstra | 18aa835 | 2017-06-18 15:24:51 +0200 | [diff] [blame] | 1 | SYNOPSIS |
| 2 | int seteuid(string str) |
| 3 | |
| 4 | DESCRIPTION |
| 5 | Set effective uid to str. The calling object must be |
| 6 | privileged to do so by the master object. In most |
| 7 | installations it can always be set to the current uid of the |
| 8 | object, to the uid of the creator of the object file, or to 0. |
| 9 | |
| 10 | Result is 0 the euid could not be changed, and non-0 if it |
| 11 | was changed. |
| 12 | |
| 13 | When this value is 0, the current object's uid can be changed |
| 14 | by export_uid(), and only then. |
| 15 | |
| 16 | If strict euid usage is enforced, objects with euid 0 cannot |
| 17 | load or clone other objects. |
| 18 | |
| 19 | HISTORY |
| 20 | Since 3.2.1@47, this efun is availabe only when using euids. |
| 21 | Since 3.2.7, this efun is always available. |
| 22 | |
| 23 | SEE ALSO |
| 24 | export_uid(E), getuid(E), geteuid(E), native(C), |
| 25 | valid_seteuid(M) |