Lawrence Johnston Lawrence Johnston In what sense is 'whoami' obsoleted? Who has declared it obsolete? Jonathan: The man page for whoami on Leopard confirms that it has been replaced by id. Why are they changing something that has been around since the dawn of time? Andrew Andrew k gold badges silver badges bronze badges. Sep 11 '17 at This works great if you are ssh'ed into a machine and want to see if a user is logged on locally.
If they are not, the command will return "root". I'm pretty sure the terminal in OS X is just like unix, so the command would be: whoami I don't have a mac on me at the moment so someone correct me if I'm wrong. Eric Koslow Eric Koslow 1, 2 2 gold badges 15 15 silver badges 32 32 bronze badges. There may be multiple login sessions; UNIX is designed to be a multi-user system, after all. The answer is yes; so, now my crontab shell script has been modified in the following way Maurizio Loreti Maurizio Loreti 3 3 bronze badges.
I generally use whoami in terminal For example, in this case, I needed that to install Tomcat Server Alireza Alireza 60k 14 14 gold badges silver badges bronze badges. Adam Link Adam Link 2, 4 4 gold badges 21 21 silver badges 43 43 bronze badges. This is definitely the cleanest and easiest solution.
It works no matter what user is executing the command. Define 'active user'. Jonathan Leffler Jonathan Leffler k 97 97 gold badges silver badges bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
Change the name of your macOS user account and home folder
Email Required, but never shown. Featured on Meta. Congratulations to our 29 oldest beta sites - They're now no longer beta! Very helpful. Previous to I found users, my user name, and then under my selected user name it said admin.
This made sense. I am using High Sierra v Maybe I will write a book one day! Excellent suggestions, thank you all. Can someone tell me why Groupmembership would state: root and my computer name here. This will delete the user from the directory. Then if you want to delete the user folder you can do. I have listed the users on my mac suspecting that someone had hacked my Mac as it had turned out to be very slow. That is in addition to my created users.
Does this mean that everything is ok, or should I start worrying! Maybe post at the Apple Discussions forum? Or a bad file system.
Just checking something as I am not a command line user. When I use dscl. Who is this and should I get rid of it? If you have Fast User Account Switching enabled in Mac OS X you can see the list of possible user names on the Mac by clicking on the name or icon in the upper right corner.
Name required. Mail will not be published required. All Rights Reserved. Reproduction without explicit permission is prohibited.
Dicle says:. December 6, at am.
Understanding User Accounts in macOS | The Mac Security Blog
Mau says:. October 19, at pm. LJ says:. July 10, at pm.
- transmitir radio por internet con mac.
- vlc mac lion free download.
- macos - How do I find my user ID and group in Mac OS X? - Super User.
- Mac OS X: Change your User ID.
- buying a new computer mac vs pc.
Rouabah says:. June 21, at pm. Corey says:. May 1, at am. Ashraf Fahmy says:.