LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   useradd on VPS (https://www.linuxquestions.org/questions/linux-newbie-8/useradd-on-vps-4175559334/)

arisbe 11-19-2015 03:46 PM

useradd on VPS
 
I'm trying to set up a user from root on a VPS i recently leased. I use:
useradd -m 'user'

This seems to work fine, the home dir is created and I can give the user a password. However, when I ssh via the user, the only prompt is a $. User seems to not open the shell. It seems to not find its home directory. For example, it recognizes 'ls -l' but not 'll'

When i 'sudo' I get message 'user is not in the sudoer file.'

I think my issue is bigger than just an entry in the sudoer file.

Any advice?

arisbe

berndbausch 11-19-2015 04:04 PM

There doesn't seems to be a problem.
$ is the default shell prompt.
ll is not a command. On most system it's an alias for ls -l, but that is not mandatory.
The user is not in the sudoers file, indeed.
What do you mean by "not find its home directory"? What do you get from echo $HOME and cd $HOME?

I believe this user simply has a very minimal profile. You can change this by:

setting the PS1 variable
setting up an alias for ll
Adding the user to /etc/sudoers

in your .bash_profile file.

arisbe 11-19-2015 04:28 PM

exactly berndbausch! What i needed. arisbe


All times are GMT -5. The time now is 03:21 AM.