LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   After installing XAMPP for linux i have seen the folder "htdocs" belongs to "nobody". (https://www.linuxquestions.org/questions/linux-general-1/after-installing-xampp-for-linux-i-have-seen-the-folder-htdocs-belongs-to-nobody-795847/)

tirengarfio 03-16-2010 01:59 PM

After installing XAMPP for linux i have seen the folder "htdocs" belongs to "nobody".
 
Hi,

after installing XAMPP for linux i have seen the folder "htdocs" belongs to "nobody".

Has this any intention?

Do you think owning that folder is a good practice?

Regards

Javi

Tinkster 03-16-2010 02:08 PM

This thread really belongs in "Linux-Server" or "Linux-General" and not "Programming".

The answer will depend on which user runs the apache process on your system. When
you run "ps -ef | grep http", who is the owner?


Cheers,
Tink

P.S.: I've reported the post to be moved to a more suitable forum.

tirengarfio 03-16-2010 02:34 PM

Quote:

Originally Posted by Tinkster (Post 3900775)
This thread really belongs in "Linux-Server" or "Linux-General" and not "Programming".

The answer will depend on which user runs the apache process on your system. When
you run "ps -ef | grep http", who is the owner?


Cheers,
Tink

P.S.: I've reported the post to be moved to a more suitable forum.

Thanks, this is the output of the command you say:

root 7599 1 0 11:17 ? 00:00:01 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
Quote:

nobody 7621 7599 0 11:17 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 7677 7599 0 11:17 ? 00:00:02 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 7679 7599 0 11:17 ? 00:00:01 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 7680 7599 0 11:17 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 7681 7599 0 11:17 ? 00:00:02 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 8239 7599 0 11:20 ? 00:00:01 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 8248 7599 0 11:20 ? 00:00:03 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 8249 7599 0 11:20 ? 00:00:02 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 8250 7599 0 11:20 ? 00:00:00 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 8251 7599 0 11:20 ? 00:00:05 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
nobody 10511 7599 0 12:23 ? 00:00:04 /opt/lampp/bin/httpd -k start -DSSL -DPHP5 -E /opt/lampp/logs/error_log
1000 27986 7525 0 20:32 pts/0 00:00:00 grep http

Tinkster 03-16-2010 04:40 PM

Well ... with "nobody" running pache the ownership should make sense, I reckon.

tirengarfio 03-17-2010 03:18 AM

Quote:

Originally Posted by Tinkster (Post 3900911)
Well ... with "nobody" running pache the ownership should make sense, I reckon.

Sorry i dont understand..

Tinkster 03-17-2010 12:56 PM

Your apache is run by user "nobody". So it's not only reasonable
but essential that htdocs be owned by "nobody".

Quakeboy02 03-17-2010 01:41 PM

To be even more explicit, there is a userid called "nobody". It's a valid userid, just like "root" or "mail" or "uucp", or whatever.


All times are GMT -5. The time now is 04:32 PM.