LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 03-16-2010, 02:59 PM   #1
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Rep: Reputation: 15
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
 
Old 03-16-2010, 03:08 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 03-16-2010, 03:34 PM   #3
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
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
 
Old 03-16-2010, 05:40 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Well ... with "nobody" running pache the ownership should make sense, I reckon.
 
Old 03-17-2010, 04:18 AM   #5
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tinkster View Post
Well ... with "nobody" running pache the ownership should make sense, I reckon.
Sorry i dont understand..
 
Old 03-17-2010, 01:56 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Your apache is run by user "nobody". So it's not only reasonable
but essential that htdocs be owned by "nobody".
 
Old 03-17-2010, 02:41 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
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.
 
  


Reply

Tags
xampp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] There is no "menu.lst" in my Ubuntu "/boot/grub/" folder. msbstar Linux - Newbie 18 09-15-2012 02:26 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
"Installing non-distro Linux on USB key" or "Using syslinux to boot a jffs2" lymae Linux - Newbie 6 12-31-2006 11:00 PM
"rm -rf /tmp", now Evolution shows "(no folder displayed" Ed-MtnBiker Linux - Software 7 04-10-2006 05:05 PM


All times are GMT -5. The time now is 11:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration