Solved

whoami on cygwin

Posted on 2002-06-04
6
859 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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…
Determining the an SCCM package name from the Package ID
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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