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

How do I enable a group of users to edit files in Ubuntu var/www?

I'm hoping someone will be able to direct or help me understand how I can enable multiple users to edit the same files/folders in Ubuntu EC2 server (11.10). I currently use Transmit, the Terminal window, and Wordpress to upload files to the WP…
rs77
  • 125
  • 5
0
votes
1 answer

Creating svn repo programmatically from a webpage and sudo

We want to automate the creation of the svn repos and trac environments for new projects. Basically, this would mean creating a web script that got some info (like env and repo name, etc) from the user and then executed sudo -u svn svnadmin create…
0
votes
2 answers

www-data user can read /etc/fstab

I'm pretty new at this. So I figured out that apache2 starts processes as www-data user. Suppose this user then starts untrusted code. What if I wanted to disallow this user to read any files (like /etc/fstab for example). How would I go about this?…
ren
  • 337
  • 1
  • 10
0
votes
2 answers

nginx + MySQL + php5 + Wordpress: Too much php5-fpm processes

I have this web server running on nginx + MySQL + php5 + Wordpress. The thing is, the server is to slow and I think it's due to the number of php5-fpm running. Look at the numbers of php5-fpm processes I have. It's too much! The server can't handle…
0
votes
1 answer

Ubuntu, www-data user cannot write to owned file

Help, I have a mission critical VPS runing Ubuntu 10.04 , which I am using for django. the web-app has been running fine for a month and then suddenly I can't write to the sqlite database anymore, getting an "disk i/o" error (no problems reading…
wmbf86
  • 155
  • 1
  • 7
0
votes
2 answers

www-data can upload a file but cant move it after the upload action

I am currently running Apache and PHP on Ubuntu. I have a page where a user is supposed to upload a profile image. The action on the backend is supposed to work like this: Upload file to user directory -- WORKS! Refer to the uploaded file and…
DWLabs
  • 1
  • 2
0
votes
2 answers

Appropriate to use www-data over FTP to restore backups?

I have a a script to automatically backup my WordPress database and files, and another to restore them over FTP. I'm setting up the FTP server and trying to decide which user to allow FTP access. I know I shouldn't use root over FTP, but is it…
yayitswei
  • 103
  • 4
0
votes
1 answer

restart apache under www-data user in ubuntu

I have a SaaS webapp service, so each time a new client is registered in my registration app, it creates a new subdomain and a new apache virtualhost config file, to enable this configuration I need to restart apache (is running on port 8080), how…
quarry32
  • 255
  • 2
  • 11
0
votes
2 answers

Deployment and Ownership issues

As an extreme newbie, I am having difficulty managing ownership and permissions on my first box. What I can't figure out is how to deploy using one user, we will call him deploy and operate my php application with www-data user. Currently as it…
kylemac
  • 101
  • 1
0
votes
1 answer

Unable to List Contents or Create Files in /var/tmp Folder from PHP Executed Bash Script

Objective: I want to trigger a webhook on a private linux-machine (its a local system not connected to internet), which can delete the spool data generated by CUPS server in /var/tmp folder. To achieve this Approach1 I 1st checked the default CUPS…
0
votes
0 answers

SFTP user with web server files access

I have a php website which is running on Nginx on Ubuntu using the www-data user. I want to add SFTP only access (using ssh key) to a new user, having access to the /var/www/websites/company I've followed this…
takeshin
  • 1,471
  • 3
  • 21
  • 28
0
votes
1 answer

Security implications of having less permission restrictions on a group than owner in Unix?

I have an Ubuntu server that's currently hosting a WordPress site using an Apache web server, MySQL and PHP etc. Additionally I have configured VSFTPD and SSH to handle FTPS (implicit FTPS) and SFTP and I have created two accounts foo and bar for…
willowen100
  • 31
  • 2
  • 10
0
votes
1 answer

Control a systemd service through a web application built in python3

I have created a web app in python3 which is hosted on an apache2 web server using the WSGI module. Now one of the requirements of the web application is that it needs to restart a systemd service based on some user inputs. Now I know there is os…
DG12
  • 1
  • 1
0
votes
1 answer

Is it normal if www-data user run more than 1

Today I track my server performance and I found that www-data user is running more than 1 and it use a lot of cpu usage. Can I know is it normal? and if it is not normal can you guys suggest what should I do to reduce my cpu usage? refer this…
aj17
  • 3
  • 1
-1
votes
1 answer

Executing external file as www-data (Ubuntu 16.04)

I want to start a virtual machine through PHP, but i've had no luck. Here's what i've got. Manage…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/linux" class="post-tag grid--cell" title="show questions tagged 'linux'" rel="tag">linux</a> <a href="../../questions/tagged/ubuntu" class="post-tag grid--cell" title="show questions tagged 'ubuntu'" rel="tag">ubuntu</a> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/permissions" class="post-tag grid--cell" title="show questions tagged 'permissions'" rel="tag">permissions</a> <a href="../../questions/tagged/www-data" class="post-tag grid--cell" title="show questions tagged 'www-data'" rel="tag">www-data</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 29 '17 at 00:28">asked Apr 29 '17 at 00:28</time> <a href="../../users/412975/jake-kirby" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/412975.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Jake Kirby" /> </a> <div class="s-user-card--info"> <a href="../../users/412975/jake-kirby" class="s-user-card--link">Jake Kirby</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=4" rel="prev" title="Go to page 4">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=3" rel="" title="Go to page 3">3</a> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=4" rel="" title="Go to page 4">4</a> <div class="s-pagination--item is-selected">5</div> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=6" rel="" title="Go to page 6">6</a> <a class="s-pagination--item" href="../../questions/tagged/www-data_page=6" rel="next" title="Go to page 6"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>