Possible to FTP to DietPi and get to /mnt?

Having issues with your DietPi installation or found a bug? Post it here.
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

I have an app on my phone which I use to FTP to my DietPi when I want to move things from my Downloads folder to my Plex folder. I've just added an external drive to my Pi, using the driver-manager I've got it to mount to /mnt/External but when I FTP through my phone or on my laptop I can't navigate to /mnt

Is it possible to get access to this directory through ftp? I'm currently connecting using the dietpi username
User avatar
MichaIng
Site Admin
Posts: 3097
Joined: Sat Nov 18, 2017 6:21 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by MichaIng »

Did you install the FTP server via dietpi-software? If so which one did you choose, ProFTPD or vsftpd?
By default we setup the servers to have the document root at /mnt/dietpi_userdata, but it can be changed.

E.g. check out the "Destination directory" tab here: https://dietpi.com/docs/software/file_servers/#proftpd
User avatar
WarHawk
Posts: 738
Joined: Thu Jul 20, 2017 8:55 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by WarHawk »

I use an app on my android phone called ESfile explorer that will allow me to see the network shares

I do believe it supports SCP as well

https://android.stackexchange.com/quest ... equivalent
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

Thanks I'm using proFTPD I've made that change but now when I try to copy something from local to the external I get a permission denied message, is there something else I need to do to give it permissions?
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

you are accessing the FTP share as user DietPi. You would need to check permissions on OS level

Code: Select all

ls -la /mnt/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

Thanks, that gives me:
drwxr-xr-x 8 root root 4096 Mar 15 21:18 .
drwxr-xr-x 21 root root 4096 Jan 28 17:33 ..
drwxrwxrwx 1 root root 4096 Mar 16 13:08 External
drwxr-xr-x 3 root root 4096 Feb 27 09:05 dietpi-backup
drwxrwxr-x 11 dietpi dietpi 4096 Feb 2 11:27 dietpi_userdata
drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 2020 ftp_client
drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 2020 nfs_client
drwxrwxr-x 2 dietpi dietpi 4096 Sep 10 2020 samba
External is my attached drive, how can I add dietpi to it? or can I FTP as root? When I've tried that before it never connected.
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

the folder External has full r/w permission for everybody.

Code: Select all

drwxrwxrwx 1 root root 4096 Mar 16 13:08 External
Let's check inside

Code: Select all

ls -la /mnt/External
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

Thank you, that give me:
root@DietPi:/mnt# ls -la /mnt/External
total 8
drwxrwxrwx 1 root root 0 Mar 15 22:20 '$RECYCLE.BIN'
drwxrwxrwx 1 root root 4096 Mar 16 13:08 .
drwxr-xr-x 8 root root 4096 Mar 15 21:18 ..
drwxr-xr-x 1 root root 0 Mar 15 19:04 Movies
drwx------ 1 root root 0 Mar 15 19:04 'System Volume Information'
drwxr-xr-x 1 root root 0 Mar 15 19:04 TV
d--------- 1 root root 0 Mar 15 22:20 found.000
In filezilla if I try to create a new folder in say Movies I get
550 New directory: Permission denied
User avatar
Joulinar
Posts: 5115
Joined: Sat Nov 16, 2019 12:49 am

Re: Possible to FTP to DietPi and get to /mnt?

Post by Joulinar »

what file system format you are using on the external device?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
AJRobson
Posts: 48
Joined: Fri Jan 08, 2021 2:23 pm

Re: Possible to FTP to DietPi and get to /mnt?

Post by AJRobson »

I formatted on my PC so I can use it on my pi and Windows if needed so it's NTFS
Post Reply