Domanda

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?

È stato utile?

Soluzione

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

Altri suggerimenti

Cypress Frankenfeld answered it in

Cannot edit bash_profile on Mac OsX [closed]

sudo chown your_user_name ~/.bash_profile

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top