htdocs permissions as a home user

Problems with the Linux version of XAMPP, questions, comments, and anything related.

htdocs permissions as a home user

Postby anonranger » 07. December 2013 19:36

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
anonranger
 
Posts: 3
Joined: 06. December 2013 06:08
Operating System: Lubuntu

Re: htdocs permissions as a home user

Postby Nobbie » 08. December 2013 13:13

chown ar /opt/lampp/htdocs

or

chmod 777 /opt/lampp/hdocs


This a basic linux question and not a Xampp question.
Nobbie
 
Posts: 13183
Joined: 09. March 2008 13:04

Re: htdocs permissions as a home user

Postby Tim_Olaguna » 07. January 2014 00:12

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.
Tim_Olaguna
 
Posts: 2
Joined: 09. December 2009 21:41

Re: htdocs permissions as a home user

Postby tuan V Huynh » 07. January 2014 03:34

if you chmod 777 on htdocs folder then securify on your web server is fail.
Carefull!
tuan V Huynh
 
Posts: 2
Joined: 07. January 2014 03:21
Operating System: Win 8


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 12 guests