Mac Software To Track User Login

Confirm Password: Next Step Submit Cancel Submit Cancel. Explore the world of Mac. Check out MacBook Pro, iMac Pro, MacBook Air, iMac, and more. Visit the Apple site to learn, buy, and get support.

Of course, you probably don’t want to do this to your user account, but you may be examining a Mac when someone else, such as one of your children, is the current user. The Login Items tab shows a list of apps that launch when you log into or start up this Mac. Sign in to iCloud to access your photos, videos, documents, notes, contacts, and more. Use your Apple ID or create a new account to start using Apple services. Dec 16, 2016  Mac Basics, Help and Buying Advice MacRumors attracts a broad audience of both consumers and professionals interested in the latest technologies and products. We also boast an active community focused on purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac.

Choose an account for automatic login

  1. Choose Apple menu  > System Preferences, then click Users & Groups.
  2. Click the lock , then enter the account password.
    If you aren't logged in as an administrator, you're asked to enter an administrator name and password.
  3. Click Login Options in the lower-left corner.
  4. Choose an account from the “Automatic login” menu, then enter the password of that account.

The account is now set up to log in automatically when your Mac starts up. You might still be asked to log in manually after logging out, switching back from another user account, or locking your screen.

If automatic login is unavailable

When manual login is required, the “Automatic login” menu is dimmed or doesn't show the account name. For example:

  • If FileVault is turned on, manual login is required for all accounts. You can turn FileVault off.
  • If an account uses an iCloud password to log in, manual login is required for that account. You might also see the message “A user with an encrypted home folder can't log in automatically.” When changing the account password, you can choose not to use the iCloud password.

Log in after sleep or screen saver begins

You might still need to enter your password when your Mac wakes from sleep or stops using the screen saver. You can change this behavior:

  1. Choose Apple menu  > System Preferences, then click Security & Privacy.
  2. In the General pane, deselect ”Require password after sleep or screen saver begins.” Or leave it selected, but choose a time interval from the pop-up menu:

Create a login/logout tracking log file for all users | 20 comments | Create New Account
Click here to return to the 'Create a login/logout tracking log file for all users' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a login/logout tracking log file for all users

I haven't studied this hint in detail, so I may be badly wrong, but couldn't you use the 'last' command in the Terminal to get this information?
Chris

Create a login/logout tracking log file for all users
Create a login/logout tracking log file for all users
Create a login/logout tracking log file for all users

That's funny. I never knew about the last command.
Does last's log file get deleted every month during the automatic log cleaning of the system? When I check the log it only goes back to Aug 1st, but checking the log from my hint it goes back to June when I first implemented this hint. If the log is deleted every month then I think I'll stick with my solution because checking last on Aug 1st will not tell me what happened on July 31st.

Create a login/logout tracking log file for all users

You could likely change the log rolling to not change wtmp. Or, set up a cronjob to execute last and save the output into a file you own.
Last produces binary file with the permissions
-rw-r--r-- 1 root admin 19836 Aug 18 10:09 /var/log/wtmp
The root ownership and read only permissions for non-root users prevents basic abuse. While your children may be trusted to respect parental limits, and thus your script may be fine, for system administrators who need to track usage of a machine, last is very reliable. It also logs ftp, ssh, and telnet access.

Create a login/logout tracking log file for all users

'The login hook will be run as root.'
Ignore my previous comment.

Create a login/logout tracking log file for all users

Although the 'last' commands' login log gets cleaned out every once and a while, it appears that archives are stored in /var/log/wtmp.n.gz where 'n' is sequential to how many times it has been archived. Unzip the file, and use last -f <file> to view the archived log.
Thanks for the tip, it lead me to figure this out.

Create a login/logout tracking log file for all users

By having these scripts run at login and logout, I've found other uses for them too. I can add other script code to my scripts to have other things performed on my mac too.
For example, I've disabled the startup chime when my mac reboots. I added the code /usr/bin/osascript -e 'set volume 4' to the loginscript and /usr/bin/osascript -e 'set volume 0' to the logoutscript. This way my volume gets set to zero when I logout and thus the startup chime is muted, and the volume gets set to a consistent level (i.e. 4) when I boot up.

