Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th April 2010, 20:14
remz remz is offline
Junior Member
 
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create User without useradd command

Hi,

Can any one tell me how would you create a user in linux without using the command useradd? Isn't by editing the entries of /etc/passwd and /etc/shadow? If so, how would you create an encrypted password user? Is it by using pwconv?

Reply With Quote
Sponsored Links
  #2  
Old 20th April 2010, 17:11
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

add the user to /etc/passwd, /etc/shadow, /etc/groups, then you can set the password using
Code:
echo "password" | passwd username --stdin
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 20th April 2010, 20:45
remz remz is offline
Junior Member
 
Join Date: Sep 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thank You topdog!! I tried the above and it worked!!
Reply With Quote
Reply

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add ons for ISPConfig 3 virtue Installation/Configuration 24 16th October 2009 17:30
Setting up a new server - Suse 11.1 londonman Server Operation 34 10th April 2009 13:16
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
The system is currently updating the configuration files. warlock General 8 21st February 2009 18:15
Create user and email script TheRudy Programming/Scripts 0 7th June 2008 11:15


All times are GMT +2. The time now is 11:50.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.