Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread nonlin
Dear Bruce, Hears what I GOT: Sudo version 1.6.7p5 Authentication methods: 'pam' Syslog facility if syslog is being used for logging: authpriv Syslog priority to use when user authenticates successfully: notice Syslog priority to use when user authenticates unsuccessfully: alert Ignore '.' in $PA

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread nonlin
Dear Ken, I was not totaly shore how to use what had written, but atempted make some uses of it and hear is what I cam up with; when I run testsuid from a root termnal I get uid=0(root) gid=0(root) groups=0(root),1(bin),2(deamon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r::unconfined_t

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Phillip Bruce
Bill Luebkert wrote: > nonlin wrote: > >> Dear Friends, >> >> I know this is not directly a Unix problem but since this is happening >> in Fedora Lenix I though your the best group to help me with this Issue. >> >> I need to execute some root level UNIX commands and access some root >> lev

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Ingo Schwarze
Hi Ken, Kenneth Ölwing wrote on Tue, Nov 03, 2009 at 04:51:27PM +0100: > Just as an aside - isn't it true that many/most/all (???) Unix/Linux > installs are set to disallow setuid *scripts*. $ cd /usr $ sudo sh -c 'echo "#!/bin/sh\nid" > testsuid' $ sudo chown

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Phillip Bruce
nonlin wrote: > Dear Friends, > > I know this is not directly a Unix problem but since this is happening > in Fedora Lenix I though your the best group to help me with this Issue. > > I need to execute some root level UNIX commands and access some root > level files from an script that is exe

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread nonlin
Thanks for you response jimmy, but unfortunately it did not change anything, the problem is still the same. Sincerely Nonlin - Original Message - From: "Jimmy Schappet" To: "nonlin" Cc: "Bill Luebkert" ; Sent: Tuesday, November 03, 2009 10:07 AM Subject: Re: [Perl-unix-users] Permisti

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Kenneth Ölwing
The part you missed in Bill's email "Write a shell script that is setuid root" is the most important. Except that telling users who don't know what suid means to write suid root shell scripts (doubtful advice at best even when given to experienced system programmers) is a recipe for disa

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Ingo Schwarze
Hi, Jimmy Schappet wrote on Tue, Nov 03, 2009 at 09:07:24AM -0600: > The part you missed in Bill's email "Write a shell script that is > setuid root" is the most important. Except that telling users who don't know what suid means to write suid root shell scripts (doubtful advice at best even w

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Jimmy Schappet
The part you missed in Bill's email "Write a shell script that is setuid root" is the most important. You need to chmod not to 755, but chown root chmod 4755 This tells Unix to run the script as the script owner.For more details look at: http://www.everyjoe.com/newlinuxuser/explain-wh

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread nonlin
Dear Bill, Thanks for you fast response. Well, It seems close, but I have not gotten it to work yet. I made a shell script like you said: /usr/bin/nltests/restart_sendmail.sh #!/bin/sh service sendmail restart echo dun!!! I set the permissions to 755 set File owner to root set File group to roo

Re: [Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread Bill Luebkert
nonlin wrote: > Dear Friends, > > I know this is not directly a Unix problem but since this is happening > in Fedora Lenix I though your the best group to help me with this Issue. > > I need to execute some root level UNIX commands and access some root > level files from an script that is exe

[Perl-unix-users] Permistion Problem when run from the Web

2009-11-03 Thread nonlin
Dear Friends, I know this is not directly a Unix problem but since this is happening in Fedora Lenix I though your the best group to help me with this Issue. I need to execute some root level UNIX commands and access some root level files from an script that is executed from the web. To be mor