[Mono-list] Dropping privileges in linux
Georgi Moskov
g.moskov at gmail.com
Tue Dec 20 04:28:01 EST 2005
Hi all,
I am looking for a way to drop privileges of an assembly started as
'root' to a normal user. I found two possible solutions, but didn't
succeed with either of them ...
a) Using Syscall
Syscall.setgid(1000);
Syscall.setuid(1000);
b) Using WindowsIdentity the way it is described here:
http://pages.infinit.net/ctech/20040405-1133.html
In either way I get a 'Segmentation fault' when I execute the assembly.
Can anyone give me some hint what I'm doing wrong, or a way to surroud
the problem?
Thanks,
Georgi Moskov
More information about the Mono-list
mailing list