Question

I'm a bit new to this area on my Mac. I made my .bash_profile yesterday without any problems. Now when I open it, textedit says it's locked and does not let me unlock it. I tried using chmod 644 to change the permissions, but that didn't help.

What am I missing here?

Was it helpful?

Solution

Give yourself write permissions for that file:

/usr/bin/sudo /bin/chmod u+rwx /Users/yourusername/.bash_profile
/usr/bin/sudo /usr/sbin/chown yourusername /Users/yourusername/.bash_profile

OTHER TIPS

Cypress Frankenfeld answered it in

Cannot edit bash_profile on Mac OsX [closed]

sudo chown your_user_name ~/.bash_profile

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top