There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash drive driver drivers error ethernet excel freeze games gaming gpu hard drive hardware hdmi internet laptop malware memory monitor motherboard mouse network printer problem ram registry router security slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
On the command who

Reply  
Thread Tools
mgonzalo's Avatar
Junior Member with 15 posts.
 
Join Date: Apr 2007
Experience: Beginner
24-Aug-2007, 05:25 AM #1
On the command who
before anything, to ask for forgiveness for my bad English

I have 2 you scheme one it is HP-UX w-hp4 B.11.11 OR 9000/800 and the other one is SunOS isis 5.8
Generic_108528-15 sun4u sparc SUNW,Ultra-250

The problem is that when from user's bill I connect myself to root with the command "su -" from HP it schemes it if I execute whoami tells me that I am root but from the Sun if I execute who am i" tells me that I am the user with which connects me to it schemes it, before executing "su -" which is the command that I should execute in Sun to know in all moment that user is and not to made a mistake?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
24-Aug-2007, 11:54 AM #2
Hi mgonzalo,

The whoami command is used to print the effective user id. Try using the id command which is used to print the user identity when you are in a regular account vs. in the root account and contrast it with what you get with the whoami command in each case.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
mgonzalo's Avatar
Junior Member with 15 posts.
 
Join Date: Apr 2007
Experience: Beginner
27-Aug-2007, 06:35 AM #3
thank you, it has worked me the command "id"
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:56 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.