[yocto] .bashrc not being used by root account

Mihai Lindner mihaix.lindner at linux.intel.com
Wed Oct 17 01:29:14 PDT 2012


On 10/17/2012 09:25 AM, Venkata ramana gollamudi wrote:
> You can check the same with  "strace -f bash"
> You can see the files being loaded, as there is a rc file loading sequence exists for bash.
>
> Regards,
> Ramana
>
> ________________________________________
> From: yocto-bounces at yoctoproject.org [yocto-bounces at yoctoproject.org] on behalf of Jonathan Haws [Jonathan.Haws at sdl.usu.edu]
> Sent: Tuesday, October 16, 2012 9:32 PM
> To: yocto at yoctoproject.org
> Subject: [yocto] .bashrc not being used by root account
>
> I have modified the .bashrc file for the system, however the root account does not seem to use it by default.  What am I missing?  I would rather not have to source the .bashrc file every time I login as root.

Try `echo $0` to see the shell you're in. By default you should be in 
`sh`, which does not source .bashrc.
You can execute `bash` after login, or change the login shell of 'root'.

Cheers,
--Mihai

>
> Thanks,
> Jonathan
>
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


-- 
Mihai Lindner



More information about the yocto mailing list