Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F11545071
chgdbmailusers.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
514 B
Referenced Files
None
Subscribers
None
chgdbmailusers.c
View Options
#include
<stdio.h>
#include
<unistd.h>
// set the UID this script will run as (root user)
#define UID 0
#define CMD "/usr/sbin/dbmail-users"
/* INSTALLING:
gcc -o chgdbmailusers chgdbmailusers.c
chown root.apache chgdbmailusers
strip chgdbmailusers
chmod 4550 chgdbmailusers
*/
main
(
int
argc
,
char
*
argv
[])
{
int
rc
,
cc
;
cc
=
setuid
(
UID
);
rc
=
execvp
(
CMD
,
argv
);
if
((
rc
!=
0
)
||
(
cc
!=
0
))
{
fprintf
(
stderr
,
"__ %s: failed %d %d
\n
"
,
argv
[
0
],
rc
,
cc
);
return
1
;
}
return
0
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 29, 12:16 AM (1 d, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1061895
Default Alt Text
chgdbmailusers.c (514 B)
Attached To
Mode
R3 roundcubemail
Attached
Detach File
Event Timeline
Log In to Comment