Connecting Tech Pros Worldwide Forums | Help | Site Map

Apache authentication and file/folder access permissions

Newbie
 
Join Date: Dec 2007
Posts: 7
#1: Apr 12 '09
Hello,

I am working at a webbased file browser, where users will be able to access, rename, delete, etc files and folders. My question is, what is the best way to handle permissions / authentication with apache in a *nix environment? Basically what I am searching for is something that works roughly the same as the windows integrated authentication, where the commands executed on server-side are executed as the user with witch the session was authenticated and hence access is controlled by the usual file/folder permissions. So essentially, is there an authentication method that uses local users of the server and their passwords as credentials?
Thanks for any help!

sandro

prabirchoudhury's Avatar
Familiar Sight
 
Join Date: May 2009
Location: Wellington, New Zealand
Posts: 152
#2: May 7 '09

re: Apache authentication and file/folder access permissions


Quote:

Originally Posted by sandro

Hello,

I am working at a webbased file browser, where users will be able to access, rename, delete, etc files and folders. My question is, what is the best way to handle permissions / authentication with apache in a *nix environment? Basically what I am searching for is something that works roughly the same as the windows integrated authentication, where the commands executed on server-side are executed as the user with witch the session was authenticated and hence access is controlled by the usual file/folder permissions. So essentially, is there an authentication method that uses local users of the server and their passwords as credentials?
Thanks for any help!

sandro

Hey
there so many wey you could do this folder permissions Attributes. here i would mention using FTP access.

using FTP access you could change this permission. right click on file and then it would come "file Attributes" in fileZilla and "permissions..." in Ultraedit then you could give specific permissions for three different groups seperately



hope that would help you
Member
 
Join Date: Dec 2006
Location: Pune
Posts: 50
#3: May 13 '09

re: Apache authentication and file/folder access permissions


Used the Unix command to hanlde to file permission like chmod,chgroup,chown... it is the best way to handle permission.

Regards,
Sandeep Agarwal
Newbie
 
Join Date: Dec 2007
Posts: 7
#4: May 13 '09

re: Apache authentication and file/folder access permissions


Thank you both. I ended up running scripts as sudo from php exec statements, giving the http user sudo access to the scripts I use for the website.
Reply