How to configure users, servers, and permissions - 100% Free & Open Source
Users can be configured through the GUI interface with the following options:
Give many users the same access once: Users → Groups → Add Group. A group has members, listeners (with listener permissions) and folders (virtual paths with the same permissions as a user's).
Configure FTP/SFTP listeners through the GUI:
tlsCertPath and tlsKeyPath settings to use your ownssh_host_rsa_key); its SHA256 fingerprint is shown on each SFTP listener so users can verify the serversshAlgorithms):
modern (default) offers no SHA-1 — key exchange curve25519 / DH group 16, 18 / group exchange
with SHA-256, ciphers ChaCha20-Poly1305, AES-GCM, AES-CTR, MACs HMAC-SHA2 (encrypt-then-MAC first),
host key signatures Ed25519 / rsa-sha2-512 / rsa-sha2-256. Clients that can only use ssh-rsa
(SHA-1) signatures are disconnected. compatible adds SHA-1 and NIST curves for old clientstlsMinVersion): TLS 1.2 (default) or 1.3Security → Single Sign-On adds a "Sign in with…" button to the web GUI's and the file portal's sign-in pages. It works with any OpenID Connect provider: Microsoft Entra ID, Google Workspace, Okta, Keycloak, Authentik.
https://login.microsoftonline.com/<tenant id>/v2.0, username claim preferred_usernamehttps://accounts.google.com, username claim emailhttps://keycloak.example.com/realms/<realm>[email protected] should sign in as the SLightSFTP user alice.Webhooks → Email notifications sends email through your SMTP server (Microsoft 365, Gmail, your provider, or a local relay).
EMAIL_FAILED).Security → Certificate (Let's Encrypt) gets a free, trusted certificate for the web GUI, the file portal, WebDAV (when HTTPS is on) and FTPS listeners, and renews it 30 days before it expires, without a restart.
/.well-known/acme-challenge/ through works too) and set the port to 0.CAP_NET_BIND_SERVICE on Linux.config.db (acme-account.key,
acme.crt, acme.key); the tlsCertPath / tlsKeyPath settings point at them.
Turning it off keeps the last certificate in use until you change those settings.PUT /api/acme).Tick Listeners → WebDAV to serve users' files at https://<server>:<web port>/webdav/.
Users need web file access (Edit user); they sign in with their username and password and see the
same folders, with the same permissions, as over SFTP.
https://server:3000/webdav/. Windows only sends passwords over HTTPS, and only to a certificate it trusts
(install a real certificate, or trust the self-signed one); files over 50 MB need the
FileSizeLimitInBytes registry value of the WebClient service raised.https://server:3000/webdav/.davs://server:3000/webdav/), davfs2, or
rclone with a webdav remote (vendor "other").A virtual path can live in a cloud bucket instead of a folder on this computer.
users/alice keeps each user in their own folder; leave it empty to share the whole bucketGranular permissions can be set per user and per virtual path:
APPE, resuming an upload at its current end); Append alone never creates a file and never changes bytes already there.. can never reach files outside them/docs/private over /docs)/ mapping sees the folders leading to their mappings (for /photos/2024: / shows photos, which shows 2024); those folders are read-onlySITE CHMOD is accepted but never changes file modes (it needs the listener's Edit permission)All configuration is stored in SQLite database (config.db):
config.db.v<old schema>-<time>.bak (the newest three are kept). To go back,
reinstall the old version and rename the copy to config.db. A newer database is never
opened by an older versionsecret.key, created next to config.db on first start
(readable by its owner only). Keep it with config.db: without it the stored secrets
cannot be read and must be entered againSLIGHTSFTP_MASTER_KEY (64 hex characters, base64 of 32 bytes, or a
passphrase) to keep the key outside the data folder, e.g. in a secrets managerbackups next to config.db) and the newest N (default 7) are kept;
set a passphrase to encrypt them. Point the folder at another disk or a synced locationSLIGHTSFTP_MASTER_KEY, the key is not in the backup; restore with the same keyUsername: admin
Password: admin123
⚠️ You must choose a new password the first time you sign in with the default one.