Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


How does one chmode a directory?

How does one chmode a directory?

How does one chmode a directory?

"This directory must be chmoded 777 so that messages can be
written into it by the server's UID." (Matt Write, ' WWWBoard Version 2.0 ALPHA 2,' ©1999)
What does this mean, and how is it done? I would appreciate any feedback.

RE: How does one chmode a directory?

As far as I'm aware the chmod command is only for unix - it set's permissions on a file or directory and so should be handled with care. For example - the permissions "777" are fairly wide and allow anyone to to delete files in that directory. I think you should consider the consequences of that for a bit before you chmod the directory.


RE: How does one chmode a directory?

Thanks for the feedback Mike, and although the chmode command is a Unix based operation, its root programming language is in 'C' like most systems. I am operating a message board on one of my websites through the FormMail actions of my internet service provider's cgi-bin. I get the messages in my E-mail and then post them manualy on my website. It is a rather primitive way of doing things because my service provider's cgi-bin does't have a wwwboard cgi-script.
I D/L'd one of Matt Write's free cgi-scripts which requires editing. I thought, sure peice of cake, I can do that; but this is when I came across the wwwboard directory which requires being chmoded 777 in order for internet users to post messages on the message board and then have the server write these messages into the directory itself. I am now learning to program 'C' and it is my anticipation that I should learn to write the chmode 777 code soon.
Thanks for your previous feedback.

RE: How does one chmode a directory?

I'm not sure if you want to chmod it to 777 so quickly....755 or 775 seems MUCH more reasonable.
777 allows anyone to read/write/delete (including you, members of the board, and ANYONE ELSE AT ALL); 775 allows you, & your members to read/write/delete...but it only allows unnamed visitors to read/write; 755 allows ONLY YOU to read/write/delete while members & visitors may only read/write.
Hope I was of some help.


RE: How does one chmode a directory?

Thanks rob, call me a fool, but I kind of like the idea of operating on an honor basis between fellow organization members, where everyone can responsibly post, read, or delete messages left by others. The one question in particular still remains, however, how does one chmode a directory? Be it 777, 775, or whatever? That is the question. The first person to answer this question correctly will recieve the Grand Prize!

RE: How does one chmode a directory?


system('chmod 777 dirname');

RE: How does one chmode a directory?

OK, grand prize entry: Go through tel-net and use the command: set chmod 777 (or 775, 755, etc.)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close