Tag: how to

macbookOS XSecurityUncategorized

When Was The Password Last Changed On This Mac?

In one more of these wonderful scripts that can do crazy things,  philastokes from APPLEWRITERHELPER, has handed you the keys to the kingdom. With this simple script, you can find our the last time the passwords for a set number of users was changed on a Mac running OS. And that right from your Terminal.

Sometimes it can be useful to know when the user’s password was last changed. For example, you might want to enforce a policy of having users (or yourself!) change login passwords after a given period. Alternatively, if you or one of your users is experiencing login difficulties, you might want to check that the password […]

#one liner command line to get last password set times for all users on the mac

# see http://applehelpwriter.com/2018/03/14/6228
echo; echo Password Last Changed:; u=$(dscl . list /Users | egrep -v ‘^_|daemon|nobody’); for i in $u; do printf \\n$i\\t; currentUser=$i;t=$(dscl . read /Users/”$currentUser” | grep -A1 passwordLastSetTime | grep real | awk -F’real>|</real’ ‘{print $2}’); date -j -f %s “$t” 2> /dev/null; done

via how to find when the login password was last changed —

Advertisements
Apple TroubleshootingLittle Tipsmacbook

How to Show Hidden Files on Mac

To show hidden files and folders on Mac,

  • Launch Terminal
  • Type the following command then press Enter:
defaults write com.apple.finder AppleShowAllFiles YES

To hide the hidden files again, just type the same command but replace YES with NO as follows

defaults write com.apple.finder AppleShowAllFiles NO
  • After typing the appropriate command, look for your Finder icon (most likely on your Dock), then right-mouse click on it while holding the Option/Alt key of your keyboard. This will display a contextual menu from which you click Relaunch, to relaunch the Finder browser with your new visibility settings applied.

Now, if all you are looking for is how to display your Library folder in your user home folder, we have the steps in this short guide.

Apple TroubleshootingLittle Tipsmacbook

How to Show (Unhide) the Library Folder on Mac

To display your Library folder in your user home folder,

  • In Finder, go to your user’s home folder (usually similar to your username on the computer), then while you have that open in Finder,
    • go to the View menu in your menu bar,
    • click on Show View Options, then
    • in the new window that comes up, check the box next to Show Library Folder

That should make your Library folder visible among the other folders inside your user home folder.