Forum Moderators: phranque

Message Too Old, No Replies

setting permissions

setting permission to a single file

         

kebrus

2:11 am on Mar 28, 2005 (gmt 0)

10+ Year Member



hi, i want to set permissions to a single file, i want to chmod it, i only know how to do this with a ftp program, but since i'm using my own pc as a server with apache, how can can i make a single file only readable and writable by the my pc and not the user?
for example i know how to do it with a directory, using:
<Directory "path">
Deny from all
</Directory>

i thought that i could do the same using Files instead os Directory, but aparently it isn't possible

i'm open to any suggestion, for example, i think it's possible to do it with the .htaccess right? but i don't understand anything about .htaccess, and don't i have to protect the .htaccess file too?

so can you help me?

sitz

2:16 pm on Mar 28, 2005 (gmt 0)

10+ Year Member



This can be handled by OS permissions, using the 'chmod' command. The syntax for this command is:

  • Documented in the chmod(1) man page
  • Documented in the chmod(2) man page, although that's a bit more guts of the command than most folks need; a good read, though
  • More or less the same as the CHMOD command used under ftp

    I'd also suggest reading the chown(1) man page.

  •