- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is the difference between /sbin/passwd and /u...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-18-2004 06:04 AM
тАО03-18-2004 06:04 AM
what is the difference between /sbin/passwd and /usr/bin/passwd
Can anybody please let me know?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 06:09 AM
тАО03-18-2004 06:09 AM
Re: what is the difference between /sbin/passwd and /usr/bin/passwd
This is the same reason to never replace root shell (/sbin/sh) with the seemingly equivalent /usr/bin/sh.
The dynamically linked versions are more memory efficient but require that other filesystems be mounted.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 06:10 AM
тАО03-18-2004 06:10 AM
Re: what is the difference between /sbin/passwd and /usr/bin/passwd
fwc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 06:13 AM
тАО03-18-2004 06:13 AM
Re: what is the difference between /sbin/passwd and /usr/bin/passwd
/usr/bin/passwd is dynamically linked and depends on shared executables to be present for successful execution. /sbin/passwd doesnt depend on shared libaries.
use file,ldd and chatr commands against these two files. you will under the difference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2004 02:16 PM
тАО03-18-2004 02:16 PM
Re: what is the difference between /sbin/passwd and /usr/bin/passwd
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2004 12:06 AM
тАО03-19-2004 12:06 AM
Re: what is the difference between /sbin/passwd and /usr/bin/passwd
Regards
VJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-19-2004 04:36 AM
тАО03-19-2004 04:36 AM
Re: what is the difference between /sbin/passwd and /usr/bin/passwd
The reason for this is that passwd and other commands depend heavily on PAM (Pluggable Authentication Modules). That is implemented by a series of libraries under /usr/lib. In single-user mode, /usr is often not mounted, so those libraries wouldn't be available in that case.
To emphasize the limited role of /sbin/passwd on newer HP-UX systems, the default permissions of /sbin/passwd have been changed to only allow superusers to execute it.