[sudo-users] 答复: replace /usr/bin/su issue

Goodman Leung gbcbooksmj at gmail.com
Thu Feb 23 00:32:11 MST 2017


Does any body know this problem ?

 

发件人: Goodman Leung [mailto:gbcbooksmj at gmail.com] 
发送时间: 2017年2月20日 10:09
收件人: sudo-users at sudo.ws
主题: replace /usr/bin/su issue

 

Hi list 

 

I have some requirement to replace /usr/bin/sudo with a self-recompiled one.
I write a sudo shell with python , it actually use sudo too .

 

[root at localhost user1]# ls -lha /usr/bin/sudo

-rwsr-xr-x 1 root root 148K Feb 17 10:05 /usr/bin/sudo

[root at localhost user1]#

[root at localhost user1]#

[root at localhost user1]#

[root at localhost user1]#

[root at localhost user1]# ls -lah python/scripts/sudo/dist/sudo_v1.3.2

sudo_v1.3.2             sudo_v1.3.2_md5sum.txt

[root at localhost user1]# ls -lah python/scripts/sudo/dist/sudo_v1.3.2

-rwxr-xr-x 1 user1 user1 4.4M Feb 16 20:06 python/scripts/sudo/dist/sudo_v1.
3.2

[root at localhost user1]#

 

You can see , the self-compiled ‘s size is 4.4MB , and But one day after I
replace it , its size become 148KB. 

 

What changed it againg ? 

 

 

Thks and best regards

Goodman Leung

 



More information about the sudo-users mailing list