On Wed, 7 Mar 2001, Stefan Laudat wrote:

> 
> > 
> >  printf("\nSetting permissions for directory %s.\n",dirStr);
> > 
> >  execl("/bin/chown","/bin/chown","-R","cvs.cvs",dirStr,NULL);
> > }
> > 
> >   Am suidat executabilul si l-am facut root.root, dar nu merge, tot da
> > niste permission denied, deci banuiesc ca nu pastreaza suidul. 
> 
> cred ca trebuie sa faci setuid(0); inainte sa faci exec().
> 

  Am facut si setuid(0). Problema mea se pare totusi ca e alta. Nu pot sa
lansez executabilul.

>ls -lsa
total 14
   2 drwxr-xr-x   2 caragege users        2048 Mar  7 13:24 ./
   2 drwxr-xr-x   6 caragege users        2048 Mar  7 12:30 ../
   6 -rwsr-xr-x   1 root     root         5296 Mar  7 13:23 setperm*
   2 -rw-r--r--   1 caragege users         405 Mar  7 13:23 setperm.cpp
   2 -rw-r--r--   1 caragege users         394 Mar  7 12:43 setperm.cpp~
   0 -rw-r--r--   1 caragege users           0 Mar  7 13:24 unu

> ./setperm
bash: ./setperm: Operation not permitted

  De ce?

  George Caragea   - [EMAIL PROTECTED]
  NetAdmin for The Numerical Methods Lab - lmn.pub.ro
  Visit http://www.bigfoot.com/~georgecaragea for more information! 


---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui