Solved

whoami on cygwin

Posted on 2002-06-04
6
851 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

 

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Adults who share images on social media aren’t the only ones who need to worry about their privacy. Our culture’s tendency to share every move and celebration affects the privacy of our children, too.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

735 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