LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2012, 06:35 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
missing fields in /etc/shadow


I am watching these videos with study material for the Linux+ exam. Instead of creating a new user with no password and then using the passwd command, he uses openssl passwd -crypt and then takes the hash that generates and gives it with the useradd -p option. Then the new line in /etc/shadow file is missing the encryption id and salt (i guess if none is given, it assumes not salted), so how will it know what encryption method to use?

from man 3 crypt:

Quote:
$id$salt$encrypted
And no where in there does it talk about omitting one or more of the fields.
Attached Thumbnails
Click image for larger version

Name:	shadow.JPG
Views:	60
Size:	111.9 KB
ID:	10911  
 
Old 10-08-2012, 07:51 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
This page and site may help http://www.openssl.org/docs/apps/passwd.html#.
Basically, he's creating an encrypted (hashed) passwd using the old Unix style crypt algo.
Also, no salt and no id.

The system will assume 'crypt' if no id is specified.
Obviously not very secure, but ok for demo purposes I guess.
There was also a limit that only the first 8 chars would be hashed, even if more were specified in the plaintext src passwd.(!)
 
Old 10-21-2012, 04:17 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Thanks and stop browing LQ with windoze
 
Old 10-21-2012, 07:48 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,358

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Quote:
stop browing LQ with windoze
I hope that's joke ...
In any case, I browse with whatever is in front of me....
 
Old 10-23-2012, 12:30 PM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Something about pot and kettle; fakie_flip's first post was from windows
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Awk with missing fields Linux_Kidd Programming 39 04-27-2012 02:27 PM
[SOLVED] deleting fields in lines that have more fields than the average patolfo Linux - Software 4 09-14-2011 11:03 AM
[SOLVED] help with simple startup script - missing LSB fields tux-junkie Debian 3 07-14-2011 08:41 AM
/etc/shadow File Fields ?? lensem Linux - Software 3 10-16-2010 07:39 AM
/etc/shadow file missing Computergirl24 Linux - Software 3 08-28-2008 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration