Saturday, 8 June 2013

How do I create a new user account on an Ubuntu Hardy server?

How do I create a new user account on an Ubuntu Hardy server?

logged in as root, environmental variables are great. I typed "set"
I did:
useradd -m alex
su alex
For some reason, everything is gone when I type "set". How do I make it so that alex has all the environmental variables just like root (except as a standard user), when I first logged in?
For example, I want PS1 to be set, just like the root account. All my environmental variables were erased when I created this new user.
**Edit: people are not understanding the question. Right now, "alex" user account is completely blank, with no environmental variables. I just want it to have SIMILAR environmental variables like ROOT. All the directories have no color. The PS1 is just a dollar sign. That's not normal.

No comments:

Post a Comment