freelanceprogrammers.org Forum Index » Perl
File permissions
Joined: 07 Apr 2005
Posts: 1
File permissions
Hello Techies,
I am trying to modifiy the file permissions on some files which are
not owned by owner of the cgi-script. To be more precise, my cgi-
script runs as "wwwrun.www" and I would like to "chmod" a file
belonging to "XXX.users". I am trying this on Apache/cgi script using
Perl/Linux.
I am sure that I am trying something *against* the basic file security
mechanism, but I have such a requirement and would like to know if
there is any way of achieving the same. I do not need to strictly
achieve the same from within my cgi-script, cgi->calls->shell/batch
script which inturn manipulate the file permission is also agreeable.
Can anybody throw some light on the issue?
BS.
Joined: 19 Mar 2005
Posts: 5
File permissions
Try setting the "Sticky bit" of the file. I think it works on unix,
however I am not sure about linux.
--- In perl_official@yahoogroups.com, "Sridhar" <b_s_sridhar@y...>
wrote:
>
> Hello Techies,
>
> I am trying to modifiy the file permissions on some files which are
> not owned by owner of the cgi-script. To be more precise, my cgi-
> script runs as "wwwrun.www" and I would like to "chmod" a file
> belonging to "XXX.users". I am trying this on Apache/cgi script
using
> Perl/Linux.
>
> I am sure that I am trying something *against* the basic file
security
> mechanism, but I have such a requirement and would like to know if
> there is any way of achieving the same. I do not need to strictly
> achieve the same from within my cgi-script, cgi->calls->shell/batch
> script which inturn manipulate the file permission is also
agreeable.
>
> Can anybody throw some light on the issue?
>
> BS.
Joined: 28 Jun 2004
Posts: 3
File permissions
Try this;
when u try to alter a file from web - you in user group apache
the file ur collection give the user:group as userA:Apache
In this manner we access can change the user permission
example from userA want to switch file to userB
u can chmod userB:Apache - this will do the job
--- In perl_official@yahoogroups.com, golagolu <no_reply@y...> wrote:
>
>
> Try setting the "Sticky bit" of the file. I think it works on unix,
> however I am not sure about linux.
>
> --- In perl_official@yahoogroups.com, "Sridhar" <b_s_sridhar@y...>
> wrote:
> >
> > Hello Techies,
> >
> > I am trying to modifiy the file permissions on some files which
are
> > not owned by owner of the cgi-script. To be more precise, my cgi-
> > script runs as "wwwrun.www" and I would like to "chmod" a file
> > belonging to "XXX.users". I am trying this on Apache/cgi script
> using
> > Perl/Linux.
> >
> > I am sure that I am trying something *against* the basic file
> security
> > mechanism, but I have such a requirement and would like to know
if
> > there is any way of achieving the same. I do not need to strictly
> > achieve the same from within my cgi-script, cgi->calls-
>shell/batch
> > script which inturn manipulate the file permission is also
> agreeable.
> >
> > Can anybody throw some light on the issue?
> >
> > BS.
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







