[scponly] Why not setegid() ?

Jb mikojiba at gmail.com
Sat Mar 11 07:32:34 EST 2006


Hello,

I would like to know why in scponly.c the setegid() function is not
call after seteuid() ?

I've chrooted scponly successfully but when, for example, a user
"share", default group "users", creates a file through scponly the
file is owned by the group "root", not "users".

So I've had a call to setegid() after seteuid() and now when the user
"share" creates a file, the group is "users", the correct default
group of the user used.

But I would like to know if there is a particular reason for the
absence of the setegid() function or if it's just an oversight ?

Thanks

Jb



More information about the scponly mailing list