Error Writing .bash_profile Permission Denied
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss .bash_profile permission denied in linux the workings and policies of this site About Us Learn more about source .bash_profile permission denied Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions /home/user/.bash_profile permission denied Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Bash_profile Permission Denied Ubuntu
Join them; it only takes a minute: Sign up -bash: /Users/myname/.bash_profile: Permission denied up vote 4 down vote favorite 1 I installed rvm (ruby version manager) and it was success, but I got WARNING: You have '~/.profile' file, you might want to load it, to do that add the following line to '/Users/myname/.bash_profile': source ~/.profile I am new /.profile permission denied to developing, terminals and all that jazz! But better late than never?! I entered into terminal: '/Users/myname/.bash_profile' and got back the following line -bash: /Users/myname/.bash_profile: Permission denied myname-MacBook-Pro:~ myname$ And that is where I am stuck! I need vrm for Drupal (Omega development) and want to make sure that everything is working fine. Thanks for your help. ruby bash terminal share|improve this question edited May 6 '14 at 20:07 Uri Agassi 28.4k94470 asked May 6 '14 at 19:57 Zel 42139 You just need to follow what it told you (refer to the warning). –devnull May 6 '14 at 20:05 try sudo gedit /Users/myname/.bash_profile –Uri Agassi May 6 '14 at 20:08 You might want to add a RVM tag. –Cary Swoveland May 6 '14 at 20:15 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted Enter the .bash_profile file by running this in your terminal: vim ~/.bash_profile If you still get permission denied, run sudo before the vim command sudo vim ~/.bash_profile Fr
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow how to edit bash_profile mac the company Business Learn more about hiring developers or posting ads with us Stack
.bash_profile Permission Denied Centos
Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of
Create Bash_profile Mac
4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up sudo open -e ~/.bash_profile Permission denied mac up vote 3 down vote favorite 4 I am trying to http://stackoverflow.com/questions/23503817/bash-users-myname-bash-profile-permission-denied edit bash_profile file to add path to my sdk through the following command on my mac machine. sudo touch ~/.bash_profile; open -e ~/.bash_profile It opens the file in TextEdit but does not allow me to edit it. Though i have given super-user permission and password while running the above command. It is giving me following message when i try to edit it. "You don’t own the file “.bash_profile” and don’t have permission http://stackoverflow.com/questions/28065542/sudo-open-e-bash-profile-permission-denied-mac to write to it. You can duplicate this document and edit the duplicate. Only the duplicate will include your changes." I am new to mac. So please elaborate your answers. osx path permissions sudo .bash-profile share|improve this question asked Jan 21 '15 at 10:59 FarheenP 159110 By the way, you should not create the file as the super-user, The ~/ path is your own home directory, and the ~/.bash_profile file should be owned by you. –Joachim Pileborg Jan 21 '15 at 11:36 I am not trying to create this file. It already exists. I am just trying to edit it to set a PATH variable. –FarheenP Jan 21 '15 at 12:18 Then why the touch command? And it seems that your user is not the owner of the file. If you do e.g. ls -l ~/.bash_profile what user does it list? And sudo open -e ~/.bash_profile doesn't work either (it should!)? –Joachim Pileborg Jan 21 '15 at 12:27 ls -l ~/.bash_profile shows following : -rw-r--r-- 1 root staff 104 Jan 21 17:26 /Users/farheen/.bash_profile –FarheenP Jan 21 '15 at 12:37 1 The OSX open command may change user or something. As for the file, it should be owned by you (farheen). Change it using chown: sudo cho
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company http://askubuntu.com/questions/211863/permission-denied-error-when-trying-to-reload-bash-profile Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Permission Denied Error when trying to reload ~/.bash_profile up vote permission denied 1 down vote favorite Hello people I am trying to reload the "~/.bash_profile" but I get the "Permission Denied Error" and "sudo" does not work is there a way I can reload the "~/.bash_profile" because it's an integral step in the installation of RVM. Please help any assistance is appreciated. mojo706 bash permissions share|improve this question asked Nov 4 '12 at 17:52 mojo706 3962720 add a comment| 1 Answer 1 active oldest votes up vote 2 bash_profile permission denied down vote accepted try this: . ~/.bash_profile Sam share|improve this answer answered Nov 4 '12 at 17:54 Sam 1,51369 Hey Sam thanks for the quick reply but that's what brings the "permission denied" error. After that I tried to use sudo but it refused. –mojo706 Nov 4 '12 at 17:57 Ok Sam thanks your answer was actually correct! I restarted the Terminal and it worked. Thanks again. –mojo706 Nov 4 '12 at 17:59 1 no problem! the trick is to add the point at the beggining of the command!, have a nice one! –Sam Nov 4 '12 at 18:07 yes that was the trick –mojo706 Nov 4 '12 at 19:37 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged bash permissions or ask your own question. asked 3 years ago viewed 3886 times active 3 years ago Related 2Permission denied Error while copying?0./configure Permission Denied when try to build llvm2Bash error when trying to execute a file0Permission error trying this backup script0Permission d