Solved

Changing password without /bin/passwd

Posted on 1998-06-03
7
537 Views
Last Modified: 2013-12-15
I have a Linux slakware system, with two accounts: one with login name ventnor, and the other root. The root account was set up unpassworded, which is obviously a bad thing. My problem is that my system doesn't have a /bin/passwd program (or a passwd program in any other directory, apart from /usr/bin/passwd, which has nothing in it); so I'm wondering 1)how my system manages to authenticate me when I log in as ventnor (/etc/passwd has an encrypted field corresponding to "ventnor") and 2) how I can password my root account. I *do* have a /bin/logic binary. I'm probably missing something very obvious here, but I'd be grateful for any help.
0
Comment
Question by:sevrin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 1627459
I'm assuming that someone deleted /usr/bin/passwd either intentionally or accidentally.  In either case, /usr/bin/passwd is NOT used to authenticate users.  That is the function of /bin/login.  It knows how to ask you for a password and compare it with the data in the password database, /etc/passwd.  The /usr/bin/passwd is used as a user interface to the /etc/passwd database allowing you to set/change password information.  Since you have a slakware system, you can get the /usr/bin/passwd program from a SlackWare distribution CDROM or the web site:

http://www.cdrom.com/pub/linux/
0
 

Author Comment

by:sevrin
ID: 1627460
Actually, you deserve more than a 100 points for giving me that Web reference, jhance - but unfortunately I'll need to save them for another question! But I really appreciate your help.
0
 

Author Comment

by:sevrin
ID: 1627461
Oops, I forgot to ask: where exactly on the site is /usr/bin/passwd to be found? The listing for the a disks isn't very informative as to content (I *think* it was the a disks I used originally.)
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 32

Expert Comment

by:jhance
ID: 1627462
I believe that it's in the a series of disks.  That's the core stuff and /usr/bin/passwd is pretty basic.
0
 

Author Comment

by:sevrin
ID: 1627463
There are nine disks, though, and each contains well over 1M, and the descriptions of what's inside them are completely obscure. Can anyone else help? For 50 points?
0
 
LVL 32

Expert Comment

by:jhance
ID: 1627464
Post your email address and I can email you /usr/bin/passwd from my SlackWare distribution.
0
 

Author Comment

by:sevrin
ID: 1627465
Thanks, jhance! It's ventnor@town.nd.edu.au
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bash file 10 65
Linux Desktop suggestion for Dell Inspiron 3043 13 67
Nee dhelp identifying the OS and how to access 7 42
Enable SPF on IMSVA 6 22
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question