On Mon, 25 Aug 2008 10:32:22 -0500, Robe <[EMAIL PROTECTED]> wrote:
> Hi there,
> 
> I'm trying to change the prompt in the *text (console) mode* for a
> restricted user with a statement like this
> 
> set prompt = "%~> "
> 
> But it doesn't work. And when I type *set* I see _ = "%~> " instead prompt =
> "%~> "
> 
> However when I do it logged as a root it works.



> Can someone help me with this?

Maybe the user where you want to change the prompt has an
overriding setting in ~/.cshrc? You are using the C Shell,
right?

Check the prompt and promptchars variables.

I have this form system wide in /etc/csh.cshrc:

        set promptchars = "%#"
        set prompt = "[EMAIL PROTECTED]:%~%# "
        set autolist

If a user wants another prompt, the respective setting has
to be set in his ~/.cshrc. This gives you prompts like

        [EMAIL PROTECTED]:/usr/src/# _

or

        [EMAIL PROTECTED]:~/my_videos% _

You would then correctly use the form "%~> " for a prompt
like:

        ~/foo/bar> _


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to