Re: groupToRunAs failure on Fedora 1-64

Adam DePrince <[email protected]>
Newsgroups gmane.comp.web.skunkweb
Message-ID <[email protected]>
On Fri, 2004-04-30 at 15:34, Jacob Smullyan wrote:
> On Fri, 2004-04-30 at 12:33, Adam DePrince wrote:
> > I've run into a problem starting Skunkweb 3.4b5 on Fedora Core 1 x64. 
> > Almost certainly a python issue, but it is worth menioning.  
> 
> x64, eh.

Yes, the 64 bit variety of Fedora.

> Does a simple test of os.setgid() outside of skunk fail when run as
> root?  If so, what about a non-Python test (run as root):
> 
> #include <sys/types.h>
> #include <errno.h>
> 
> int main(void) {
>   if (0==setgid(5)) {
>     printf("setgid works\n");
>     return 0;
>   } else {
>     perror("setgid doesn't work");
>     return 1;
>   }
> }
>   
> 

Compiled as a.out:
                                     
int main( void ) {
  return (setgid( 5 )?1:0);
}


[adam@localhost adam]$ ./a.out && echo Works || echo Broken
Broken
[adam@localhost adam]$ sudo su
[root@localhost adam]#  ./a.out && echo Works || echo Broken
Works
[root@localhost adam]#

Looks good to me.

-- 
Adam DePrince <[email protected]>



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.