ProFTP, use the root directory?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

ProFTP, use the root directory?

Post by crik91 »

Hi, I want to set up ProFTP to use "/" as root directory when I log via FTP client. How's that possible? Tried to set "/" as path directory but it seems not working.

Thank you!
User avatar
lucasmenno
Posts: 63
Joined: Sun Jul 23, 2017 11:57 am
Location: Germany

Re: ProFTP, use the root directory?

Post by lucasmenno »

In
proftpd.conf
write

Code: Select all

DefaultRoot /
.
and restart proftpd

Code: Select all

service proftpd restart 
(i think)
Everything i say can and maybe will be corrected by the DietPi seniors in this forum :D
BananaPi M1 using image for BananaPi Pro.
-1TB HDD, Network storage,Downloader(JD,Deluge,ripme) testing what looks interesting.
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Re: ProFTP, use the root directory?

Post by crik91 »

Yeah, when I said:

Code: Select all

Tried to set "/" as path directory but it seems not working.
I mean that I just tried with no success. Cannot see the root of my MicroSD.
User avatar
lucasmenno
Posts: 63
Joined: Sun Jul 23, 2017 11:57 am
Location: Germany

Re: ProFTP, use the root directory?

Post by lucasmenno »

Did you try setting Proftpd as root user?
Everything i say can and maybe will be corrected by the DietPi seniors in this forum :D
BananaPi M1 using image for BananaPi Pro.
-1TB HDD, Network storage,Downloader(JD,Deluge,ripme) testing what looks interesting.
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Re: ProFTP, use the root directory?

Post by crik91 »

Yes, tried.
User avatar
lucasmenno
Posts: 63
Joined: Sun Jul 23, 2017 11:57 am
Location: Germany

Re: ProFTP, use the root directory?

Post by lucasmenno »

Got it working with:

Code: Select all

DefaultRoot / root
DefaultChdir / root
set in proftpd.conf.

Never liked proftpd, ot it didn't liked me, but i hope this is what you searched for :)
Everything i say can and maybe will be corrected by the DietPi seniors in this forum :D
BananaPi M1 using image for BananaPi Pro.
-1TB HDD, Network storage,Downloader(JD,Deluge,ripme) testing what looks interesting.
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Re: ProFTP, use the root directory?

Post by crik91 »

lucasmenno wrote:Got it working with:

Code: Select all

DefaultRoot / root
DefaultChdir / root
set in proftpd.conf.

Never liked proftpd, ot it didn't liked me, but i hope this is what you searched for :)
Damn, worked! Thank you very much!
crik91
Posts: 48
Joined: Mon Mar 20, 2017 7:51 am

Re: ProFTP, use the root directory?

Post by crik91 »

Hi, it seems that I don't have write permissions. With an FTP client I get 500: Permission denied.
wr1nkles
Posts: 3
Joined: Thu Jan 18, 2018 4:21 pm
Location: MA, USA

Re: ProFTP, use the root directory?

Post by wr1nkles »

crik91 wrote:Hi, it seems that I don't have write permissions. With an FTP client I get 500: Permission denied.
Did you ever resolve this? I just setup dietpi for the first time with ProFTPD.
I am able to connect from my Mac using Filezilla to Pi using user: root and pw: dietpi, but one line states "Insecure server, it does not support FTP over TLS."

When I try to transfer files to Pi, I get "Response: 550 background.jpg: Permission denied. Error: Critical file transfer error after transferring 262,144 bytes in 1 second"

Any help would be greatly appreciated!
There's two things you should never have to watch being made. One is music, and the other is sausages.
wr1nkles
Posts: 3
Joined: Thu Jan 18, 2018 4:21 pm
Location: MA, USA

Re: ProFTP, use the root directory?

Post by wr1nkles »

wr1nkles wrote:
crik91 wrote:Hi, it seems that I don't have write permissions. With an FTP client I get 500: Permission denied.
Did you ever resolve this? I just setup dietpi for the first time with ProFTPD.
I am able to connect from my Mac using Filezilla to Pi using user: root and pw: dietpi, but one line states "Insecure server, it does not support FTP over TLS."

When I try to transfer files to Pi, I get "Response: 550 background.jpg: Permission denied. Error: Critical file transfer error after transferring 262,144 bytes in 1 second"

Any help would be greatly appreciated!

It connects with user:dietpi pw:dietpi. What is that about?
There's two things you should never have to watch being made. One is music, and the other is sausages.
Post Reply