-
Notifications
You must be signed in to change notification settings - Fork 5
cups_toggle_macos.sh
Corey Watson edited this page Dec 1, 2025
·
1 revision
Toggles the CUPS (Common Unix Printing System) web interface on or off.
This script toggles the CUPS (Common Unix Printing System) web interface on or off. If currently enabled, disables it. If disabled, enables it.
Toggles the CUPS web interface on or off. If currently enabled, disables it. If disabled, enables it.
- macOS or Linux with CUPS installed
- cupsctl command available
- Administrator/root privileges
No configuration required.
- Checks for root privileges
- Checks current status of CUPS web interface
- If disabled, enables it and displays URL (http://localhost:631)
- If enabled, disables it
- Reports result
- No secrets exposed in output
- Runs with elevated privileges (sudo required)
- CUPS web interface provides access to printer configuration
- 0 - Success
- 1 - Failure
Enabling CUPS web interface:
[ CUPS WEB INTERFACE TOGGLE ]
--------------------------------------------------------------
Current Status : Disabled
Action : Enabling
Result : ENABLED
CUPS Web Interface URL: http://localhost:631
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
Disabling CUPS web interface:
[ CUPS WEB INTERFACE TOGGLE ]
--------------------------------------------------------------
Current Status : Enabled
Action : Disabling
Result : DISABLED
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 1.0.0 - Initial release
- View Script Source
- Scripts - Back to script index