Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Arch Linux Help > useradd problem

Forgot Password?
 Arch Linux Help   Help an discussion related to Arch

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-18-2007   #1 (permalink)
Just Joined!
 
Join Date: Oct 2007
Posts: 19
Question useradd problem

i have installed arch and when it comes to the new booted screen, it comes up with login i enter root and then this command to create a new user,

# useradd -m -s /bin/bash username

and it then gives me a password error without letting me enter the password command.


Please help!!!!
stlinux is offline  


Reply With Quote
Old 10-18-2007   #2 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,056
Welcome to the forums!

Not sure it'll work, but try adduser instead.

Let us know.
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 10-18-2007   #3 (permalink)
Just Joined!
 
Join Date: Oct 2007
Posts: 19
unfortunately they both come with the same problem "unable to lock password file"
stlinux is offline   Reply With Quote
Old 10-18-2007   #4 (permalink)
Super Moderator
 
ozar's Avatar
 
Join Date: May 2004
Posts: 12,056
I'm really not sure what's going on here.

Have you already created a root password?
__________________
oz

New Members: * README *
ozar is offline   Reply With Quote
Old 10-18-2007   #5 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,366
Sounds like the root file system might be mounted read-only. Check /etc/fstab. Make it read-write if so.
Thrillhouse is offline   Reply With Quote
Old 10-18-2007   #6 (permalink)
Just Joined!
 
Join Date: Oct 2007
Posts: 19
im not sure but how do i set root password,
stlinux is offline   Reply With Quote
Old 10-18-2007   #7 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,366
Easy:
Code:
#passwd root
Thrillhouse is offline   Reply With Quote
Old 10-18-2007   #8 (permalink)
Just Joined!
 
Join Date: Oct 2007
Posts: 19
but when i try that and enter new password it comes up with

"passwd: Authentication token lock busy"
stlinux is offline   Reply With Quote
Old 10-18-2007   #9 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,366
That's why I think your fstab is mounting the root filesystem as read-only. Post the output of:
Code:
cat /etc/fstab
and we can check it. If that's not the problem, we can move on to other possibilities.
Thrillhouse is offline   Reply With Quote
Old 10-18-2007   #10 (permalink)
Just Joined!
 
Join Date: Oct 2007
Posts: 19
just wrote it in, and what am i going to be looking for
stlinux is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 10:32 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2