On Mon, Jul 24, 2006 at 09:02:20PM +0200, LeVA wrote:
> Hi!
> 
> When my root's shell is `/bin/bash' in the /etc/passwd file, and I do 
> `su' as a simple user, then the root's .profile (/root/.profile) gets 
> executed.
> After setting the root's shell to `/bin/sh', and do `su' as a simple 
> user, then the root's .profile doesn't get executed until i run su as 
> `su -'. My /bin/sh is a symlink to /bin/bash.
> 
> ps.: I can tell if the .profile is used or not from the prompt (I have 
> the PS1 variable set in the .profile file).
> 
Do you have a .bash_profile or .bashrc?


-- 
meeting, n.:
        An assembly of people coming together to decide what person or
        department not represented in the room must solve a problem.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to