Delete FTP files

Posted by ydwood 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
Delete FTP files
March 04, 2018 01:32PM
I enter the piratebox by FTP Log: Alarm Pass: Alarm but can not erase the pictures put in the shared directory do you have the trick to erase them?confused smiley

rm /opt/piratebox/share/Shared/IMG_20180301_080111.jpg: permission denied
s[192.168.77.1]
thank you for the answer
Re: Delete FTP files
March 04, 2018 06:57PM
Hi,
as long as you do not have the Shared folder on the USB stick, it is a bit difficult to delete files off from the box. The reason is, that the Shared folder is created and written by a different user then "alarm".
You need to login via SSH and run the following command:

sudo rm /opt/piratebox/share/Shared/IMG_20180301_080111.jpg

With the next PirateBox version we are going to improve that issue.

best regards Matthias
Re: Delete FTP files
March 11, 2018 02:58PM
Thank you Matthias for the answer a little administrator button in the menu of the piratebox would be welcome cordially ydwoodsmileys with beer
Re: Delete FTP files
March 19, 2018 07:44AM
Yes, but we do not have any admin interface for deleting files ..yet.. :-(
Re: Delete FTP files
May 09, 2018 10:26PM
Hey a quick workaround I found today as I have just started using my Pi Zero W with a 64gb MicroSD, you can change/add the alarm user as an owner to the share directory by entering the following via SSH

sudo chown -R alarm /mnt/sdshare/share/

This will then allow you to make all the edits and deletions you want via SFTP

/excuse the edits thumbs up

| Raspberry Pi Zero W | 64gb Sandisk MicroSD |



Edited 4 time(s). Last edit at 05/10/2018 03:59PM by Dr_Frankenstein.
Re: Delete FTP files
May 10, 2018 05:03PM
Thank you Dr_Frankenstein you are a champion of the modifhot smileysmileys with beer
Re: Delete FTP files
May 10, 2018 05:33PM
I adapted your order to my Pi Z W:
sudo chown -R alarm / opt / piratebox / share /
and it rolls inFTP with WinScp smileys with beersmiling bouncing smiley