Solved

Unbuntu 10

Posted on 2011-02-24
9
349 Views
Last Modified: 2013-12-15
I just install ubutnu server 10. I'm sitting at the cli trying to add a new user. I am getting the following error:

useradd: cannot lock /ect/passwd; try again later

Any suggestions??? I'm just trying to add a new user!
0
Comment
Question by:wantabe2
  • 5
  • 3
9 Comments
 
LVL 20

Expert Comment

by:woolnoir
ID: 34973562
are you running the useradd as a admin ?

do a 'sudo useradd ..... '
0
 
LVL 2

Expert Comment

by:reason2009
ID: 34973588
Administrative tasks such as adding users require elevated privileges. On Ubuntu, you use the sudo command to elevate your privileges. You will be prompted for your currently logged in user account password when you run the command.

sudo useradd username
0
 
LVL 15

Author Comment

by:wantabe2
ID: 34973795
thanks,
is there a way for me to get a list of the users on the server? After I typed in the sudo useradd username it just went to the next cli line with no other promps or messages
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 20

Expert Comment

by:woolnoir
ID: 34973806
you have two ways (potentially more)

sudo cat /etc/passwd

or

there is

sudo lastlog

which will list your users, plus the last login times etc
0
 
LVL 20

Expert Comment

by:woolnoir
ID: 34973821
> After I typed in the sudo useradd username it just went to the next cli line with no other promps or messages

thats perfectly normal - the command completes with no output. You can use command line switches to set other options, or use usermod to change things post-creation.
0
 
LVL 15

Author Comment

by:wantabe2
ID: 34973838
Okay, I see my many many many users I've added trying to get this going...

I thought I would be prompted to set a password for the users when I created them but I wasn't. I'm typing in:

sudo useradd doej

I've googled & thought I could add a -p password to the end but this in not working.
0
 
LVL 20

Expert Comment

by:woolnoir
ID: 34973857
just run a sudo passwd username to set the password.
0
 
LVL 15

Author Comment

by:wantabe2
ID: 34973942
woolnoir, one more question & you've got all the points...

is there a way for me to list all the users & see what permissions the users have?
0
 
LVL 20

Accepted Solution

by:
woolnoir earned 500 total points
ID: 34973981
You cant do it that way around AFAIK - you can see what groups users are part of, and look at file system permissions, but you cant see a joined up list of users v's permissions.

list all your groups with

sudo groups

or list what groups someone is in with

sudo groups username

then you would have to look at file system permissions and check manually.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question