hi all,
when i login as root, i got:
[root@dev html]#
any other user, i got:
-bash-3.1$
what do i need to change for user profile or during user creation process to make it looks like:
[test@dev html]#
thanks t. hiep
On Mon, 10 Mar 2008 11:07:48 -0700 (PDT) Hiep Nguyen hiep@ee.ucr.edu wrote:
what do i need to change for user profile or during user creation process to make it looks like:
That's normally set through .bashrc as contained in /etc/skel so it's inherited by all new users when they are created. For existing users, you can just copy /etc/skel/.bashrc to their home directory.
The profile file mentioned below is going to set the PS1 environment variable. For more information, you might want to look at the bash man page in the PROMPTING section.
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Frank Cox Sent: March 10, 2008 14:17 To: CentOS mailing list Subject: Re: [CentOS] root vs. user login
On Mon, 10 Mar 2008 11:07:48 -0700 (PDT) Hiep Nguyen hiep@ee.ucr.edu wrote:
what do i need to change for user profile or during user creation process to make it looks like:
That's normally set through .bashrc as contained in /etc/skel so it's inherited by all new users when they are created. For existing users, you can just copy /etc/skel/.bashrc to their home directory.
-- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hiep Nguyen wrote on Mon, 10 Mar 2008 11:07:48 -0700 (PDT):
#
an additional information.
# prompt is usually only used for the root login $ prompt is usually used for non-root users
So, whatever you change in the prompt string you may want to keep this distinction at least.
Kai
On Tuesday 11 March 2008 01:07:48 Hiep Nguyen wrote:
hi all,
when i login as root, i got:
[root@dev html]#
any other user, i got:
-bash-3.1$
what do i need to change for user profile or during user creation process to make it looks like:
[test@dev html]#
Seems like the user doesn't have a home directory.