Christmas - Up to 60% off IRC and radio hosting
Knowledge Base / Advanced IRC & Shell Admin

Securing Your Scripts and Config Files with chmod on a Unix Shell

Updated 3 December 2026

Because bot configuration files (eggdrop.conf, znc.conf, psybnc.conf) contain plaintext or hashed passwords, setting strict file permissions is essential on any Linux shell.

Recommended Permissions

  • chmod 700 ~ — Restricts your home directory strictly to your user account.
  • chmod 600 eggdrop.conf — Allows only you to read or edit sensitive config files.
  • chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys — Required by OpenSSH for secure key-based logins.
RELATED SERVICE

Unix Shell hosting

From $4.99 per month. See the packages and order online.
See Unix Shell hosting

More in Advanced IRC & Shell Admin

Setting Up Passwordless SSH Key Login for Your ForceSP Unix ShellMonitoring Background Processes with ps, top, and kill on Unix ShellWriting a Custom MOTD (ircd.motd) and Rules File for Your IRCD ServerBlocking Spam and Malicious Links on Your Own IRCD ShellProtecting Your 250-User IRCD Network Using DNSBL BlacklistsMessage Encryption Options in PsyBNC 2.4 Explained

← Back to the Knowledge Base