Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-07-2012, 04:09 AM   #1
LQ Newbie
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
How to manage user accounts

I log on to a new embedded linux system as root, somehow it doesn't ask me for any password. How do I find out what and if I have a password and how do I create new users?
Old 02-07-2012, 05:01 AM   #2
Registered: Jul 2009
Posts: 626

Rep: Reputation: 42
what did your search results in google show?
Old 02-07-2012, 09:01 AM   #3
Senior Member
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I am sure this link will help you now and in near future

how to create new users
Old 02-07-2012, 10:14 AM   #4
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,577
Blog Entries: 31

Rep: Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196
Which version of Linux is running on the embedded system? Is it a normal Linux or a cut-down version such as busybox?
Old 02-07-2012, 04:40 PM   #5
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
This is one another way to create a user in embedded linux:

# cp /etc/passwd /etc/passwd.bak # just in case you e.g. forget one of the >s
# echo 'ftpuser:x:1000:1000:ftp user:/home/ftpuser:/bin/sh' >>/etc/passwd
# cp /etc/shadow /etc/shadow.bak
# echo 'ftpuser:x:15020:0:99999:7:::' >>/etc/shadow
# cp /etc/group /etc/group.bak
# echo 'ftpuser:x:1000:' >>/etc/group
# cp /etc/gshadow /etc/gshadow.bak
# echo 'ftpuser:x:1000:' >>/etc/gshadow
# passwd ftpuser
# mkdir /home/ftpuser
# chown ftpuser:ftpuser /home/ftpuser
Also you should make sure the username, user id, and group id are available. Also, unless the account needs shell access for some reason, set the shell to something like /bin/false or /sbin/nologin.

Last edited by Satyaveer Arya; 02-07-2012 at 04:41 PM.
Old 02-08-2012, 02:59 AM   #6
Registered: Sep 2011
Distribution: fedora, redhat, mint
Posts: 87

Rep: Reputation: Disabled
I hope some body didn't break into your system.

check out the output of this file if the longest batch of encrypted characters is missing then there has been intrusion which means you have to give yourself a new password. shadow

see for redhat system
#man useradd
#man usermod
I like vi but you can use any text editor or cat for viewing.

#vi /etc/shadow
You can view your users accounts by

#vi /etc/passwd


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
LXer: Create and manage user accounts in Chakra Linux 2011.11 LXer Syndicated Linux News 0 11-11-2011 09:21 AM
What should I use to manage accounts on XAMPP? SimbaSpirit Linux - Newbie 3 02-07-2008 10:22 PM
LXer: Manage user accounts with Tivoli Identity Manager LXer Syndicated Linux News 0 05-30-2007 06:01 AM
LXer: Linux 101: Manage user accounts in a multi-user Linux environment ... LXer Syndicated Linux News 0 06-27-2006 08:03 AM
Software to Manage Email Accounts. Ampex Linux - Software 5 01-25-2004 05:28 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

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