- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Modifying a user questions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 06:58 AM
11-29-2005 06:58 AM
Modifying a user questions
What exactly happens when a user gets modified with SAM?
I need to change the user name from one login to another and:
(1) I modify it in SAM
(2) Run vipw and change the home directory to new username
(3) rename the home directory from old login to new login
Is there a way to script the whole thing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:02 AM
11-29-2005 07:02 AM
Re: Modifying a user questions
usermod -l newusername oldusername
That's the basic one for just changing the username. You can use -m to create the new home directory also. Several other options for changing the shell, GECOS field, UID, etc. See usermod(1M).
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:02 AM
11-29-2005 07:02 AM
Re: Modifying a user questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:04 AM
11-29-2005 07:04 AM
Re: Modifying a user questions
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:39 AM
11-29-2005 07:39 AM
Re: Modifying a user questions
I want to set password aging to 90 days and prompt for password change upon login.
I am looking at modprpw and it has these options, what's the difference?
exptm=value database u_exp=(value*86400).
Set password expiration time interval (days).
0 = expired. Same as non-trusted mode
maximum time.
lftm=value database u_life.
Set password life time interval (days). 0 =
infinite.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:49 AM
11-29-2005 07:49 AM
Re: Modifying a user questions
How do I make the system prompt the user for a new password with the next login?
In SAM, it is called immediate password change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:51 AM
11-29-2005 07:51 AM
Re: Modifying a user questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 07:58 AM
11-29-2005 07:58 AM
Re: Modifying a user questions
/usr/lbin/modprpw -m exptm=90 username
Expire immediately:
/usr/lbin/modprpw -e username
Set password to random value (user forced to change on next login):
/usr/lbin/modprpw -x username
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 08:03 AM
11-29-2005 08:03 AM
Re: Modifying a user questions
You can also set the password age , with SAM.
SAM --> Accounts for Users and Groups -> Users --> Select user --> Action --> Modify --> Modify Password Options --> Select " Password Options: " to : Enable Password Aging.
And you will get the following options:
Password Options: [ Enable Password Aging ]
Password Expiration Time (1-63 weeks):
Minimum Time Between Password Changes (0-63 weeks): 0
[ ] Force Password Change At Next Login
Enjoy ,
hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:25 AM
11-29-2005 09:25 AM
Re: Modifying a user questions
rounds it up to the week, ie. passwd -x 60 results in the actual value being set to 63 if checked in sam. How can I override that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:28 AM
11-29-2005 09:28 AM
Re: Modifying a user questions
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:33 AM
11-29-2005 09:33 AM
Re: Modifying a user questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:33 AM
11-29-2005 09:33 AM
Re: Modifying a user questions
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:35 AM
11-29-2005 09:35 AM
Re: Modifying a user questions
I did -m exptm=60 but when I looked in sam, the old value was still there... Is that -m option equivalent to password -x?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:35 AM
11-29-2005 09:35 AM
Re: Modifying a user questions
/usr/lbin/modprpw -m exptm=60 username
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2005 09:53 AM
11-29-2005 09:53 AM
Re: Modifying a user questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:14 AM
11-30-2005 01:14 AM
Re: Modifying a user questions
I am still having problems. I ran the following command
/usr/lbin/modprpw -m exptm=60
but when I checked in SAM, where it says:
Set user-specific password aging policies ...
the following field was not modified.
Password Expiration Time (days): 60
Why is this happening and what can be done about it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:15 AM
11-30-2005 01:15 AM
Re: Modifying a user questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:33 AM
11-30-2005 01:33 AM
Re: Modifying a user questions
Suggestion.
After doing something in sam, take a look at the commands that it used.
You may see some differences between what you were doing on the command line and what sam does.
options
view SAM log
choose commands only.
This will help you learn and is quite useful when it comes time to create a script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:40 AM
11-30-2005 01:40 AM
Re: Modifying a user questions
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:44 AM
11-30-2005 01:44 AM
Re: Modifying a user questions
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 01:55 AM
11-30-2005 01:55 AM