Solved

whoami on cygwin

Posted on 2002-06-04
6
797 Views
Last Modified: 2010-04-13
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?
0
Comment
Question by:JamesHartnett
  • 4
6 Comments
 
LVL 7

Expert Comment

by:jmiller47
ID: 7054987
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
0
 
LVL 12

Expert Comment

by:pjknibbs
ID: 7055574
jmiller: Cygwin is a freeware downloadable program which simulates a UNIX shell under Windows, so no, it isn't a standard command prompt.
0
 
LVL 7

Accepted Solution

by:
jmiller47 earned 50 total points
ID: 7055667
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.

0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:JamesHartnett
ID: 7057850
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.
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7057972
are you getting an error RPC server unavailable when trying??
0
 
LVL 7

Expert Comment

by:jmiller47
ID: 7081093
Did you ever get this solved? Just wondering :)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now