The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Advanced & Expert Users
Help with su -
Tags
advanced
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Top Forums
UNIX for Advanced & Expert Users
Help with su -
#
1
02-03-2011
Grueben
Registered User
103,
0
Join Date: Aug 2010
Last Activity: 6 September 2018, 9:22 AM EDT
Posts: 103
Thanks Given: 50
Thanked 0 Times in 0 Posts
Help with su -
Hello,
I've telneted into a unix box (as id1) and then issued a su - id3 to switch to the other userid. Does anyone know how I can prove this user id has been swtiched to? I've tried finger and who but it only shows the id1 as being logged on.
Any help much appreciated
Grueben
View Public Profile for Grueben
Find all posts by Grueben
#
2
02-03-2011
methyl
Registered User
6,402,
678
Join Date: Mar 2008
Last Activity: 8 June 2016, 9:58 PM EDT
Posts: 6,402
Thanks Given: 288
Thanked 678 Times in 647 Posts
Try the unix "id" command.
Code
:
id
You've probably already tried:
Code
:
who am i
Last edited by methyl; 02-03-2011 at
01:07 PM
..
methyl
View Public Profile for methyl
Find all posts by methyl
#
3
02-03-2011
Corona688
Registered User
23,310,
4,623
Join Date: Aug 2005
Last Activity: 7 July 2020, 11:47 AM EDT
Location: Saskatchewan
Posts: 23,310
Thanks Given: 1,331
Thanked 4,623 Times in 4,217 Posts
you should have seen an error message if su - failed, I think.
create a file, see who it belongs to.
touch /tmp/filename ; ls -l /tmp/filename ; rm /tmp/filename
This User Gave Thanks to Corona688 For This Post:
methyl
Corona688
View Public Profile for Corona688
Visit Corona688's homepage!
Find all posts by Corona688
#
4
02-03-2011
birei
Registered User
628,
174
Join Date: Oct 2010
Last Activity: 2 December 2017, 5:58 AM EST
Location: Madrid, Spain
Posts: 628
Thanks Given: 8
Thanked 174 Times in 171 Posts
Hi,
Code
:
$ whoami
could be useful too.
Regards,
Birei
birei
View Public Profile for birei
Find all posts by birei
#
5
02-03-2011
Grueben
Registered User
103,
0
Join Date: Aug 2010
Last Activity: 6 September 2018, 9:22 AM EDT
Posts: 103
Thanks Given: 50
Thanked 0 Times in 0 Posts
Thanks all !
Grueben
View Public Profile for Grueben
Find all posts by Grueben
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×