Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > setuid and current paths

Reply
Thread Tools

setuid and current paths

 
 
Dave Harrison
Guest
Posts: n/a
 
      08-01-2003
hi again,

Im clearly a moron, and have solved the problem myself, due to a wish
to avoid dire embarrasment I shall not reveal the stupid mistake I made

Apologies for the inconvenience
Dave

> hi all,
>
> Im using the setuid-prog.c script to setuid my cgi script.
> The C script is chowned to "myuser" (not root, I dont need root access
> just the access myuser has).
>
> However when I do this, the path it executes the script from is not
> the same dir as the cgi itself.
>
> My CGI script uses a dir structure within its own dir, but when
> I execute it from another dir (via the setuid script) Im not
> in that dir natively.
>
> Ive tried chdir without success, and chroot runs me into a permissions
> problem.
>
> Anyone want to tell me how I _should_ be doing this ?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Paths, gentleman, paths Ohad Lutzky Ruby 2 11-07-2006 02:15 AM
setuid() and getenv()? vertigo Perl 1 07-17-2004 08:32 AM
Can't do setuid and file permission denied Chris Perl 1 10-28-2003 03:34 PM
get effective and real user-ids in a setuid program in linux vimala C Programming 1 08-01-2003 03:29 AM
Convert between Windows style paths and POSIX style paths Noah Python 5 07-11-2003 09:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57