Solved

Changing password without /bin/passwd

Posted on 1998-06-03
7
533 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
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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.

867 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now