Re: prompt w/ uid 0 for cshrc

2012-11-23 Thread Tim Kientzle
On Nov 19, 2012, at 8:46 AM, jb wrote: > Eitan Adler eitanadler.com> writes: > >> >> On 18 November 2012 18:44, Mateusz Guzik gmail.com> wrote: >>> Just take user name from id -nu. >> >> While that does provide the $user value I want, id is in /usr/bin/ >> which may not be mounted. > > /res

Re: prompt w/ uid 0 for cshrc

2012-11-19 Thread Eitan Adler
On 18 November 2012 18:32, Eitan Adler wrote: > Hey, > > at the moment the current default csh prompt looks like > > user@hostname:directory% command > > This leads to an unexpected[*] result when using su (without "-"). > > In particular the user part is *not* changed to "root" (or "toor" or > an

Re: prompt w/ uid 0 for cshrc

2012-11-19 Thread Mateusz Guzik
On Mon, Nov 19, 2012 at 10:45:35AM -0500, Eitan Adler wrote: > On 18 November 2012 18:44, Mateusz Guzik wrote: > > Just take user name from id -nu. > > While that does provide the $user value I want, id is in /usr/bin/ > which may not be mounted. > Is there a builtin which provides similar functi

Re: prompt w/ uid 0 for cshrc

2012-11-19 Thread jb
Eitan Adler eitanadler.com> writes: > > On 18 November 2012 18:44, Mateusz Guzik gmail.com> wrote: > > Just take user name from id -nu. > > While that does provide the $user value I want, id is in /usr/bin/ > which may not be mounted. /rescue/id jb

Re: prompt w/ uid 0 for cshrc

2012-11-19 Thread Eitan Adler
On 18 November 2012 18:44, Mateusz Guzik wrote: > Just take user name from id -nu. While that does provide the $user value I want, id is in /usr/bin/ which may not be mounted. Is there a builtin which provides similar functionality? -- Eitan Adler _

Re: prompt w/ uid 0 for cshrc

2012-11-18 Thread Mateusz Guzik
On Sun, Nov 18, 2012 at 06:32:20PM -0500, Eitan Adler wrote: > Hey, > > at the moment the current default csh prompt looks like > > user@hostname:directory% command > > This leads to an unexpected[*] result when using su (without "-"). > > In particular the user part is *not* changed to "root"

prompt w/ uid 0 for cshrc

2012-11-18 Thread Eitan Adler
Hey, at the moment the current default csh prompt looks like user@hostname:directory% command This leads to an unexpected[*] result when using su (without "-"). In particular the user part is *not* changed to "root" (or "toor" or any other superuser indication) although the promptchar is change