Help with su -


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Help with su -
# 1  
Old 02-03-2011
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
# 2  
Old 02-03-2011
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..
# 3  
Old 02-03-2011
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:
# 4  
Old 02-03-2011
Hi,
Code:
$ whoami

could be useful too.

Regards,
Birei
# 5  
Old 02-03-2011
Thanks all !
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question