From: Mihai Lindner <mihaix.lindner@linux.intel.com>
To: yocto@yoctoproject.org
Subject: Re: .bashrc not being used by root account
Date: Wed, 17 Oct 2012 11:29:14 +0300 [thread overview]
Message-ID: <507E6C5A.1080108@linux.intel.com> (raw)
In-Reply-To: <36ED13F3654AE54CA763E6821D93A5711047B519@szxeml534-mbx.china.huawei.com>
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@yoctoproject.org [yocto-bounces@yoctoproject.org] on behalf of Jonathan Haws [Jonathan.Haws@sdl.usu.edu]
> Sent: Tuesday, October 16, 2012 9:32 PM
> To: yocto@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@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
--
Mihai Lindner
next prev parent reply other threads:[~2012-10-17 8:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-16 16:02 .bashrc not being used by root account Jonathan Haws
2012-10-17 6:25 ` Venkata ramana gollamudi
2012-10-17 8:29 ` Mihai Lindner [this message]
2012-10-18 16:52 ` Jonathan Haws
2012-10-19 11:50 ` Mihai Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=507E6C5A.1080108@linux.intel.com \
--to=mihaix.lindner@linux.intel.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.