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,

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/# _


        [EMAIL PROTECTED]:~/my_videos% _

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

        ~/foo/bar> _

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

Reply via email to