|
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]
|