<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: what is the difference between /sbin/passwd and /usr/bin/passwd in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223074#M170679</link>
    <description>This is a truism for everything is /sbin. It is statically linked code. The stuff is /usr/bin is (almost always) dynamically linked. Some utilities need to be able to be executed before any other filesystems are mounted. Most shared libraries reside in /usr/lib -- which is not mounted at boot. &lt;BR /&gt;&lt;BR /&gt;This is the same reason to never replace root shell (/sbin/sh) with the seemingly equivalent /usr/bin/sh. &lt;BR /&gt;&lt;BR /&gt;The dynamically linked versions are more memory efficient but require that other filesystems be mounted.&lt;BR /&gt;</description>
    <pubDate>Thu, 18 Mar 2004 14:09:41 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2004-03-18T14:09:41Z</dc:date>
    <item>
      <title>what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223073#M170678</link>
      <description>As far as I can see, they are doing the same thing: change the password, but have difference size.&lt;BR /&gt;&lt;BR /&gt;Can anybody please let me know?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 14:04:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223073#M170678</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2004-03-18T14:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223074#M170679</link>
      <description>This is a truism for everything is /sbin. It is statically linked code. The stuff is /usr/bin is (almost always) dynamically linked. Some utilities need to be able to be executed before any other filesystems are mounted. Most shared libraries reside in /usr/lib -- which is not mounted at boot. &lt;BR /&gt;&lt;BR /&gt;This is the same reason to never replace root shell (/sbin/sh) with the seemingly equivalent /usr/bin/sh. &lt;BR /&gt;&lt;BR /&gt;The dynamically linked versions are more memory efficient but require that other filesystems be mounted.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 14:09:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223074#M170679</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-18T14:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223075#M170680</link>
      <description>/sbin commands are stand alone commands that are fully linked - having no shared library components allowing them to function in single user when pieces of the filesystem are not mounted.&lt;BR /&gt;&lt;BR /&gt;fwc&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 14:10:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223075#M170680</guid>
      <dc:creator>Floyd Curtis</dc:creator>
      <dc:date>2004-03-18T14:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223076#M170681</link>
      <description>I cannot resist replying to this post..:-)&lt;BR /&gt;&lt;BR /&gt;  /usr/bin/passwd is dynamically linked and depends on shared executables to be present for successful execution. /sbin/passwd doesnt depend on shared libaries.&lt;BR /&gt;&lt;BR /&gt;  use file,ldd and chatr commands against these two files. you will under the difference.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Mar 2004 14:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223076#M170681</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-03-18T14:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223077#M170682</link>
      <description>As mentioned, the programs in /sbin are complete (all needed libraries are loaded into the executable). Dynamic excutables use shared libraries to reduce their size. During bootup, a command like mount is needed to mount the filesystems, but if this program needed shared libraries (which are stored in /usr) it could not run because /usr isn't mounted yet. The other major use of /sbin is in single user mode. /usr is not mounted in single user mode so there must be programs that run without /usr mounted.</description>
      <pubDate>Thu, 18 Mar 2004 22:16:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223077#M170682</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-03-18T22:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223078#M170683</link>
      <description>The functionality of /sbin commands and /usr/bin commands are same. But, /sbin commands are very much helpful when silly things like "rm dld.sl" "rm /usr/bin/ls" "rm ?usr/sbin/mv" etc... are done. These commands only can save us to recover the system to original state.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;VJ</description>
      <pubDate>Fri, 19 Mar 2004 08:06:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223078#M170683</guid>
      <dc:creator>vasundhara</dc:creator>
      <dc:date>2004-03-19T08:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /sbin/passwd and /usr/bin/passwd</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223079#M170684</link>
      <description>VJ, it is USUALLY true that the two versions are the same or nearly so when comparing the /sbin and other versions. But passwd is special.  /sbin/passwd is a 'bare bones' version of the /usr/bin/passwd command. The /sbin/passwd command is intended only for changing root's password in single user mode.  For anything else you should be using /usr/bin/passwd.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2004 12:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-is-the-difference-between-sbin-passwd-and-usr-bin-passwd/m-p/3223079#M170684</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2004-03-19T12:36:00Z</dc:date>
    </item>
  </channel>
</rss>

