|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: s
Length: 2426 (0x97a)
Names: »setuid.2«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/man/cat2/setuid.2«
0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f ┆ _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆ 0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c ┆ u_ a_ l System Call┆ 0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 75 69 64 28 32 29 0a 0a 0a 0a ┆s setuid(2) ┆ 0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20 ┆N N N NA A A AM M M ME E E E ┆ 0x080…0a0 20 20 73 65 74 75 69 64 20 2d 20 73 65 74 20 75 73 65 72 20 61 6e 64 20 67 72 6f 75 70 20 49 44 ┆ setuid - set user and group ID┆ 0x0a0…0c0 73 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08 4e 08 4e 54 08 54 08 54 08 54 41 ┆s S S S SY Y Y YN N N NT T T TA┆ 0x0c0…0e0 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 23 08 23 08 23 08 23 69 08 69 08 69 08 ┆ A A AX X X X # # # #i i i ┆ 0x0e0…100 69 6e 08 6e 08 6e 08 6e 63 08 63 08 63 08 63 6c 08 6c 08 6c 08 6c 75 08 75 08 75 08 75 64 08 64 ┆in n n nc c c cl l l lu u u ud d┆ 0x100…120 08 64 08 64 65 08 65 08 65 08 65 20 3c 08 3c 08 3c 08 3c 73 08 73 08 73 08 73 79 08 79 08 79 08 ┆ d de e e e < < < <s s s sy y y ┆ 0x120…140 79 73 08 73 08 73 08 73 2f 08 2f 08 2f 08 2f 74 08 74 08 74 08 74 79 08 79 08 79 08 79 70 08 70 ┆ys s s s/ / / /t t t ty y y yp p┆ 0x140…160 08 70 08 70 65 08 65 08 65 08 65 73 08 73 08 73 08 73 2e 08 2e 08 2e 08 2e 68 08 68 08 68 08 68 ┆ p pe e e es s s s. . . .h h h h┆ 0x160…180 3e 08 3e 08 3e 08 3e 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 ┆> > > > i i i in n n nt t ┆ 0x180…1a0 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 75 08 75 08 75 08 75 ┆t t s s s se e e et t t tu u u u┆ 0x1a0…1c0 69 08 69 08 69 08 69 64 08 64 08 64 08 64 20 28 08 28 08 28 08 28 75 08 75 08 75 08 75 69 08 69 ┆i i i id d d d ( ( ( (u u u ui i┆ 0x1c0…1e0 08 69 08 69 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20 20 20 20 20 75 08 75 08 75 08 75 69 ┆ i id d d d) ) ) ) u u u ui┆ 0x1e0…200 08 69 08 69 08 69 64 08 64 08 64 08 64 5f 08 5f 08 5f 08 5f 74 08 74 08 74 08 74 20 75 08 75 08 ┆ i i id d d d_ _ _ _t t t t u u ┆ 0x200…220 75 08 75 69 08 69 08 69 08 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 ┆u ui i i id d d d; ; ; ; i┆ 0x220…240 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 ┆ i i in n n nt t t t s s s se e ┆ 0x240…260 65 08 65 74 08 74 08 74 08 74 65 08 65 08 65 08 65 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 ┆e et t t te e e eu u u ui i i id┆ 0x260…280 08 64 08 64 08 64 28 08 28 08 28 08 28 65 08 65 08 65 08 65 75 08 75 08 75 08 75 69 08 69 08 69 ┆ d d d( ( ( (e e e eu u u ui i i┆ 0x280…2a0 08 69 64 08 64 08 64 08 64 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e ┆ id d d d) ) ) ) i i i in n┆ 0x2a0…2c0 08 6e 08 6e 74 08 74 08 74 08 74 20 65 08 65 08 65 08 65 75 08 75 08 75 08 75 69 08 69 08 69 08 ┆ n nt t t t e e e eu u u ui i i ┆ 0x2c0…2e0 69 64 08 64 08 64 08 64 3b 08 3b 08 3b 08 3b 0a 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e ┆id d d d; ; ; ; i i i in n┆ 0x2e0…300 08 6e 08 6e 74 08 74 08 74 08 74 20 73 08 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 ┆ n nt t t t s s s se e e et t t ┆ 0x300…320 74 72 08 72 08 72 08 72 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28 ┆tr r r ru u u ui i i id d d d( (┆ 0x320…340 08 28 08 28 72 08 72 08 72 08 72 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 08 64 08 64 08 64 ┆ ( (r r r ru u u ui i i id d d d┆ 0x340…360 29 08 29 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 ┆) ) ) ) i i i in n n nt t t┆ 0x360…380 08 74 20 72 08 72 08 72 08 72 75 08 75 08 75 08 75 69 08 69 08 69 08 69 64 08 64 08 64 08 64 3b ┆ t r r r ru u u ui i i id d d d;┆ 0x380…3a0 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08 43 ┆ ; ; ; D D D DE E E ES S S SC C┆ 0x3a0…3c0 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08 54 ┆ C CR R R RI I I IP P P PT T T T┆ 0x3c0…3e0 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 49 66 20 74 68 ┆I I I IO O O ON N N N If th┆ 0x3e0…400 65 20 70 72 6f 63 65 73 73 20 69 73 20 73 75 70 65 72 2d 75 73 65 72 2c 20 5f 08 73 5f 08 65 5f ┆e process is super-user, _ s_ e_┆ 0x400…420 08 74 5f 08 75 5f 08 69 5f 08 64 28 29 20 73 65 74 73 20 74 68 65 20 72 65 61 6c 20 75 73 65 72 ┆ t_ u_ i_ d() sets the real user┆ 0x420…440 0a 20 20 20 20 20 49 44 2c 20 65 66 66 65 63 74 69 76 65 20 75 73 65 72 20 49 44 20 2c 20 61 6e ┆ ID, effective user ID , an┆ 0x440…460 64 20 74 68 65 20 73 61 76 65 64 20 73 65 74 2d 75 73 65 72 2d 49 44 20 74 6f 20 5f 08 75 5f 08 ┆d the saved set-user-ID to _ u_ ┆ 0x460…480 69 5f 08 64 2e 0a 0a 20 20 20 20 20 49 66 20 74 68 65 20 70 72 6f 63 65 73 73 20 69 73 20 6e 6f ┆i_ d. If the process is no┆ 0x480…4a0 74 20 73 75 70 65 72 2d 75 73 65 72 2c 20 62 75 74 20 5f 08 75 5f 08 69 5f 08 64 20 69 73 20 65 ┆t super-user, but _ u_ i_ d is e┆ 0x4a0…4c0 71 75 61 6c 20 74 6f 20 74 68 65 0a 20 20 20 20 20 72 65 61 6c 20 75 73 65 72 20 49 44 20 6f 72 ┆qual to the real user ID or┆ 0x4c0…4e0 20 74 68 65 20 73 61 76 65 64 20 73 65 74 2d 75 73 65 72 2d 49 44 2c 20 5f 08 73 5f 08 65 5f 08 ┆ the saved set-user-ID, _ s_ e_ ┆ 0x4e0…500 74 5f 08 75 5f 08 69 5f 08 64 20 73 65 74 73 20 74 68 65 0a 20 20 20 20 20 65 66 66 65 63 74 69 ┆t_ u_ i_ d sets the effecti┆ 0x500…520 76 65 20 75 73 65 72 20 49 44 20 74 6f 20 5f 08 75 5f 08 69 5f 08 64 3b 20 74 68 65 20 72 65 61 ┆ve user ID to _ u_ i_ d; the rea┆ 0x520…540 6c 20 75 73 65 72 20 49 44 20 61 6e 64 20 73 61 76 65 64 20 73 65 74 2d 0a 20 20 20 20 20 75 73 ┆l user ID and saved set- us┆ 0x540…560 65 72 2d 49 44 20 72 65 6d 61 69 6e 20 75 6e 63 68 61 6e 67 65 64 2e 0a 0a 20 20 20 20 20 54 68 ┆er-ID remain unchanged. Th┆ 0x560…580 65 20 61 64 64 69 74 6f 6e 61 6c 20 66 75 6e 63 74 69 6f 6e 73 20 5f 08 73 5f 08 65 5f 08 74 5f ┆e additonal functions _ s_ e_ t_┆ 0x580…5a0 08 65 5f 08 75 5f 08 69 5f 08 64 20 61 6e 64 20 5f 08 73 5f 08 65 5f 08 74 5f 08 72 5f 08 75 5f ┆ e_ u_ i_ d and _ s_ e_ t_ r_ u_┆ 0x5a0…5c0 08 69 5f 08 64 20 73 65 74 20 74 68 65 20 65 66 66 65 63 2d 0a 20 20 20 20 20 74 69 76 65 20 61 ┆ i_ d set the effec- tive a┆ 0x5c0…5e0 6e 64 20 72 65 61 6c 20 75 73 65 72 20 49 44 2c 20 72 65 73 70 65 63 74 69 76 65 6c 79 2e 0a 0a ┆nd real user ID, respectively. ┆ 0x5e0…600 45 08 45 08 45 08 45 52 08 52 08 52 08 52 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 ┆E E E ER R R RR R R RO O O OR R ┆ 0x600…620 52 08 52 53 08 53 08 53 08 53 0a 20 20 20 20 20 5b 45 50 45 52 4d 5d 20 20 20 20 20 20 20 20 54 ┆R RS S S S [EPERM] T┆ 0x620…640 68 65 20 70 72 6f 63 65 73 73 20 69 73 20 6e 6f 74 20 73 75 70 65 72 2d 75 73 65 72 20 61 6e 64 ┆he process is not super-user and┆ 0x640…660 20 5f 08 75 5f 08 69 5f 08 64 20 64 6f 65 73 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆ _ u_ i_ d does ┆ 0x660…680 20 20 20 20 6e 6f 74 20 6d 61 74 63 68 20 74 68 65 20 72 65 61 6c 20 75 73 65 72 20 49 44 20 6f ┆ not match the real user ID o┆ 0x680…6a0 72 20 74 68 65 20 73 61 76 65 64 20 73 65 74 2d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ┆r the saved set- ┆ 0x6a0…6c0 20 20 20 20 20 75 73 65 72 2d 49 44 2e 0a 0a 20 20 20 20 20 5b 45 49 4e 56 41 4c 5d 20 20 20 20 ┆ user-ID. [EINVAL] ┆ 0x6c0…6e0 20 20 20 54 68 65 20 76 61 6c 75 65 20 6f 66 20 5f 08 75 5f 08 69 5f 08 64 20 69 73 20 69 6e 76 ┆ The value of _ u_ i_ d is inv┆ 0x6e0…700 61 6c 69 64 2e 0a 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 08 ┆alid. R R R RE E E ET T T TU U ┆ 0x700…720 55 08 55 52 08 52 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 41 ┆U UR R R RN N N N V V V VA A A A┆ 0x720…740 4c 08 4c 08 4c 08 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 55 70 6f 6e 20 ┆L L L LU U U UE E E E Upon ┆ 0x740…760 73 75 63 63 65 73 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 61 20 76 61 6c 75 65 20 6f ┆successful completion, a value o┆ 0x760…780 66 20 30 20 69 73 20 72 65 74 75 72 6e 65 64 2e 20 20 4f 74 68 2d 0a 20 20 20 20 20 65 72 77 69 ┆f 0 is returned. Oth- erwi┆ 0x780…7a0 73 65 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 20 61 6e ┆se, a value of -1 is returned an┆ 0x7a0…7c0 64 20 5f 08 65 5f 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 20 73 65 74 20 74 6f 20 69 6e 64 69 ┆d _ e_ r_ r_ n_ o is set to indi┆ 0x7c0…7e0 2d 0a 20 20 20 20 20 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a 0a 53 08 53 08 53 08 53 45 ┆- cate the error. S S S SE┆ 0x7e0…800 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c 08 4c 08 4c 53 08 53 08 ┆ E E EE E E E A A A AL L L LS S ┆ 0x800…820 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c 73 20 28 32 29 ┆S SO O O O System Calls (2)┆ 0x820…840 3a 20 20 65 78 65 63 2c 20 67 65 74 65 75 69 64 2c 20 67 65 74 75 69 64 2c 20 73 65 74 67 69 64 ┆: exec, geteuid, getuid, setgid┆ 0x840…860 2e 0a 0a 4e 08 4e 08 4e 08 4e 4f 08 4f 08 4f 08 4f 54 08 54 08 54 08 54 45 08 45 08 45 08 45 53 ┆. N N N NO O O OT T T TE E E ES┆ 0x860…880 08 53 08 53 08 53 0a 20 20 20 20 20 5f 08 73 5f 08 65 5f 08 74 5f 08 65 5f 08 75 5f 08 69 5f 08 ┆ S S S _ s_ e_ t_ e_ u_ i_ ┆ 0x880…8a0 64 20 61 6e 64 20 5f 08 73 5f 08 65 5f 08 74 5f 08 72 5f 08 75 5f 08 69 5f 08 64 20 61 72 65 20 ┆d and _ s_ e_ t_ r_ u_ i_ d are ┆ 0x8a0…8c0 42 53 44 20 66 75 6e 63 74 69 6f 6e 73 20 74 68 61 74 20 61 72 65 20 6e 6f 74 20 70 61 72 74 20 ┆BSD functions that are not part ┆ 0x8c0…8e0 6f 66 0a 20 20 20 20 20 58 2f 4f 70 65 6e 2e 20 54 68 65 79 20 73 68 6f 75 6c 64 20 6e 6f 74 20 ┆of X/Open. They should not ┆ 0x8e0…900 62 65 20 75 73 65 64 20 69 6e 20 70 72 6f 67 72 61 6d 73 20 74 68 61 74 20 73 68 6f 75 6c 64 20 ┆be used in programs that should ┆ 0x900…920 62 65 0a 20 20 20 20 20 70 6f 72 74 61 62 6c 65 20 74 6f 20 6f 74 68 65 72 20 58 2f 4f 70 65 6e ┆be portable to other X/Open┆ 0x920…940 20 70 6c 61 74 66 6f 72 6d 73 2e 0a 0a 44 65 63 65 6d 62 65 72 20 31 39 39 30 20 20 20 20 20 20 ┆ platforms. December 1990 ┆ 0x940…960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d ┆ TX Programm┆ 0x960…97a 65 72 27 73 20 52 65 66 65 72 65 6e 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a ┆er's Reference ┆