1

I am new to ubuntu. Recently I tried to change user of htdocs according to many q&a 's available on askUbuntu. I followed these steps:

qayyum@qayyum:~$ who am i
qayyum   pts/0        2014-10-01 15:29 (:0)
qayyum@qayyum:~$ sudo chown -R qayyum:qayyum /opt/lampp/htdocs
qayyum@qayyum:~$ sudo gedit /opt/lampp/etc/httpd.conf

As stated in many answers it worked well. But in file /httpd.confI found users which are not assumed to be there.
Problem
These users were found:

User daemon
Group daemon
</IfModule>

instead of suspected:

User nobody
Group nogroup

Is it ok to chang it to my user name and nogroup?

abdul qayyum
  • 263
  • 3
  • 15

3 Answers3

0

Yes it it is ok to change. Some configuration files may bring some variables like that, they're just examples. That's it.

LnxSlck
  • 12,146
  • 1
  • 41
  • 51
0

I think you installed apache httpd from source and the user by default is given as daemon. It doesnt matter what user you run apache with, just make sure that user has required permissions in the RootDirectory

beginer
  • 287
  • 2
  • 12
0

Abdul, If you are trying to fix permission of Htdocs In Ubuntu, following this instructions may be helpful: http://www.computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-fix-permission-of-htdocs-in-ubuntu.html Hope it works!

Joseph16
  • 11
  • 3