The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-23-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
What do you mean by "alias"? A symbolic link to /etc/skel/.bashrc? Doesn't adduser automatically copy in a fresh .bashrc for you?

If you are editing .bashrc and it's a symbolic link, you need write permission to the target of the symbolic link. But instead, you should have a separate file owned by the user, usually a copy of /etc/skel/.bashrc

If you are editing a file owned by a different user, you need to be root, or the file's permissions need to be relaxed enough to allow you to overwrite the file (and, the way editors often work, probably write access to the directory). This is of course not really a good idea in any event.

.bashrc doesn't need execute permission, it's sourced (not executed) by bash.

Last edited by era; 08-23-2008 at 02:29 PM.. Reason: Don't need execute permission; need write access to target of symlink