ftps using curl on Sonic?

Advanced feature discussion, beta programs and unsupported "Labs" features.
4 posts Page 1 of 1
by docorbit » Wed Aug 21, 2024 5:03 pm
I was referred by support to this forum regarding an FTP question I had. I wound up with a new question, so here it is:

I'm trying to do command line FTPS using curl and appear to be running into permissions issues. I'm not sure if it's a quirk of the FTP folders on Sonic or an update to my permissions that I need to request support to change. Please advise next steps.

Steps:

1. I issued the following terminal command, where [userID] is replaced with the user ID I'm trying to use for the particular transfer:

Code: Select all

curl --ssl-reqd -u [userID] ftp://ftp.sonic.net/
Once I responded to the password prompt, I got the following within the response:

Code: Select all

lrwxrwxrwx   1 root     root           23 Aug 19 11:40 public_ftp -> /ftp/pub/users/[userID]
lrwxrwxrwx   1 [userID] user           24 Feb 24  2021 public_html -> /home/WWW_pages/[userID]
2.

Code: Select all

curl --ssl-reqd -u [userID] ftp://ftp.sonic.net/public_ftp/
gets
curl: (9) Server denied you to change to the given directory

Makes sense, since I'm not root.

3.

Code: Select all

curl --ssl-reqd -u [userID] ftp://ftp.sonic.net/public_html/
gets a list of files in my HTML folder as expected.
by eric » Thu Aug 22, 2024 12:36 pm
Looks like one of the symlinks wasn't right to work in the chroot setup there.

I think it's fixed now. Test and report back either way please.
Eric Eisenhart
Senior System Engineer, Sonic.net, Inc.
by docorbit » Thu Aug 22, 2024 8:14 pm
Eric, thank you.

Code: Select all

curl --ssl-reqd -u [userID] ftp://ftp.sonic.net/public_ftp/
now works but don't see any subdirectories that I had on my shell account. I'm able to create a subdirectory via FTPS but it doesn't have the old files.
by docorbit » Thu Aug 22, 2024 8:15 pm
I'm specifically trying to get to a folder I set up that isn't public (so far as I know). I don't want the files to be public, so if this FTP directory is public, please don't move them there.

I did set my ftp backup folder to my access only, but please advise before moving any files.
4 posts Page 1 of 1

Who is online

In total there is 1 user online :: 1 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: loherj and 0 guests