Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Debian: useradd ?p encrypted password is not working on Sarge

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-07-2011
Member
 
Join Date: Apr 2011
Posts: 60
Debian: useradd ?p encrypted password is not working on Sarge
  

Well I am having really frustrating issue with the Sarge which I have installed on the computer of mine. I am trying to add the user by using the following command.
Code:
useradd test2 -g labels -m -d /home/labels/test2 -s /bin/sh -p $1$FaOtejz7$4BbqatyzZ6AZ0WQHV1xlv
I am able to add the user by using the above mentioned command however the password is not working at all. Let me know if you are having any specific solution to fix the matter of mine. Thanks a lot in advance.

Reply With Quote
  #2  
Old 02-07-2011
Member
 
Join Date: May 2008
Posts: 859
re: Debian: useradd ?p encrypted password is not working on Sarge

I am suggesting following solution and it would only work if you are going to create a new account on the computer. Well I you should run the following command on the terminal.
Code:
passwd <username>
after using the above mentioned command you will be able to set the password on the computer of yours.
Reply With Quote
  #3  
Old 02-07-2011
Member
 
Join Date: May 2008
Posts: 962
re: Debian: useradd ?p encrypted password is not working on Sarge

I think I have figure out the root cause of the problem which you are getting and you can use the following instruction to resolve the matter. Well you cannot use ?m and ?d option together on the computer. You should use ?m or ?d option on the command and see whether it is working or not. So you should try to fix the matter of yours and let me know whether it is working or not.
Reply With Quote
  #4  
Old 02-07-2011
Member
 
Join Date: May 2008
Posts: 991
re: Debian: useradd ?p encrypted password is not working on Sarge

Well looking at the situation which you have mentioned over here I am suggesting following thing which you can use to fix the matter of yours. you should run the following command on the terminal.
Code:
addgroups labels
once you have add the group label into the mkdir /home/labels. Now you should run the command which you have mentioned on the question I am hoping that it would be useful to you.
Reply With Quote
  #5  
Old 02-07-2011
Member
 
Join Date: May 2008
Posts: 1,020
re: Debian: useradd ?p encrypted password is not working on Sarge

I am suggesting following script which you should run on the terminal and see whether it is working or not.
Code:
$crypthash = crypt($_POST['label_pass']);
$outputFilesystem =
shell_exec('sudo useradd '.$labelusername.' -g labels -m -d /home/labels/'.$safeLabelName.' -s /bin/sh -p '.$crypthash);
I have already used the above mentioned script and it really worked for me.
Reply With Quote
  #6  
Old 03-07-2011
Member
 
Join Date: Nov 2009
Posts: 824
re: Debian: useradd ?p encrypted password is not working on Sarge

I am suspecting that the encrypted password which you have used is quite big. I am suggesting following script which you can run.
Code:
#!/usr/bin/python2.4
# -*- coding: latin1 -*-
#

import crypt

import random
import string

def getsalt(chars = string.letters + string.digits):
   return random.choice(chars) + random.choice(chars)

print crypt.crypt("testuserpass" , getsalt())
I think you need to install the following module on the computer.
apt-get install python-crypto
so try the same and let me know whether it is working or not.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Debian: useradd ?p encrypted password is not working on Sarge"
Thread Thread Starter Forum Replies Last Post
How to further protect Encrypted EPUB document by password servan$ Ebooks 4 04-03-2012 05:55 PM
Recover Bitlocker encrypted drive password svkrocks Networking & Security 2 31-08-2011 09:46 PM
How to print PDF file that?s been password encrypted??? Gandhali Windows Software 6 23-10-2010 06:12 PM
How to decrypt an encrypted password? PersonOfTheFall Software Development 5 22-09-2009 09:23 AM
How to Decrypt Encrypted Password? RoadRunner Software Development 2 04-03-2009 02:39 PM


All times are GMT +5.5. The time now is 02:58 AM.