file permissions with cgi script
Von: PTM (ptmusta@utu.fi) [Profil]
Datum: 20.09.2007 11:48
Message-ID: <fctfm6$2lu7$1@bowmore.utu.fi>
Newsgroup: alt.perl
Datum: 20.09.2007 11:48
Message-ID: <fctfm6$2lu7$1@bowmore.utu.fi>
Newsgroup: alt.perl
PTM: I wrote a script to handle my picture archives and show the pictures thru web pages. THe script is with permissions: -r-xr-xr-x 1 root root 5572 2007-09-20 10:36 album.pl My perl script creates a file to be included in a html page. It gets permissions like this: -rw-r--r-- 1 nobody nobody 113 2007-09-20 08:21 index.txt Now I would like the script to give write access to group 'users' so that the file could be edited by for example VI or JOE. I have tried $mode = 0666; chmod $mode, '$txt_file'; It doesn't change the permissions. The same problem is with the directories. I don't find how to change permissons of directories in perl running as CGI. Do you have suggestions ?[ Auf dieses Posting antworten ]
Antworten
- Paul Lalli (20.09.2007 16:55)
- Pasi Mustalaht (20.09.2007 21:42)
- Pasi Mustalaht (21.09.2007 07:59)
- all mail refused (22.09.2007 01:09)
- Pasi Mustalaht (22.09.2007 16:16)
- all mail refused (22.09.2007 16:36)
- Pasi Mustalaht (22.09.2007 21:26)
