For those who don’t want the available users to be publically visible to whoever wakes up or powers on your Mac, there is an easy way of hiding the list – or just select members. In a Terminal window run the following:
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add [username]
You can do this to multiple accounts at once;
sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add [username01] [username02] [username03]
To find the username that OS X uses for each user account, do the following:
Go to System Preferences -> Users and Groups -> Click the lock to allow changes -> Right click on a username -> Advanced Options
Under the section:
…you will see the account name which OS X uses for that user account.
If you’re used to screen you’ll be in the habit of using ctrl+a, for example detaching a session with ctrl+a then d – if you make the move to tmux it’s ctrl+b then d, which can take some getting used to. Often it’s easier to make tmux get used to you! To change tmux from ctrl+b to ctrl+a, make sure tmux isn’t running and create the following file:
Here we have used the text editor vi to create the file. Now add the following:
set -g prefix C-a
Save the file. Now the next time you start tmux it should have changed to what you’re used to!