Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: bakedjake

Message Too Old, No Replies

File permissions question.

How do I do I protect my files on a shared server?

     

thunderpaste

4:05 am on Jan 29, 2003 (gmt 0)

10+ Year Member



What can I set a file permission to to keep other users on the same unix box from viewing my database passwords?

Or is there a workaround to this problem,

I can't afford a dedicated server yet:(

Scott

seindal

9:47 am on Jan 29, 2003 (gmt 0)

10+ Year Member



It all depends on the particular setup of users and groups on the server, so there is no straight answer. It might not even be possible, still depending on the particular setup.

The problem is that you want to access the file yourself, you want the web-server to access the file as well, but you want to keep all the other users out.

If, as it is common, all normal users (including you) are members of a common group, you can set the following permissions

owner you - permissions rwx
group common-user-group - permissions ---
other - permissions r-x

This means you will get in as owner, all other members of the common group will be denied, but others, including the web-server, allowed.

To get a better answer, you have to give us more information.

René.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month