Create a login/logout tracking log file for all users

After seeing what you added, I decided to use '/usr/sbin/diskutil unmount /dev/disk0s3' in mine to unmount my Windows partition on login :D

Create a login/logout tracking log file for all users

Yes, the login/logout hooks are very powerful. There's much that can be done that you can't do with the 'login items' in the accounts preference pane.

Create a login/logout tracking log file for all users

Interested to know why everybody on your Mac logs in and out--why not use Fast User Switching?

Create a login/logout tracking log file for all users

Limiting usage to a single login session instead of using Fast User Switching can improve performance on systems with less memory.

Create a login/logout tracking log file for all users

I am not a fan of the last command because the wtmp database can become corrupted very easily. I don't know why but it it can. That is why a third party logger can be very helpful.
These kinds of things are important to me because of the kind of logging that I'm required to maintain on my systems. This problem doesn't just show up on Macs. It can show up in Solaris, Linux, IRIX and HP-UX.

Create a login/logout tracking log file for all users
Create a login/logout tracking log file for all users

Related, but a little off-topic: Is there a way to monitor file system changes? Specifically, some time ago we lost a bunch of files, which may possibly have been intentionally deleted by a malicious user. But we have not found a way to determine when and by whom the files were deleted. Does anyone know a good monitoring solution for this type of situation?

Create a login/logout tracking log file for all users
I use the 'last' command as follows and have it emailed to me from their computer each day at 9 PM (the time when the eldest loses further internet access).

last | grep '$( date | cut -c5-10 )' | cut -c1-10,37-75 | sort

What it does: performs the last command passes the results to grep which filters all but those which match todays date passes that to the cut command which just gives me the username and start to stop times then it is sorted so each user's data is grouped together

---
--Chip

Create a login/logout tracking log file for all users

Interesting that no one said anything about the big implication with this hint: you are spying on your kids.
I don't want my employer to collect this type of data about me, why would it be ok just because the subject can't defend him-/herself?
---
http://www.google.com/search?as_q=%22Authored+by%3A+david-bo%22&num=10&hl=en&ie=ISO-8859-1&btnG=

Mac Software To Track User Login In Servicenow

Create a login/logout tracking log file for all users

You don't think your employer collects data about you??? Really? Anyway, as an adult maybe you don't need supervision... but kids certainly do. That's my responsibility.

Create a login/logout tracking log file for all users

Eh... pardon my ignorance, but a few things:
1. How do you create scripts?
2. My computer has no /usr/local/bin, so I have no idea how to save the script, if I knew how to make one.
3. My terminal is saying that it does not recognize a+x.
4. My terminal is saying that it does not recognize ?.
Er, sorry if these are obvious questions, but I'm not a very proficient user.
---
Phillip
'I played a blank tape on full volume. The mime who lives next door complained.' -SW

Mac Software To Track User Login
Create a login/logout tracking log file for all users

1. How do you create scripts?

In a plaintext editor like TextEdit, or my favourite TextMate. BBEdit is the other major editor but it's expensive IMO.

2. My computer has no /usr/local/bin, so I have no idea how to save the script, if I knew how to make one.

Mac Software To Track User Login Iphone

You need to be an administrator and enable root access to tinker with the contents of /usr. If you have the priveleges necessary use:

to create the necessary directories all the way down to /usr/local/bin

3. My terminal is saying that it does not recognize a+x.

Once the scripts exist in the /usr/local/bin directory use…

…to enable execution. You'll need to change loginscript to the name of your script, whatever that may be.

Mac Software To Track User Login Windows 10

4. My terminal is saying that it does not recognize ?.

What exactly is the response from Terminal? Is it that terminal does not recognise a question mark or are you trying to work with files that don't exist??

The errors may be due to the scripts being located somewhere other than where you're chmod'ing.

Mac Software To Track User Login Windows 10

---
James