Sponsored Content
Operating Systems HP-UX How to reactivate user with command(no SAM) Post 302142134 by arm_naja on Wednesday 24th of October 2007 02:35:58 PM
Old 10-24-2007
How to reactivate user with command(no SAM)

How to reactivate any users (root or non root) by command(no SAM)
HP-UX 11.11
 

8 More Discussions You Might Find Interesting

1. HP-UX

help on sam

hi, any idea how to get more info on the usage, unix equivalent of sam in hp-ux? thanks (7 Replies)
Discussion started by: yls177
7 Replies

2. UNIX for Dummies Questions & Answers

How to reactivate expired account in Linux as a root user

I am an administrator of a Red Hat Enterprise Linux system. Now one account expired. I wonder how to reactivate the account. Thanks (2 Replies)
Discussion started by: cy163
2 Replies

3. HP-UX

Where are SAM user templates stored?

Hey, new here, so be nice! I'm trying to write a little script to automate the user creation process on one of our boxes. But I would like to be able to use the templates that we have set up in SAM. Is the information in these templates stored in a file somewhere, that I can reference in my... (5 Replies)
Discussion started by: paqman
5 Replies

4. HP-UX

Adding user to a group without SAM

How can I add a user to a specific group without using SAM? I know I can user modprpw -G, but that will overwrite any groups the user is in with the ones I specify. I need to assume that I do not know what groups the user is already in, so I can't put them in the modprpw command. I just need... (2 Replies)
Discussion started by: paqman
2 Replies

5. HP-UX

Getting command (command line) from SAM?

Hi I hope this is easy and sorry if I am using the wrong HP terms. I am looking for a way to glean the command line information from a process I run in SAM? In AIX I can just select any options I want for particular process and hit F6 and the command line is shown on the screen for use in... (3 Replies)
Discussion started by: KmJohnson
3 Replies

6. Shell Programming and Scripting

root user command in shell script execute as normal user

Hi All I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh URL="www.google.com" VBURL="10.5.2.211" echo "Setting route for $URL for GPRS" URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1` echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies

7. Linux

Reactivate an account

Hello, I had this issue today. One of my co-workers accounts was looked due to inactivity. The passwd -u command didn't work. So I did what I posted below. I don't think this the proper way to do this. What is the right to reactivate an account in Linux? After I changed the inactivity to never he... (2 Replies)
Discussion started by: bitlord
2 Replies

8. HP-UX

Display SAM user list at the command line

Hello, I've been doing Linux and AIX administration for years, but I'm very new to HPUX. We have an old audit process which involves someone manually using sam to generate user lists. I'd like to kill that old process with fire... But... After working a bit in the morning to try and pull... (3 Replies)
Discussion started by: Celt1977
3 Replies
CHNTPW(8)						      System Manager's Manual							 CHNTPW(8)

NAME
chntpw - utility to overwrite Windows NT/2000 SAM passwords SYNOPSIS
chntpw [options] <samfile> [systemfile] [securityfile] [otherreghive] [...] DESCRIPTION
This manual page documents briefly the chntpw command. This manual page was written for the Debian distribution because the original pro- gram does not have a manual page. chntpw is a utility to view some information and change user passwords in a Windows NT/2000 SAM userdatabase file, usually located at WIN- DOWSsystem32configSAM on the Windows file system. It is not necessary to know the old passwords to reset them. In addition it contains a simple registry editor (same size data writes) and hex-editor with which the information contained in a registry file can be browsed and modified. OPTIONS
-h Show summary of options. -u username Username to change. Default is Administrator -l List all users in the SAM database. -i Interactive: list all users (as per -l) and then ask for the user to change. -e Registry editor with limited capabilities. -d Use buffer debugger. -t Show hexdumps of structs/segments (deprecated debug function). EXAMPLES
ntfs-3g /dev/sda1 /media/win ; cd /media/win/WINDOWS/system32/config/ Mount the Windows file system and enters the directory WINDOWSsystem32config where Windows stores the SAM database. chntpw SAM system Opens registry hives SAM and system and change administrator account. This will work even if the name has been changed or it has been localized (since different language versions of NT use different administrator names). chntpw -l SAM Lists the users defined in the SAM registry file. chntpw -u jabbathehutt SAM Prompts for password for jabbathehutt and changes it in the SAM registry file, if found (otherwise do nothing). SEE ALSO
If you are looking for an automated procedure for password recovery, you might look at the bootdisks provided by the upstream author at http://pogostick.net/~pnh/ntpasswd/ There is more information on how this program works available at /usr/share/doc/chntpw registry works. AUTHOR
This manual page was written by Javier Fernandez-Sanguino <jfs@computer.org>, for the Debian GNU/Linux system (but may be used by others). 13th March 2010 CHNTPW(8)
All times are GMT -4. The time now is 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy