bash windows

Handling ".bashrc Permission Denied" Error in WSL Bash

When opening Bash after restarting Windows, .bashrc may sometimes not execute. Introducing how to handle the ".bashrc: Permission denied" error in WSL Linux Bash command line. When checking permissions...

Shou Arisaka
1 min read
Nov 17, 2025

When opening Bash after restarting Windows, .bashrc may sometimes not execute. Introducing how to handle the “.bashrc: Permission denied” error in WSL Linux Bash command line.

$ ls -al ~
total 124
drwxr-xr-x 1 yuis yuis  4096 Aug 12 07:50 .
drwxr-xr-x 1 root root  4096 Sep 30  2017 ..
drwx------ 1 yuis yuis  4096 Mar  6 00:39 .aptitude
-rw-rw-rw- 1 yuis yuis 28823 Jul 12 22:45 .babel.json
-rw------- 1 yuis yuis 13920 Aug 12 15:03 .bash_history
-rw-r--r-- 1 yuis yuis   220 Sep 30  2017 .bash_logout
---------- 1 yuis yuis  5272 Aug 12 04:32 .bashrc
-rwxr-xr-x 1 yuis yuis  5272 Aug 12 07:50 .bashrc.bak

When checking permissions, somehow the permissions have disappeared. Why…

cd ~ && sudo chmod 755 .bashrc && sudo chmod 755 .env && bash

With this, change the permissions, open it anew, and if you can confirm that .bashrc is being loaded, you’re good to go.

Share this article

Shou Arisaka Nov 17, 2025

🔗 Copy Links