Nginx for Cockpit
SEYSOFT
Manage the nginx web server from your browser inside Cockpit: static sites, reverse proxies, config editing and logs, with rollback.
by SEYSOFT · Version 1.0.0
Share folders with Windows, Mac and Linux computers from your browser inside Cockpit. Manage Samba shares and users without smb.conf.
A module for Cockpit that shares folders with Windows, Mac and Linux computers using Samba, and manages Samba users, without editing smb.conf by hand. It is built to look like a factory Cockpit page (PatternFly 6) and follows Cockpit's light and dark setting.
It is self-contained: nothing else needs to be installed, it makes no network connections of its own, and it needs no account, repository or other module. It does not install Samba for you. If Samba is missing, the page tells you (sudo dnf install samba). It is static files only (HTML, CSS and JavaScript), with no compiled code and no scripts run at install time.
smb and nmb services, start at boot, a firewall check with a one-click "Allow Samba", a configuration test (testparm), and the workgroup and server description.smb.conf; your files stay.Every change to smb.conf is checked with testparm before it takes effect and is rolled back automatically if Samba rejects it. Start, restart and reload refuse to run while the configuration has a problem.
chcon hint shown in the share dialog.smb.conf only (not the Samba registry). There is no Active Directory or domain join support.Download the release file, cockpit-samba-1.0.0-manual.tar.gz, then choose one:
System-wide (all Cockpit users, needs root)
sudo tar -C /usr/share/cockpit -xzf cockpit-samba-1.0.0-manual.tar.gz
One user only (no root needed to install)
mkdir -p ~/.local/share/cockpit
tar -C ~/.local/share/cockpit -xzf cockpit-samba-1.0.0-manual.tar.gz
If Samba isn't installed yet:
sudo dnf install samba
Then log out of Cockpit and back in. Cockpit reads its module list at login, and "Samba" appears in the left menu. If it doesn't, run this as the same user to see whether Cockpit found it:
cockpit-bridge --packages | grep -i samba
Updating: there is no automatic update. Unpack the newer archive over the old one and log in again.
Removing
sudo rm -rf /usr/share/cockpit/samba
sudo rm -rf /var/lib/cockpit-samba
For a single-user install, remove ~/.local/share/cockpit/samba instead. The second line is optional and deletes the saved smb.conf backups. Log out and back in afterwards. Your shares, Samba users and smb.conf stay exactly as they are.
Files it uses on your server
| Path | Purpose |
|---|---|
/usr/share/cockpit/samba/ (or ~/.local/share/cockpit/samba/) |
The module itself |
/etc/samba/smb.conf |
The configuration it reads and edits |
/var/lib/cockpit-samba/backups/ |
Timestamped backups before every change (root only; created on first change) |
SHA-256 8aad4e90d67d75443bf69ffac6cd2990e90f4dfdc6588d6d82348da44ab3c997
Initial release. Cockpit module for Samba: service control with config test, shares, users and passwords, live activity, smb.conf editor with backups and automatic rollback, and a one-click firewall allow.
To check a download, compare the SHA-256 above with sha256sum <file> on Linux and macOS, or Get-FileHash <file> in PowerShell. If they differ, download it again.
Software is provided as it is, and any open-source components keep their own licences. Need help with it? Contact support.
SEYSOFT
Manage the nginx web server from your browser inside Cockpit: static sites, reverse proxies, config editing and logs, with rollback.
SEYSOFT
Manage the Apache web server from your browser inside Cockpit: sites, reverse proxies, HTTPS, config editing with rollback, logs and SELinux.
SEYSOFT
Browser control panel for a HackRF One: live spectrum and waterfall, tune and listen, a channel scanner and an RF activity monitor, in Docker.