Skip to content

Instantly share code, notes, and snippets.

@yashasolutions
Created November 15, 2020 12:07
Show Gist options
  • Save yashasolutions/90cc3c34cea2446467c6cd857c3e0cb6 to your computer and use it in GitHub Desktop.
Save yashasolutions/90cc3c34cea2446467c6cd857c3e0cb6 to your computer and use it in GitHub Desktop.
fixing permission issues with *nix mail box
#!/bin/bash
# Cannot open mailbox /var/mail/$USER: Permission denied
sudo touch /var/mail/$USER
sudo chown $USER:mail /var/mail/$USER
sudo chmod o-r /var/mail/$USER
sudo chmod g+rw /var/mail/$USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment