Solved

whoami on cygwin

Posted on 2002-06-04
6
809 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
Backup Your Microsoft Windows Server®

Backup 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.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

932 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

17 Experts available now in Live!

Get 1:1 Help Now