CGI教えて!(chmod)


[ Follow Ups ] [ Post Followup ] [ DIGIWEB 日本語Users' BBS ] (PR) [レンタルサーバー]

Posted by 池田敏郎 on December 18日 (1996年) 23時30分49秒:

ブラウザーからCGIを実行してファイルの
パーミッションを変更したいのですが、上手くいきません。
きっと大きな勘違いをしていると思うのですが、教えてください。

columbia /digiweb/usr/ikeda >cat chmod.cgi

#!/bin/perl
print "Content-type: text/html\n\n";
print "\n";
print "chmod test\n";
print "\n";

$file = '/digiweb/usr/ikeda/public_html/test/test.htm';
chmod(0777,$file) ;

print "

\n";
print "end


\n";
print "
\n";


telnetで実行すると期待通り変更されるが、ブラウザーからだと変更されない。
ああ、困った(TT)

columbia /digiweb/usr/ikeda >ls -la
total 8
drwxrwxrwx 2 ikeda client 512 Dec 18 09:07 .
drwxrwxr-x 16 ikeda other 1024 Dec 18 09:02 ..
-rwxr-xr-x 1 ikeda client 302 Dec 18 09:19 chmod.cgi
-rwxr--r-- 1 ikeda client 5 Dec 18 09:07 test.htm


Follow Ups:



Post a Followup

名前:
メールアドレス:

題名:

内容:

関連URL:
関連URLのタイトル:
関連画像のURL:


[ Follow Ups ] [ Post Followup ] [ DIGIWEB 日本語Users' BBS ]