# Access to /var/www/app for media upload

**URL:** https://forum.yunohost.org/t/access-to-var-www-app-for-media-upload/19289
**Category:** Support apps
**Tags:** webtrees, english, deutsch
**Created:** [March 24, 2022, 11:37pm UTC](https://forum.yunohost.org/t/access-to-var-www-app-for-media-upload/19289 "2022-03-24T23:37:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hermann-san](https://forum.yunohost.org/user_avatar/forum.yunohost.org/hermann-san/32/2639_2.png) [@hermann-san](https://forum.yunohost.org/u/hermann-san)
#### Post date: [March 24, 2022, 11:37pm UTC](https://forum.yunohost.org/t/access-to-var-www-app-for-media-upload/19289/1 "2022-03-24T23:37:54Z")

</div>

Hi there,

### My YunoHost server

**Hardware:** VPS bought online  
**YunoHost version:** 4.3.6.2  
**I have access to my server :** Through SSH | through the webadmin | direct access via keyboard / screen | …  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

I have migrated my Webtrees installation from a shared hosting installation to Yunohost.  
Now I have a lot of images and I would like to upload them in bulk via FTP/SSH (or another method).  
However with the yunohost file system structure I don’t know where to put the images. I looks like I don’t have permission to access /var/www/webtrees and I was suspecting that I may be able to upload the images there. Do I need to change the directory permissions for /var/www/app and if yes how?

Your hints are appreciated.  
Thanks.

German:  
Ich hab viele Bilder für Webtrees zu hochladen, aber die Browser-Upload ist mir zu umständlich. Ich vermute das ich die Bilder in /var/www/webtrees hochladen kann, aber ich hab selbst als admin/root keine Berechtigungen darauf. Gibt es einen Weg wie ich trotzdem in dieses Verzeichnis was hochladen kann? Einfach die Gruppenberechtigungen ändern? ich hab das versucht aber es hat nicht funktioniert.

---

<div class="post-metadata">

### Author: ![Limezy](https://forum.yunohost.org/user_avatar/forum.yunohost.org/limezy/32/4983_2.png) [@Limezy](https://forum.yunohost.org/u/Limezy)
#### Post date: [March 25, 2022, 1:26am UTC](https://forum.yunohost.org/t/access-to-var-www-app-for-media-upload/19289/2 "2022-03-25T01:26:33Z")

</div>

Hi ! I don’t know that app but you will probably have to ssh into your server, `sudo su` tu get admin rights, upload your images, and then chown these images to make sure that their owner is the correct unix user.

---

<div class="post-metadata">

### Author: ![hermann-san](https://forum.yunohost.org/user_avatar/forum.yunohost.org/hermann-san/32/2639_2.png) [@hermann-san](https://forum.yunohost.org/u/hermann-san)
#### Post date: [March 25, 2022, 9:45am UTC](https://forum.yunohost.org/t/access-to-var-www-app-for-media-upload/19289/3 "2022-03-25T09:45:21Z")

</div>

I thought I already have admin rights when I log-in as admin 😄  
Thank you very much! 🙏

I’ve uploaded the images via FTP into a folder where I have permissions and then moved the images afterwards into that /var/www/userapp folder  
Before I did that I’ve elevated my permissions with the command **`su`**

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [April 9, 2022, 9:45am UTC](https://forum.yunohost.org/t/access-to-var-www-app-for-media-upload/19289/4 "2022-04-09T09:45:28Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
