Page 1 of 1

htdocs permissions as a home user

PostPosted: 07. December 2013 19:36
by anonranger
I have placed my project php files in /opt/lampp/htdocs folder

I want to change htdocs permissions, so i can edit the files using GUI in my file manager as a home user in linux and not as a root.

It is very painful to become a root and use commands each time.

Example:

/home/ar/Desktop

ar is my user name. I want the user ar to have all permissions for /opt/lampp/htdocs folder.

How do i do it?

Can someone help.

Thanks

Re: htdocs permissions as a home user

PostPosted: 08. December 2013 13:13
by Nobbie
chown ar /opt/lampp/htdocs

or

chmod 777 /opt/lampp/hdocs


This a basic linux question and not a Xampp question.

Re: htdocs permissions as a home user

PostPosted: 07. January 2014 00:12
by Tim_Olaguna
Nobbie wrote:chown ar /opt/lampp/htdocs

or

chmod 777 /opt/lampp/hdocs


This a basic linux question and not a Xampp question.


If you really want to do things that way, I believe the command which will work is:

sudo chmod 777 /opt/lampp/htdocs

But that approach raises some new security issues.

Re: htdocs permissions as a home user

PostPosted: 07. January 2014 03:34
by tuan V Huynh
if you chmod 777 on htdocs folder then securify on your web server is fail.
Carefull!