Sudo and edit other user's info. | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Sudo and edit other user's info.

UNIX for Advanced & Expert Users


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-04-2012
linuxadmin linuxadmin is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 25 February 2014, 11:29 PM EST
Location: India / Kerala
Posts: 125
Thanks: 24
Thanked 3 Times in 2 Posts
RedHat Sudo and edit other user's info.

i did a mistake.

Code:
user1 ]$ vi ~/.bashrc
sudo su - user2

now , whenever I try to login to user1 , it will login to user2.

How can I resolve this ?

N.B
-- I do not have root access.
-- I dont know password of user2
-- this is a virtual machine.
Sponsored Links
    #2  
Old 12-04-2012
Peasant's Avatar
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 19 April 2014, 5:41 AM EDT
Posts: 607
Thanks: 16
Thanked 138 Times in 134 Posts
Run exit and return to user1 prompt, then modify the bashrc again.

Regards
Peasant.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sudo su - USER ??? How to?? 300zxmuro UNIX for Dummies Questions & Answers 2 06-18-2011 03:48 PM
sudo user blackeyed UNIX for Dummies Questions & Answers 3 10-09-2010 07:03 AM
Update LDIF User info based on Test User Certs ID's Macdaddy99 Shell Programming and Scripting 3 07-14-2010 11:25 AM
scp with a sudo user dlam UNIX for Dummies Questions & Answers 3 06-30-2008 07:34 AM
User Info s_dhar UNIX for Dummies Questions & Answers 1 01-08-2008 06:05 AM



All times are GMT -4. The time now is 10:29 AM.