You are here: Re: question about permission to delete a file « PHP Language « IT news, forums, messages
Re: question about permission to delete a file

Posted by Colin McKinnon on 11/06/05 05:20

Jack wrote:

> Hi. all
>
> I have to delete a file with unlink(). But the user has no right to delete
> it. Is that possible to change the user or his right temporarily to delete
> the file. And then change it back. Thank you in advance!
>

no - its called security.

(actually you can change permissions if you're root, or you can start up a
new process as a different user if you know their password using su, or via
a preconfigured option in sudo, or if you have an executable with the
sticky bit set).

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация