password not working in terminal

Joined
Jan 10, 2019
Messages
1
Reaction score
0
Points
1
Hello, I am having some issues in terminal not accepting my password. I am unable to use my DoD CAC card on my mac. It was working good, until I updated my mac to High Sierra 10.13.6 and now I cannot use it. From reading some forums on the issue, I am supposed to run the following prompt in terminal
sudo defaults write /Library/Preferences/com.apple.security.smartcard DisabledTokens -array
com.apple.CryptoTokenKit.pivtoken
Once I enter that in terminal it asks for a password. I am logged in as an administrator and I am putting my password in, but it keeps telling me sorry try again. I changed my password several times to see if that was the issue and no luck. I also created a second administrator account and tried it, all with no luck. Does anyone have any ideas on what I can do or what to look at for trying to fix this? Any help would be appriciated.
 
Joined
May 21, 2012
Messages
10,703
Reaction score
1,158
Points
113
Location
Rhode Island
Your Mac's Specs
M1 Mac Studio, 11" iPad Pro 3rdGen, iPhone 13 ProMax, Watch S7, 2018 15" MBP, AirPods Pro
When using terminal, and you enter your password, the cursor does not move, you have to be sure to enter the password properly, then press enter/return.

It sounds like this is not the first admin account created on that Mac. You may have to erase the drive, to get back root privileges?
 
Joined
Oct 16, 2010
Messages
17,494
Reaction score
1,541
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
It sounds like this is not the first admin account created on that Mac. You may have to erase the drive, to get back root privileges?


WOWCH!!! That sounds like a rather drastic solution!!

Just saying...






- Patrick
======
 
Joined
Jan 1, 2009
Messages
15,453
Reaction score
3,808
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 15 Pro, plus ATVs, AWatch, MacMinis (multiple)
Is the response literally, "Sorry, try again?" If not, what is the exact error message you are seeing? Terminal is pretty finicky about typing in things like that. And in your command string I see some spaces that could be in the incorrect place, or that would need to be addressed if they are actually spaces in the name and not spaces between commands and parameters or modifiers.
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
I don't think he can run that command from terminal while the system is up and running which may be why he's getting a password denial.

OP: Try booting to Recovery, enter utilities, select terminal and run the command again. Let us know if that works.
 
Joined
Oct 16, 2010
Messages
17,494
Reaction score
1,541
Points
113
Location
Brentwood Bay, BC, Canada
Your Mac's Specs
2011 27" iMac, 1TB(partitioned) SSD, 20GB, OS X 10.11.6 El Capitan
Does anyone have any ideas on what I can do or what to look at for trying to fix this? Any help would be appriciated.


Aside from Terminal and the Admin password not working, why is that command even being used as it seems opposite as to what the OP is attempting to do and seems awfully similar to the Terminal command suggested here:
How do I disable the built-in Smart Card support in macOS Sierra?
https://forums.developer.apple.com/thread/63476

That seems to be backward to what the problem is. Or am I misunderstanding something???
I am unable to use my DoD CAC card on my mac. It was working good, until I updated my mac to High Sierra 10.13.6 and now I cannot use it. From reading some forums on the issue, I am supposed to run the following prompt in terminal





- Patrick
======
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top