- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Permissions on passwd command
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-27-2001 10:23 AM
08-27-2001 10:23 AM
My guys need to use the passwd command whitout root account. I try to make a shell script, a C script and set the sticky bit. But I got every time Permission denied. I don't want to use sudo or restricted sam. My guys need to operate at the command line. thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 10:28 AM
08-27-2001 10:28 AM
Re: Permissions on passwd command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 11:28 AM
08-27-2001 11:28 AM
Re: Permissions on passwd command
You should always be able to run the passwd command from the prompt for your account (If I am logged in, I can always run it to change my password). If you can't run it, then the permissions on it must have been changed so that all users cannot execute it. The permissions on /bin/passwd should be r-sr-xr-x
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 11:35 AM
08-27-2001 11:35 AM
Re: Permissions on passwd command
I can change my password with the command passwd, but I'm not able to change the password for other account ; That's what I need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 12:06 PM
08-27-2001 12:06 PM
Re: Permissions on passwd command
Only root can change a user's password without knowing the old password. If you want a user to be able to change another user's password without knowing the old password, you will have to use something like sudo without having to give away root's password.
-Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 12:27 PM
08-27-2001 12:27 PM
Re: Permissions on passwd command
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 12:50 PM
08-27-2001 12:50 PM
Re: Permissions on passwd command
First, it is the 'setuid' bit, not the 'sticky' bit that is set for the 'passwd' executable. Since 'passwd' is owned by root, when run it runs *as* root.
The issue with 'passwd' or any wrapper that you would surround it with, is that 'passwd' calls 'getlogin()' to retrieve the name of the user currently logged in on the terminal associated with the calling process.
The rules of engagement for 'passwd' is that you must be the root user to change the password of other than your own account.
Beyond that, it would be a gross security risk to allow anyone other than root to change passwords of accounts.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2001 02:00 PM
08-27-2001 02:00 PM
Solutionlike this, and I agree that it can be a gapping security
hole, try suidperl. It does a lot of environment
cleaning to help redude the risk of suid scripts.
I assume this is for a support group that you want
this functionality. Using sudo is much simpler, but
won't give you the flexibility you can build into a script.
Design and test the script carefully. This can be a
major security hole if you don't get it right.
A few things the script should do:
- Prevent changing the root password, and that
of users of this utility.. (Should
problably limit password changes to users
in a limited number of groups like users)
- Limit who can run the script. (Check for users
in a specific list or members of a specific group.)
- Log all password changes, but not the passwords.
(who, when, what, your uses shouldn't be able
to change the log file.)
- If you have multiple user groups you might
want to allow authorized users to change passwords
for other members of their group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2001 04:51 AM
08-28-2001 04:51 AM
Re: Permissions on passwd command
Yes, This is for the support group, not for all users...
Thank you everybody for your help, I will install sudo. That the most safety way!
Regards,
Dominic