webMAN MOD FTP Server SITE Commands: Complete Guide to Extended PS3 Control
webMAN MOD supports over 20 custom SITE commands—including FLASH, CHMOD, INSTALL, MAPTO, and SHUTDOWN—that allow remote management of PS3 system functions, file permissions, and game mounting directly through any standard FTP client.
The webMAN MOD FTP server SITE commands extend the standard File Transfer Protocol with PlayStation 3-specific functionality, enabling system control without physical access to the console. These extensions are implemented in the include/ftp.h header file of the aldostools/webMAN-MOD repository and parsed through the else if(_IS(cmd, "SITE")) conditional block. Whether you need to toggle flash memory access, install PKG files remotely, or reboot the system, these SITE commands provide direct low-level control over the PS3 hardware.
Overview of FTP SITE Command Implementation
In standard FTP, the SITE command provides a mechanism for server-specific extensions. webMAN MOD leverages this hook to expose PS3 system calls through the FTP control connection.
The command parser resides in include/ftp.h within the main FTP command loop. When the server receives a line starting with SITE, it tokenizes the subcommand and routes to the appropriate handler. Many commands are conditionally compiled using preprocessor directives such as #ifdef LITE_EDITION, #ifdef USE_NTFS, #ifdef PKG_HANDLER, and #ifdef FIX_GAME, meaning the available command set depends on your specific build configuration.
Complete List of webMAN MOD SITE Commands
System Control Commands
These commands manage the PS3 power state and FTP service lifecycle.
- SITE SHUTDOWN — Powers off the console immediately. Implemented at
include/ftp.hlines 4‑6. - SITE RESTART or SITE REBOOT — Reboots the system. Also creates a
noscanfile to prevent library rescanning on boot. Found at lines 10‑13. - SITE STOP — Terminates the FTP daemon while keeping the rest of webMAN MOD active. Located at lines 30‑35.
- SITE TIMEOUT <seconds> — Adjusts the socket receive timeout for the control connection. Defined at lines 38‑44.
Flash and Storage Management
These commands manipulate low-level storage partitions and external filesystems.
- SITE FLASH <ON|OFF> — Toggles the dev_blind (flash) partition, enabling or disabling write access to system firmware files. Implementation spans
include/ftp.hlines 1247‑6060. - SITE NTFS — When compiled with
USE_NTFS, mounts all NTFS volumes and returns the volume count. Found at lines 20‑28. - SITE EXTGD <ON|OFF> — Toggles the external game-data (extgd) feature, redirecting game data to external USB storage. Requires
EXT_GDATAflag at lines 13‑19.
File Operations and Permissions
Standard Unix-style file management extended to the PS3 filesystem.
- SITE CHMOD <mode> <file> — Changes Unix permissions on a file or directory (e.g.,
SITE CHMOD 777 /dev_hdd0/boot_plugins.txt). Implemented at lines 63‑82. - SITE COPY <file> — Marks a source file or folder for a subsequent paste operation. Located at lines 65‑71.
- SITE PASTE <dest> — Copies the previously marked file to the destination path. Found at lines 73‑90.
- SITE INSTALL <file.pkg> — Installs a PKG file directly from the FTP session without using the XMB. Requires
PKG_HANDLERat lines 86‑94.
Game Mounting and Maintenance
Commands specific to game management and Cobra payload integration.
- SITE MAPTO <path> — (Cobra‑only) Maps the current working directory to another path or mounts a game folder as a virtual disc. Defined at lines 22‑36.
- SITE FIX <path> — When compiled with
FIX_GAME, runs an auto‑fix routine on a game folder or ISO to repair permissions or missing files. Located at lines 39‑57. - SITE UMOUNT — Unmounts the currently mounted game and returns the console to the XMB. Found at lines 15‑17.
Help and Discovery
- SITE HELP — Lists all available SITE commands supported by the current build. This output is generated at lines 1181‑1208 and dynamically reflects which conditional features are compiled in.
Practical Usage Examples
The following examples demonstrate how to execute these commands from a standard command‑line FTP client connected to a PS3 running webMAN MOD.
# Connect to the PS3 FTP server
ftp 192.168.1.100
Connected to 192.168.1.100.
220 webMAN FTP server ready
# Authenticate (anonymous login is typically accepted)
Name (192.168.1.100:user): anonymous
331 User name okay, need password.
Password:
230 User logged in, proceed.
# List available SITE commands
ftp> SITE HELP
214-CMDs:
SITE FLASH
SITE CHMOD 777 <file>
SITE NTFS
SITE INSTALL <file>
SITE EXTGD <ON/OFF>
SITE MAPTO <path>
SITE FIX <path>
SITE UMOUNT
SITE COPY <file>
SITE PASTE <dest>
SITE SHUTDOWN
SITE RESTART
SITE STOP
SITE TIMEOUT <secs>
214 End
# Enable write access to flash memory
ftp> SITE FLASH ON
250 Requested file action okay, completed.
# Change permissions on a plugin configuration file
ftp> SITE CHMOD 775 /dev_hdd0/boot_plugins.txt
250 Requested file action okay, completed.
# Mount NTFS volumes (if compiled with USE_NTFS)
ftp> SITE NTFS
221 OK [NTFS VOLUMES: 1]
# Install a PKG file remotely
ftp> SITE INSTALL /dev_hdd0/packages/game_update.pkg
250 Requested file action okay, completed.
# Copy a save file between user accounts
ftp> SITE COPY /dev_hdd0/home/00000001/savedata/BCUS12345
200 Command okay.
ftp> SITE PASTE /dev_hdd0/home/00000002/savedata/BCUS12345
250 Requested file action okay, completed.
# Reboot the system
ftp> SITE REBOOT
221 Service closing control connection.
Implementation and Build Configuration
The extended SITE command set is not static; it is conditionally compiled based on build flags defined in the webMAN MOD source. The main implementation file include/ftp.h uses preprocessor directives to include or exclude specific functionality:
LITE_EDITION— Removes many advanced commands to reduce binary size.USE_NTFS— Required for the SITE NTFS command to mount NTFS volumes.PKG_HANDLER— Enables the SITE INSTALL command for remote PKG installation.EXT_GDATA— Controls availability of SITE EXTGD for external game data redirection.FIX_GAME— Determines whether SITE FIX is available for game folder repair.
The command parser identifies SITE requests in the main FTP command loop using the macro _IS(cmd, "SITE"). Upon detection, the server tokenizes the subsequent arguments and routes to the appropriate handler functions defined throughout include/ftp.h.
Summary
- webMAN MOD extends standard FTP with over 20 custom SITE commands for direct PS3 system control.
- The implementation resides in
include/ftp.h, parsed via theelse if(_IS(cmd, "SITE"))conditional block. - Commands cover system power (SHUTDOWN, REBOOT), flash access (FLASH), file permissions (CHMOD), game management (MAPTO, UMOUNT, FIX), and remote PKG installation (INSTALL).
- Availability depends on build flags:
USE_NTFS,PKG_HANDLER,EXT_GDATA,FIX_GAME, andLITE_EDITION. - All commands are discoverable via SITE HELP and work with any standard FTP client connected to the PS3.
Frequently Asked Questions
What are FTP SITE commands in webMAN MOD?
SITE commands are custom extensions to the FTP protocol that webMAN MOD implements to expose PlayStation 3-specific functionality. Unlike standard FTP commands limited to file transfers, these allow remote execution of system operations such as rebooting the console, changing Unix file permissions, mounting NTFS drives, and installing PKG files directly through an FTP connection to port 21.
How do I see which SITE commands are available on my webMAN MOD installation?
Connect to your PS3 via FTP and issue the SITE HELP command. The server returns a dynamically generated list (lines 1181‑1208 in include/ftp.h) that reflects only the commands compiled into your specific build. If you are running the LITE_EDITION, many advanced commands will be omitted from this list compared to the full build.
Why does the SITE INSTALL command fail to install PKG files?
The SITE INSTALL command requires webMAN MOD to be compiled with the PKG_HANDLER flag. If this feature is disabled in your build, the FTP server will return an error or silently ignore the command. Additionally, ensure the PKG file path is accessible and that you have sufficient permissions on the destination storage device before attempting remote installation.
Can I use webMAN MOD SITE commands with FileZilla or WinSCP?
Yes. Any standard FTP client that supports raw command input can execute these extensions. In FileZilla, use the "Enter custom command" option (usually Ctrl+Shift+O) and type SITE FLASH ON or any other supported command. In WinSCP, open the console (Ctrl+T) and issue SITE commands directly. The server processes these identically to command-line FTP clients.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →