- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting user up to reset others passwords
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
08-06-2003 08:14 AM
08-06-2003 08:14 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 08:20 AM
08-06-2003 08:20 AM
SolutionSpecifically you want to use:
# sam -r
From the man page:
-r Invoke the Restricted SAM Builder. This enables the system administrator to provide limited nonsuperuser access to SAM functionality. You must be a superuser to use this option. See "Restricted SAM" below for more information.
HTH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 08:20 AM
08-06-2003 08:20 AM
Re: Setting user up to reset others passwords
this (run passwd as root) and others (if needed) tasks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 08:22 AM
08-06-2003 08:22 AM
Re: Setting user up to reset others passwords
There are 2 ways to do this:
1) Install & configure sudo so that this user can run the passwd command. (Preferred)
2) Give the user a restricted SAM session (sam -r) so that they can reset PWs through SAM.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 08:23 AM
08-06-2003 08:23 AM
Re: Setting user up to reset others passwords
You could maybe do something like create a shell script that takes a username as an argument and resets that users password, make it executable (but NOT writeable) by owner and group, owned by root, and setuid set. Create a group that only that user you want to setup the password is in, and chgrp the file to that group.
Then, only that user and root should be able to execute the shell script, and you have a user which can reset passwords!
Maybe as extra security put it in a directory that only that user can access, but has no write access to (r-x the directory).
Setuid isn't generally recommended because there's a security issue with using it (must start a thread asking about that actually) but if you take the precautions above it should be fine I'd imagine!
hope that helps,
Kevin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2003 09:21 AM
08-06-2003 09:21 AM