whoami on cygwin

Other than the esoteric question "whoami" :)

I log in to a win2000 computer with my network domain  password and then when I type "whoami" in a cygwin window it says "Administrator"

How do I get it to say my domain user name and not administrator?
Who is Participating?
jmiller47Connect With a Mentor Commented:
Ahh... Thank you for that information pjknibbs! I was unaware of this application.

JamesHartnett, I would imagine that your problem may be stemming from the fact that cygwin seem to automatically assume you to be the local Administrator account.

As you can see from your prompt, you probably see something Administrator@computername.

Try using the command 'su' and see if you can log in as your domain account. The reason it is probably just saying Administrator is that you probably are logged in (to your cygwin session) as Administrator.

I hope this helps.

Basic questions first...
1) At the Logon screen, in the drop-down box, you do have your Domain name listed, not your computer name right?
2) I'm not exactly sure what you mean by cygwin window. I am assuming that you mean a command prompt window...

Have you tried using - WHOAMI /ALL
Have you tried looking at the syntax of the command using - WHOAMI /?

I hope this helps
jmiller: Cygwin is a freeware downloadable program which simulates a UNIX shell under Windows, so no, it isn't a standard command prompt.
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

JamesHartnettAuthor Commented:
Thanks my prompt does say administrator. Funny I never noticed that. No I need to ask around to find out to log in as myself because the su command doesn't work.
are you getting an error RPC server unavailable when trying??
Did you ever get this solved? Just wondering :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.