CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Simple Permission code.

 



perlkid
stranger

Aug 2, 2000, 3:35 AM

Post #1 of 3 (298 views)
Simple Permission code. Can't Post

 
I need to change the permission of a directory. Not the contents but just the file folder it self.

I know that you can use

chmod 0644, 'file.txt';

how do I aply that to a folder.

also I need to chmod it to 775, would I put that or 0755.

Thanks,

perlkid


dws
Deleted

Aug 1, 2000, 10:53 PM

Post #2 of 3 (298 views)
Re: Simple Permission code. [In reply to] Can't Post

chmod works on directories. Just be sure to check for errors and examine $!


perlkid
stranger

Aug 2, 2000, 6:50 PM

Post #3 of 3 (298 views)
Re: Simple Permission code. [In reply to] Can't Post

 
Ok Thanks,

perlkid

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives