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
1
vote
1 answer

Set umask 0002 for apache user: www-data

I'm running ubuntu 14.04 and would like to have apaches www-data user to create files that are writable by all users within that same group www-data. So far I've tried to add umask 0002 or umask 002 to /etc/apache2/envvar but didn't have any…
jrn
  • 113
  • 5
1
vote
0 answers

Apache and users write permission issues

On my web server I have two distinct folders, /home/dev/ and /home/prod/, each containing several websites. As you can guess, each directory is owned by the corresponding user, devand prod. The permissions I put on the directories and its…
Bertrand
  • 111
  • 4
1
vote
1 answer

Find a script which writes in /var/tmp

I discover that one of my partition was full. rootfs 20G 1,8G 17G 10% / /dev/root 20G 1,8G 17G 10% / devtmpfs 7,8G 184K 7,8G 1% /dev none 7,8G 0 7,8G 0% /dev/shm none …
Raphaël
  • 143
  • 7
1
vote
1 answer

www-data and server user

I have a WordPress installation on my first VPS, and ownership problem with www-data user and user I created (let's call it user1) to use for login (I disabled root login). I use user1 for FTP, but I can't overwrite the files owned by www-data, and…
user207799
  • 11
  • 1
1
vote
0 answers

How do I allow www-data to (negatively) change the niceness of a process in Linux?

So I'm running a website using django and sometimes I call scripts located on the server by spawning a subprocess in python. When looking at the processes with "top" I see these are called under the user "www-data". Because I want this server to…
user1561753
  • 69
  • 1
  • 6
1
vote
1 answer

Debian virtualenv location

I have a question that I would appreciate some help with. I want to run a number of sites from my debian server, each with their own virtualenv. Should I be creating my virtualenv in the www-data or /home// directory? Alternatively, could…
J.Zil
  • 1,123
  • 3
  • 21
  • 29
1
vote
1 answer

chgrp to group I am not a member of

I'm creating git repositories, ldap accounts and ldap groups using PHP application. Everything works fine, but I have a problem to set right permissions to git repositories. Every ldap user is a member of some ldap group, so I want to change group…
Peter Krejci
  • 123
  • 5
1
vote
1 answer

Using www-data through SSH

For development purposes I'm using www-data (on an ubuntu 11.10 server) to ssh in and fire git commands and basic stuff against the webroot. I don't have things like command history, coloring, etc like I do when I ssh in as any other user, so I'm…
Fluidbyte
  • 119
  • 1
  • 6
1
vote
1 answer

Is suPHP any more secure than alternatives?

I have a web application needs write access to certain folders on a LAMP server. Since suPHP / suEXEC escalate operations to an account you specify, it seems like your server is no more secure because a hacker could still compromise your site (you…
Trent Scott
  • 959
  • 1
  • 12
  • 28
1
vote
2 answers

Webmin / Virtualmin running php as www-data, is locked out of viewing .htaccess and writing

I've asked this on the virtualmin forums, but haven't had any help from there. Recently, "something" happened and it seems that the apache service has gone a bit weird. What it does: it runs all apache traffic as www-data and sometimes spawns the…
Kirill
  • 123
  • 2
  • 7
1
vote
2 answers

Added a new user to group www-data and to sudoers, still not sure why user creates new directories as root

I'm new to Linux systems administration (dealing with users and groups) but I do have a lot of command line experience as a developer. Right now, i'm trying to make sure that three users I've added to my Debian server under the group www-data have…
Lynn
  • 299
  • 6
  • 16
1
vote
1 answer

www-data user doesn't seem to have the access to use php-curl

I'm trying to get the simpletest module for drupal to work, which relies on php-curl to fetch its requests. When I as the user root do the following it works fine: root@server:~# php -a Interactive mode enabled
bobinabottle
  • 579
  • 2
  • 7
  • 19
1
vote
1 answer

Restart rspamd.service as non-root user

I have webpage with button, when user clicks on button, script restart.sh on server is executed. This script contains: #!/bin/bash systemctl restart rspamd.service After clicking on the button, restart.sh is executed, but rspamd.service is not…
MTC11
  • 11
  • 2
1
vote
1 answer

php processes stil running under www-data after configuring php-fpm

Would appreciate any help, I am at my wits end. Objective: Configure php-fpm so I can have multiple websites on the same server that do not have write access to one another, and have php-fpm run as their respective user, not www-data Server…
bjammin
  • 11
  • 3
0
votes
1 answer

Run custom script as root user after completion of www-data user script

I have the following script to update the price, stocks and thereafter refresh the cache. File: /var/scripts/update-web.sh #!/bin/bash echo "$(date)" echo "\n" echo ======================= Updating Prices =======================" source…
MagePsycho
  • 107
  • 6