Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Various commands installed but not found?

  1. #11
    Join Date
    Nov 2008
    Beans
    4

    Re: Various commands installed but not found?

    passwd package status:
    Code:
    $ dpkg-query -s passwd
    Package: passwd
    Status: install ok installed
    Multi-Arch: foreign
    Priority: required
    Section: admin
    Installed-Size: 2000
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: i386
    Source: shadow
    Version: 1:4.1.4.2+svn3283-3ubuntu5
    Replaces: manpages-tr (<< 1.0.5), manpages-zh (<< 1.5.1-1)
    Depends: libc6 (>= 2.15), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libpam-modules, debianutils (>= 2.15.2)
    Conffiles:
     /etc/default/useradd cc9f9a7713ab62a32cd38363d958f396
     /etc/cron.daily/passwd db990990933b6f56322725223f13c2bc
     /etc/pam.d/passwd eaf2ad85b5ccd06cceb19a3e75f40c63
     /etc/pam.d/chfn 4d466e00a348ba426130664d795e8afa
     /etc/pam.d/chsh a6e9b589e90009334ffd030d819290a6
     /etc/pam.d/chpasswd 9900720564cb4ee98b7da29e2d183cb2
     /etc/pam.d/newusers 1454e29bfa9f2a10836563e76936cea5
    Description: change and administer password and group data
     This package includes passwd, chsh, chfn, and many other programs to
     maintain password and group data.
     .
     Shadow passwords are supported.  See /usr/share/doc/passwd/README.Debian
    Homepage: http://pkg-shadow.alioth.debian.org/
    Original-Maintainer: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
    A quick look in /bin:
    Code:
    $ /bin/passwd
    -bash: /bin/passwd: No such file or directory
    I can run /bin commands:
    Code:
    $ /bin/bzip2
    bzip2: I won't write compressed data to a terminal.
    bzip2: For help, type: `bzip2 --help'.
    Finding passwd, no errors:
    Code:
    $ find / -iname 'passwd' 2>/dev/null
    /usr/share/lintian/overrides/passwd
    /usr/share/doc/passwd
    /etc/passwd
    /etc/pam.d/passwd
    /etc/cron.daily/passwd
    /home/server/.vnc/passwd
    Trying to reinstall passwd:
    Code:
    $ sudo apt-get install --reinstall passwd
    [sudo] password for server: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
    Need to get 935 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise/main passwd i386 1:4.1.4.2+svn3283-3ubuntu5 [935 kB]
    Fetched 935 kB in 2s (415 kB/s) 
    (Reading database ... 254758 files and directories currently installed.)
    Preparing to replace passwd 1:4.1.4.2+svn3283-3ubuntu5 (using .../passwd_1%3a4.1.4.2+svn3283-3ubuntu5_i386.deb) ...
    Unpacking replacement passwd ...
    Processing triggers for man-db ...
    Setting up passwd (1:4.1.4.2+svn3283-3ubuntu5) ...
    $
    $
    $ passwd
    Changing password for server.
    (current) UNIX password: 
    Enter new UNIX password: 
    Retype new UNIX password: 
    passwd: password updated successfully
    It works Thank you so much!

  2. #12
    Join Date
    Apr 2011
    Location
    Maryland
    Beans
    1,461
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: Various commands installed but not found?

    Wow! That's totally bizarre. Glad to see that a simple re-install works. I hope that also fixes 'shutdown' and 'reboot' for you.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •