How to get user information Mac?












1















How would I get user information from a Mac such as user domain, etc. through a Terminal command?



I've tried dscl as well as dscacheutil, but they don't really have what I'm looking for. I was wondering if there any other options out there for retrieving user information. If not, I'll make do with these two commands.










share|improve this question























  • When you say "domain", what exactly are you referring to? An Active directory domain? LDAP? How is the system configured to be on the domain?

    – Darth Android
    Oct 11 '12 at 15:18











  • An active directory domain.

    – John
    Oct 11 '12 at 19:12


















1















How would I get user information from a Mac such as user domain, etc. through a Terminal command?



I've tried dscl as well as dscacheutil, but they don't really have what I'm looking for. I was wondering if there any other options out there for retrieving user information. If not, I'll make do with these two commands.










share|improve this question























  • When you say "domain", what exactly are you referring to? An Active directory domain? LDAP? How is the system configured to be on the domain?

    – Darth Android
    Oct 11 '12 at 15:18











  • An active directory domain.

    – John
    Oct 11 '12 at 19:12
















1












1








1


1






How would I get user information from a Mac such as user domain, etc. through a Terminal command?



I've tried dscl as well as dscacheutil, but they don't really have what I'm looking for. I was wondering if there any other options out there for retrieving user information. If not, I'll make do with these two commands.










share|improve this question














How would I get user information from a Mac such as user domain, etc. through a Terminal command?



I've tried dscl as well as dscacheutil, but they don't really have what I'm looking for. I was wondering if there any other options out there for retrieving user information. If not, I'll make do with these two commands.







mac command-line terminal domain users






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 11 '12 at 13:04









JohnJohn

14327




14327













  • When you say "domain", what exactly are you referring to? An Active directory domain? LDAP? How is the system configured to be on the domain?

    – Darth Android
    Oct 11 '12 at 15:18











  • An active directory domain.

    – John
    Oct 11 '12 at 19:12





















  • When you say "domain", what exactly are you referring to? An Active directory domain? LDAP? How is the system configured to be on the domain?

    – Darth Android
    Oct 11 '12 at 15:18











  • An active directory domain.

    – John
    Oct 11 '12 at 19:12



















When you say "domain", what exactly are you referring to? An Active directory domain? LDAP? How is the system configured to be on the domain?

– Darth Android
Oct 11 '12 at 15:18





When you say "domain", what exactly are you referring to? An Active directory domain? LDAP? How is the system configured to be on the domain?

– Darth Android
Oct 11 '12 at 15:18













An active directory domain.

– John
Oct 11 '12 at 19:12







An active directory domain.

– John
Oct 11 '12 at 19:12












1 Answer
1






active

oldest

votes


















0














This can be accomplished by using ls -l /Users/



and will be returned something similar to:




drwxrwxrwt 5 root wheel 170 Feb 1 2012 Shared



drwxr-xr-x+ 12 DOMAINfinalcuteditor staff 408 Sep 7 2011
finalcuteditor



drwxr-xr-x+ 19 local-admin staff 646 Sep 18 20:50
local-admin




...where DOMAINuser will give you the information you are looking for.



Also, you may find value in this command: dscl . readall /users or for less verbose information you may find what you need using dscl . readall /users | grep username



...dscl tip taken from https://stackoverflow.com/a/1308064/805031






share|improve this answer


























  • That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

    – TryTryAgain
    Mar 1 '13 at 22:36













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f486356%2fhow-to-get-user-information-mac%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














This can be accomplished by using ls -l /Users/



and will be returned something similar to:




drwxrwxrwt 5 root wheel 170 Feb 1 2012 Shared



drwxr-xr-x+ 12 DOMAINfinalcuteditor staff 408 Sep 7 2011
finalcuteditor



drwxr-xr-x+ 19 local-admin staff 646 Sep 18 20:50
local-admin




...where DOMAINuser will give you the information you are looking for.



Also, you may find value in this command: dscl . readall /users or for less verbose information you may find what you need using dscl . readall /users | grep username



...dscl tip taken from https://stackoverflow.com/a/1308064/805031






share|improve this answer


























  • That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

    – TryTryAgain
    Mar 1 '13 at 22:36


















0














This can be accomplished by using ls -l /Users/



and will be returned something similar to:




drwxrwxrwt 5 root wheel 170 Feb 1 2012 Shared



drwxr-xr-x+ 12 DOMAINfinalcuteditor staff 408 Sep 7 2011
finalcuteditor



drwxr-xr-x+ 19 local-admin staff 646 Sep 18 20:50
local-admin




...where DOMAINuser will give you the information you are looking for.



Also, you may find value in this command: dscl . readall /users or for less verbose information you may find what you need using dscl . readall /users | grep username



...dscl tip taken from https://stackoverflow.com/a/1308064/805031






share|improve this answer


























  • That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

    – TryTryAgain
    Mar 1 '13 at 22:36
















0












0








0







This can be accomplished by using ls -l /Users/



and will be returned something similar to:




drwxrwxrwt 5 root wheel 170 Feb 1 2012 Shared



drwxr-xr-x+ 12 DOMAINfinalcuteditor staff 408 Sep 7 2011
finalcuteditor



drwxr-xr-x+ 19 local-admin staff 646 Sep 18 20:50
local-admin




...where DOMAINuser will give you the information you are looking for.



Also, you may find value in this command: dscl . readall /users or for less verbose information you may find what you need using dscl . readall /users | grep username



...dscl tip taken from https://stackoverflow.com/a/1308064/805031






share|improve this answer















This can be accomplished by using ls -l /Users/



and will be returned something similar to:




drwxrwxrwt 5 root wheel 170 Feb 1 2012 Shared



drwxr-xr-x+ 12 DOMAINfinalcuteditor staff 408 Sep 7 2011
finalcuteditor



drwxr-xr-x+ 19 local-admin staff 646 Sep 18 20:50
local-admin




...where DOMAINuser will give you the information you are looking for.



Also, you may find value in this command: dscl . readall /users or for less verbose information you may find what you need using dscl . readall /users | grep username



...dscl tip taken from https://stackoverflow.com/a/1308064/805031







share|improve this answer














share|improve this answer



share|improve this answer








edited May 23 '17 at 11:33









Community

1




1










answered Mar 1 '13 at 22:30









TryTryAgainTryTryAgain

1829




1829













  • That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

    – TryTryAgain
    Mar 1 '13 at 22:36





















  • That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

    – TryTryAgain
    Mar 1 '13 at 22:36



















That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

– TryTryAgain
Mar 1 '13 at 22:36







That will provide you with the Domain, as you asked. It seems you are looking for other information as well. If so, let me know and I will post back. I am currently investigating this as well, why I found your post, and have a post here: apple.stackexchange.com/questions/83943/…

– TryTryAgain
Mar 1 '13 at 22:36




















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f486356%2fhow-to-get-user-information-mac%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido