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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Directory Owner

Status
Not open for further replies.

steam

ISP
Jul 17, 2000
51
IT
Hello!

Perhaps this is not related to apache since it is mainly a Linux/Ftp Problem ... but I really hope that you guys can help me with this.

I'm running a RedHat/Apache Server and I would like to set a different ownership for certain directories and files included in that directories. Briefly, I just need that on a specified host the user cannot read/write (via FTP) a subdirectory.

Thank you.
 
if i wanted to limit /usr/local/bin from ftp users...
here would be my steps

check the ownership of the directory

#cd /usr/local
#ls -al

and see if any user is the owner, this will only allow them to read it. So, you almost have to make the owner you (or root). Here is the command

#chown root bin

finally make it read/write to the owner only

#chmod 700 bin

Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top