Gossamer Forum
Home : General : Perl Programming :

Setting Directory Permissions

Quote Reply
Setting Directory Permissions
What is the Unix chmod equivalent for changing directory permissions. This is for a CGI-Perl script.

Dan Smile
Quote Reply
Re: Setting Directory Permissions In reply to
Equilavent for what operating system??

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Setting Directory Permissions In reply to
On a Linux/Apache Unix server.

Dan Smile
Quote Reply
Re: Setting Directory Permissions In reply to
Do you want to change permissions within a cgi script?? Or are you wondering what that command line is for changing permissions?

If you are wondering about the former, try this:

Code:
chmod 0755, $directory_name;

If you are wondering about the latter, you can use the following command line to change permissions of directories:

Code:
chmod 755 directoryname

OR

Code:
chmod 777 directoryname

Please be more specific about how you want to change the permissions of your directories. If it is within a cgi script, there are more codes needed. Try posting a snippet of your script, so we can see what you are trying to do.

Also, try searching through the Linux web site for information on changing directory permissions with an Apache Web Server.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 13, 1999).]