請問set UID的問題??? - Linux

By Emma
at 2011-08-14T01:03
at 2011-08-14T01:03
Table of Contents
我不知道我觀念對不對
我目前寫一個printid.c檔
裡面是print執行者的effective uid
用geteuid()這個方法顯示
那我現在把這個檔設setuid
setuid的用意不是代表 執行時使用者暫時取的root權限
所以照理說 我用一般帳號執行printid時
effect uid應該是0才對
不過為什麼還是1000
-r-s--x--x 1 test test 7216 2011-08-14 00:24 printid
test@test-VirtualBox:~$ ./printid
Effective UID=1000
--
我目前寫一個printid.c檔
裡面是print執行者的effective uid
用geteuid()這個方法顯示
那我現在把這個檔設setuid
setuid的用意不是代表 執行時使用者暫時取的root權限
所以照理說 我用一般帳號執行printid時
effect uid應該是0才對
不過為什麼還是1000
-r-s--x--x 1 test test 7216 2011-08-14 00:24 printid
test@test-VirtualBox:~$ ./printid
Effective UID=1000
--
Tags:
Linux
All Comments

By Margaret
at 2011-08-15T07:06
at 2011-08-15T07:06

By Yedda
at 2011-08-17T13:07
at 2011-08-17T13:07

By Puput
at 2011-08-22T00:34
at 2011-08-22T00:34

By Eartha
at 2011-08-26T01:03
at 2011-08-26T01:03

By Irma
at 2011-08-30T02:31
at 2011-08-30T02:31

By Rachel
at 2011-09-01T13:17
at 2011-09-01T13:17

By Jacob
at 2011-09-05T14:06
at 2011-09-05T14:06

By Harry
at 2011-09-08T06:19
at 2011-09-08T06:19

By Kumar
at 2011-09-12T23:01
at 2011-09-12T23:01

By Annie
at 2011-09-13T18:13
at 2011-09-13T18:13
Related Posts
在xp系統下再灌linux,grub進不了xp?

By Poppy
at 2011-08-13T22:37
at 2011-08-13T22:37
ATI 9200 顯卡driver問題 ??

By Annie
at 2011-08-13T15:03
at 2011-08-13T15:03
UEFI PXE Server架設 (RHEL6)

By Hedy
at 2011-08-13T08:52
at 2011-08-13T08:52
在xp系統下再灌linux,grub進不了xp?

By Liam
at 2011-08-12T23:50
at 2011-08-12T23:50
NIS問題 fedora14

By Candice
at 2011-08-12T14:02
at 2011-08-12T14:02