?
Solved

Changing password without /bin/passwd

Posted on 1998-06-03
7
Medium Priority
?
541 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 400 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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
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

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

719 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