Created
November 15, 2020 12:07
-
-
Save yashasolutions/90cc3c34cea2446467c6cd857c3e0cb6 to your computer and use it in GitHub Desktop.
fixing permission issues with *nix mail box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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