@george1421 @Sebastian-Roth I’m back, This one took forever to do and I was interrupted several times. one road block to be aware of having people do this in the future is windows FTP.EXE has a password character limit of 32 so if the auto-gen password is longer than that (mine is) it gets Truncated you can see this in action using FTP -d on windows and looking at the commands its actually sending, I don’t know what genius decided that was the limit but I can’t figure out how to get around it That being said…
@george1421 FTP testing:
I was able to get ftp’d into the fog server using Filezilla and can create and remove folders in both /images and /images/dev and then see the changes locally on the server. Here is the filezilla “log” history logged in as fogproject
Status: Logged in
Status: Retrieving directory listing...
Status: Calculating timezone offset of server...
Status: Timezone offset of server is 0 seconds.
Status: Directory listing of "/home/fogproject" successful
Status: Retrieving directory listing of "/"...
Status: Directory listing of "/" successful
Status: Retrieving directory listing of "/images"...
Status: Directory listing of "/images" successful
Status: Creating directory '/images/New directory'...
Status: Retrieving directory listing of "/images/New directory"...
Status: Directory listing of "/images/New directory" successful
Status: Retrieving directory listing of "/images"...
Status: Directory listing of "/images" successful
Status: Retrieving directory listing of "/images"...
Status: Directory listing of "/images" successful
Status: Retrieving directory listing of "/images/dev"...
Status: Directory listing of "/images/dev" successful
Status: Creating directory '/images/dev/New directory'...
Status: Retrieving directory listing of "/images/dev/New directory"...
Status: Directory listing of "/images/dev/New directory" successful
Status: Retrieving directory listing of "/images/dev"...
Status: Directory listing of "/images/dev" successful
Permissions
ls -la /var/www/html/fog/service
total 184
drwxr-xr-x 3 www-data www-data 4096 Jan 3 09:03 .
drwxr-xr-x 10 www-data www-data 4096 Jan 3 09:05 ..
-rw-r--r-- 1 www-data www-data 675 Jan 3 09:03 alo-bg.php
-rw-r--r-- 1 www-data www-data 632 Jan 3 09:03 autologout.php
-rw-r--r-- 1 www-data www-data 551 Jan 3 09:03 auto.register.php
-rw-r--r-- 1 www-data www-data 1178 Jan 3 09:03 av.php
-rw-r--r-- 1 www-data www-data 582 Jan 3 09:03 blame.php
-rw-r--r-- 1 www-data www-data 568 Jan 3 09:03 capone.php
-rw-r--r-- 1 www-data www-data 1041 Jan 3 09:03 checkcredentials.php
-rw-r--r-- 1 www-data www-data 642 Jan 3 09:03 debug.php
-rw-r--r-- 1 www-data www-data 724 Jan 3 09:03 dircleanup-dirs.php
-rw-r--r-- 1 www-data www-data 646 Jan 3 09:03 displaymanager.php
-rw-r--r-- 1 www-data www-data 1574 Jan 3 09:03 getversion.php
-rw-r--r-- 1 www-data www-data 594 Jan 3 09:03 greenfog.php
-rw-r--r-- 1 www-data www-data 1289 Jan 3 09:03 grouplisting.php
-rw-r--r-- 1 www-data www-data 8331 Jan 3 09:03 hostinfo.php
-rw-r--r-- 1 www-data www-data 1190 Jan 3 09:03 hostnameloop.php
-rw-r--r-- 1 www-data www-data 735 Jan 3 09:03 hostname.php
-rw-r--r-- 1 www-data www-data 1289 Jan 3 09:03 imhttps://stackoverflow.com/questions/55045291/azure-ftp-login-via-command-line-batch-file-failsagelisting.php
-rw-r--r-- 1 www-data www-data 2498 Jan 3 09:03 inventory.php
drwxr-xr-x 2 fogproject www-data 4096 Jan 3 09:03 ipxe
-rw-r--r-- 1 www-data www-data 620 Jan 3 09:03 jobs.php
-rw-r--r-- 1 www-data www-data 847 Jan 3 09:03 locationcheck.php
-rw-r--r-- 1 www-data www-data 1349 Jan 3 09:03 locationlisting.php
-rw-r--r-- 1 www-data www-data 559 Jan 3 09:03 man.hostexists.php
-rw-r--r-- 1 www-data www-data 575 Jan 3 09:03 mc_checkin.php
-rw-r--r-- 1 www-data www-data 580 Jan 3 09:03 Post_Stage2.php
-rw-r--r-- 1 www-data www-data 588 Jan 3 09:03 Post_Stage3.php
-rw-r--r-- 1 www-data www-data 578 Jan 3 09:03 Post_Wipe.php
-rw-r--r-- 1 www-data www-data 551 Jan 3 09:03 Pre_Stage1.php
-rw-r--r-- 1 www-data www-data 1292 Jan 3 09:03 printerlisting.php
-rw-r--r-- 1 www-data www-data 625 Jan 3 09:03 PrinterManager.php
-rw-r--r-- 1 www-data www-data 561 Jan 3 09:03 Printers.php
-rw-r--r-- 1 www-data www-data 2150 Jan 3 09:03 progress.php
-rw-r--r-- 1 www-data www-data 845 Jan 3 09:03 register.php
-rw-r--r-- 1 www-data www-data 739 Jan 3 09:03 servicemodule-active.php
-rw-r--r-- 1 www-data www-data 1772 Jan 3 09:03 snapcheck.php
-rw-r--r-- 1 www-data www-data 1309 Jan 3 09:03 snapinlisting.php
-rw-r--r-- 1 www-data www-data 626 Jan 3 09:03 snapins.checkin.php
-rw-r--r-- 1 www-data www-data 632 Jan 3 09:03 snapins.file.php
-rw-r--r-- 1 www-data www-data 4056 Jan 3 09:03 Test.php
-rw-r--r-- 1 www-data www-data 642 Jan 3 09:03 updates.php
-rw-r--r-- 1 www-data www-data 667 Jan 3 09:03 usercleanup-users.php
-rw-r--r-- 1 www-data www-data 601 Jan 3 09:03 usertracking.report.php
ls -la /var/www/html/fog/service/ipxe
total 54692
drwxr-xr-x 2 fogproject www-data 4096 Jan 3 09:03 .
drwxr-xr-x 3 www-data www-data 4096 Jan 3 09:03 ..
-rw-r--r-- 1 fogproject www-data 1966 Jan 3 09:03 advanced.php
-rw-r--r-- 1 fogproject www-data 16272 Jan 3 09:03 bgdark.png
-rw-r--r-- 1 fogproject www-data 21280 Jan 3 09:03 bg.png
-rw-r--r-- 1 fogproject www-data 1139 Jan 3 09:03 boot.php
-rw-r--r-- 1 fogproject www-data 8389280 Jan 3 09:03 bzImage
-rw-r--r-- 1 fogproject www-data 7808288 Jan 3 09:03 bzImage32
-rw-r--r-- 1 fogproject www-data 234697 Jan 3 09:03 grub.exe
-rw-r--r-- 1 fogproject www-data 592 Jan 3 09:03 index.php
-rw-r--r-- 1 fogproject www-data 18865084 Jan 3 09:03 init_32.xz
-rw-r--r-- 1 fogproject www-data 19689768 Jan 3 09:03 init.xz
-rw-r--r-- 1 fogproject www-data 25340 Jan 3 09:03 memdisk
-rw-r--r-- 1 fogproject www-data 1839104 Jan 3 09:03 memtest.bin
-rw-r--r-- 1 fogproject www-data 29719 Jan 3 09:03 refind.conf
-rw-r--r-- 1 fogproject www-data 262592 Jan 3 09:03 refind.efi
-rw-r--r-- 1 fogproject www-data 201600 Jan 3 09:03 refind_ia32.efi
-rw-r--r-- 1 fogproject www-data 208776 Jan 3 09:03 refind_x64.efi
@Sebastian-Roth FTP testing
I am able to access /var/www/html/fog/service/ipxe
the backup directory already exists
I am unable to create a file in that folder. from the filezilla log
Status: Logged in
Status: Starting upload of C:\Users\[my windows profile]\Desktop\test.bin
Command: CWD /var/www/fog/service/ipxe/backup
Response: 250 Directory successfully changed.
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV
Response: 227 Entering Passive Mode (10,104,1,104,252,158).
Command: STOR test.bin
Response: 553 Could not create file.
Error: Critical file transfer error
So i’m assuming it is a permission error somewhere in the ipxe folder, i’ll wait and let you guys tell me what to actually run so I don’t screw it up.