Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

owner rights

Status
Not open for further replies.

elck

Programmer
Apr 19, 2004
176
NL
Hi, I am new to this, so probably a 'stupid' question:

My website is on a shared server.
I want to create a directory where I can put .jpg files from:

1. my ftp connection
2. a piped email
3. a webpage (php)

When I have the webpage create the dir I can give it a chmod 0755 and still upload jpgs there,
but the piped mail cannot create files there.

And the other way around too.

The only way I can make this happen is by creating a dir through ftp with rights set to 777

And I am afraid that is not a very safe option as hackers could put and run executables there.

Am I doing something wrong, is there a way around or is there nothing to worry about?
 
Just an idea.....

if all these ways you want are using the same user, lets say "www" then the only thing to do is `chown and then `chmod 700 dirname`

If the users are different then you should put the users on the same group lets same 'share'
and then `chgrp share dirname`.


``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top