LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2015, 03:46 PM   #1
arisbe
LQ Newbie
 
Registered: Apr 2015
Posts: 12

Rep: Reputation: Disabled
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

Last edited by arisbe; 11-19-2015 at 03:47 PM.
 
Old 11-19-2015, 04:04 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,474

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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.

Last edited by berndbausch; 11-19-2015 at 04:05 PM.
 
1 members found this post helpful.
Old 11-19-2015, 04:28 PM   #3
arisbe
LQ Newbie
 
Registered: Apr 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
exactly berndbausch! What i needed. arisbe
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to redirect all traffic from a VPS to another VPS 124748768 Linux - Networking 0 07-08-2011 10:36 AM
useradd sci3ntist Debian 2 07-03-2007 10:38 AM
useradd -D doronunu Linux - Networking 10 01-19-2006 03:11 AM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM
Useradd - Cannot locate /etc/default/useradd in Solaris Paean Solaris / OpenSolaris 4 12-09-2005 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration