setuid Questions

1

Solved

The execv() function expects an array of NULL terminated strings but doesn't take the number of arguments. It uses a sentinel value (NULL pointer) to determine when the array ends. The man page fo...
Semantics asked 16/5, 2012 at 13:34

3

Solved

I have a process with permissions 4750. Two users exist in my Linux system. The root user and the appz user. The process inherits the permissions of a process manager that runs as "appz" user. I ...
Snag asked 15/2, 2012 at 16:42

1

The combination of set-uid and a relative path in the INTERP section of an ELF binary is very dangerous. I'm not quite sure how and where this problem should be reported, but it seems to me like ...
Overwhelming asked 26/1, 2012 at 13:50

5

Solved

I need to run a bash script as root (passwordless sudo or su not viable) and since you cannot setuid a script in Linux, I thought about calling it from an executable and making it setuid: $ cat wr...
Seamus asked 17/2, 2009 at 10:18

1

Solved

I have a question regarding the Mac App Store. I am planning to release a software with admin privileges to achieve its core functionality, but according to Apple - 2.27 - Apps that request esca...
Galbraith asked 15/9, 2011 at 7:31

4

Solved

I'm trying to do the safe thing, and have a program that needs to runs as root to drop its privileges when it doesn't need them. This works well if I chmod my binary with the SUID bit, and make it ...
Geraldina asked 16/2, 2010 at 18:21

2

Solved

Why this simple programs that use os.setuid()/gid() fails? Is written in python but I think that is not a language relative problem (at the end are all the same posix system call): import os, pwd ...
Vince asked 14/1, 2011 at 15:32

2

Solved

Consider this scenario in which an executable A.bin uses libY.so and libZ.so. A.c, Y.c and Z.c are all written in C. Z.c and Y.c are compiled into respective .so files. This is the directory struc...
Mortality asked 21/8, 2009 at 7:53

1

Solved

I had to do a dirty Linux hack for somebody so they could start a printer with the cupsenable printername shell command while being a non-root user. I didn't want them to be able to use the entiret...
Winne asked 26/6, 2009 at 21:32

2

Solved

Can anyone point to some code that deals with the security of files access via a path specified (in part) by an environment variable, specifically for Unix and its variants, but Windows solutions a...
Heroism asked 12/10, 2008 at 23:2

© 2022 - 2024 — McMap. All rights reserved.