Koozali.org: home of the SME Server

Configure bash prompt for non-root user?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Configure bash prompt for non-root user?
« on: January 27, 2007, 10:38:15 PM »
I have installed the remoteuseraccess panel and have created a user for remote login. After login  the prompt looks like this:
Code: [Select]
-bash-3.00$ but I would prefer the one like the root user:
Code: [Select]
[user@server currentdirectory]#
Can some one tell me what templates I need to modify for this to be effective?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Configure bash prompt for non-root user?
« Reply #1 on: January 28, 2007, 12:45:17 AM »
please raise a bug, and we can fix it for everyone

Offline nmtrier

  • **
  • 38
  • +0/-0
Bash Prompt
« Reply #2 on: January 28, 2007, 10:34:24 AM »
See
http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/x157.html
on how to customise the bash prompt.  This can easily be done on a per user basis in ~/.bashrc which would not affect the templates.
...

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Configure bash prompt for non-root user?
« Reply #3 on: January 28, 2007, 11:09:20 AM »
Quote from: "snoble"
please raise a bug, and we can fix it for everyone

http://bugs.contribs.org/show_bug.cgi?id=2389
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Bash Prompt
« Reply #4 on: January 28, 2007, 11:11:39 AM »
Quote from: "nmtrier"
See
http://www.linux.org/docs/ldp/howto/Bash-Prompt-HOWTO/x157.html
on how to customise the bash prompt.  This can easily be done on a per user basis in ~/.bashrc which would not affect the templates.
Thanks for the link, but I know how to customize a bash prompt. I really like it to be templated so not to customize every user and I thought it perhaps already was.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)