Can't do setuid and file permision denied errors

From: Chris (chrisw_at_lu.csi.com.ph)
Date: 10/29/03


Date: 28 Oct 2003 17:05:54 -0800

I hope this is the right news group to post my questions,

I'm a newbie with perl scripts and I'm having
problem running my copied script to my server. Can anybody who is
patient enough to help me with my problem?
I have a chpass.pl which is being executed by a change password web
utility page. This script tries to update a password on my linux
server /etc/shadow with a file permision rw------. my chpass.pl was
set to -rwsr-sr-x ,
with this file permission, I'm getting an error: Can't do setuid,
referer: http://.......
When I set the file permision of the chpass.pl to -rwsr-xr-x , I get
the error: file permision denied by the file /etc/shadow..
When I chmod 777 the /etc/shadow then everything works but I'm sure
its not safe to do that.. I cannot figure out how could I make this
work with the original file permission of the files shadow and
chpass.pl unchanged for I knew this was been working before with
another machine with almost a copycat of my server.

PLS..

Thanks...



Relevant Pages

  • Re: Cant do setuid and file permision denied errors
    ... > I have a chpass.pl which is being executed by a change password web ... > with this file permission, I'm getting an error: ... This is a problem with the setup of your web server; ... script be runnable by anyone is far more of a security risk. ...
    (comp.lang.perl.misc)
  • Cant do setuid and file permission denied
    ... problem running my copied script to my server. ... This script tries to update a password on my linux ... with this file permission, I'm getting an error: ... another machine with almost a copycat of my server. ...
    (comp.lang.perl)
  • Re: Need Access Control List(ACL) or any kind of substitute for it
    ... > anyone's script and look into the content which could reveal a password ... One file permission security model for shared hosting is as follows: ... user bob has read write and execute perms on /home/bob as you would ... for example in PHP would be a start to working out where juicy ...
    (freebsd-questions)
  • Re: Scripting
    ... It should have a method for file permission ... settings as well. ... > called student and assign them to the power users group ... I also want the script to give certain ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Execution Plan Hinting
    ... someone a hint at what is going wrong. ... I couldn't recreate your problem running this script from Query Analyzer. ... PRIMARY KEY constraint 'PK_FIELD_VALUES'. ...
    (comp.databases.ms-sqlserver)