Questions tagged [www-data]

Default user under which apache web server is run on Debian-based systems.

www-data is the default user under which apache web server is run on Debian-based systems like Debian and Ubuntu.

77 questions
0
votes
2 answers

BASH-create a 'www-data' crontab that runs a PHP file

I need to get this to run in a cron file in /etc/cron.d/: */15 * * * * php -f /var/www/nextcloud/cron.php ...but, my scripts don't run. It's permissions are set to 644 and I need to create it with a Shell/BASH script. I'm using: echo "*/15 * * * *…
Jesse
  • 217
  • 3
  • 12
0
votes
1 answer

PHP 7 FPM checkconf is throwing invalid user: ‘www-data:www-data’, but I'm not using a www-data user

I'm using a different user for my web services. Screw convention. I don't have www-data set in any php config files: $ grep -rnw /etc -e 'www-data' $ But I'm still getting this error: $ journalctl -u php7.0-fpm php7.0-fpm-checkconf[19642]:…
ki9
  • 1,243
  • 1
  • 13
  • 19
0
votes
1 answer

520 `recv() failed` only when running application as www-data

I'm running a nginx proxy server that fronts a SignalR application with thousands of connected WebSocket clients. To accommodate all of these connections, I have set the following in nginx.conf: worker_rlimit_nofile 60000; events { …
kspearrin
  • 463
  • 1
  • 4
  • 8
0
votes
1 answer

How can a hacker compromising the www-data user account install a rootkit?

Recently a site of mine was hacked. For sure the attacker can execute PHP and start an interactive shell, etc. I understand a hacker can delete files, or delete DB, the site folder, write in the cron of www-data to do some tasks. What I don't…
Beto Aveiga
  • 159
  • 1
  • 9
0
votes
1 answer

apache2 server no permission on new directory

I am setting up an apache2 server on my server. I wanted to use another directory then /var/www. I created the directory /web added my user to the www-data group changed the owner/group and the permission: chown -R root:www-data /web chmod -R 755…
Apatus
  • 21
  • 4
0
votes
1 answer

Can't create files with `ubuntu` user under `/var/www`

I've added ubuntu user to the www-data group and set the folder permissions as follows: sudo gpasswd -a "$USER" www-data find /var/www -type f -exec chmod 0640 {} \; sudo find /var/www -type d -exec chmod 2750 {} \; I can verify that ubuntu has…
Arman H
  • 101
  • 6
0
votes
1 answer

give www-data the permission to write into /home and others root directories

I have a big problem since few days with permissions on my Symfony2 application. The background : I write a PHP app with symfony2 which gives an overview of many Moodle instances on each servers that I own, this app is also able to auto install a…
0
votes
1 answer

How to run php exec for nested scripting on remote machines?

I originally asked this question stackEx, and realized it was a much better fit here. I'm trying to automate the deployment of services on a cluster of hosts from a web-server. I've evoked the php exec function earlier to run simple scripts, and…
pl3bs
  • 25
  • 3
0
votes
1 answer

How do I create files in directory owned by user in same group without sudo?

I have created a user to own website files (drupal) and added that user to www-data, so essentially all files are drupaluser:www-data. I want to go in and put the site in to git but I get permission denied although we are both members of www-data. I…
0
votes
1 answer

Allow dev user to edit files that sometimes belong to www-data

This question has been asked time and time again but none of the answers seem to answer my specific question - either that or I'm not getting it. Anyway, as per the title, I'm trying to limit our web developers to a particular folder eg:…
Touff
  • 183
  • 1
  • 3
  • 14
0
votes
1 answer

Checking the history of www-data user

While normal users have a .bash_history in their home directory, the www-data user does not have a home directory. As such, are there any means to track the history of the www-data user?
Reuben L.
  • 111
  • 1
  • 7
0
votes
1 answer

/usr/sbin/apache2 -k start command in HTOP running consistently. Is it a bot?

I have got a VPS with six websites running on it. None of them get very much traffic at all, maybe 10-20 a day each. As far as I am aware, /usr/sbin/apache2 -k start should represent a user hitting a site. (user in htop is www-data.) I am watching…
Eric
  • 37
  • 2
  • 5
0
votes
0 answers

Scripts not running as www-data on Ubuntu Server

I have a dedicated server running Ubuntu 10.04 LTS. Every other apache setup I've used defaults to running scripts as www-data. This one, however, is running everything as my username on the server and it is really messing things up. Can anyone…
CoderJK
  • 113
  • 5
0
votes
2 answers

Does changing the home directory of www-data break anything (esp. apache)?

We're running on Ubuntu and have an Apache2 webserver with some apps that require cron-jobs installed. The cron jobs occasionally send mails which of course goes to the www-data user. The home dir of that user is /var/www but for security reasons…
thoni56
  • 113
  • 5
0
votes
1 answer

Getting Redmine integrated with svn while running passenger as user www-data

I'm having some problems getting passenger and svn to work in Redmine. System Ubuntu 12.04 Apache 2.2.22 PassengerRuby 1.9.1 Passenger 3.0.19 Problem When I let Passenger do it's normal user switching and run as www-data, svn integration doesn't…
luddet
  • 101
  • 2