Unix/Linux 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 Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-04-2012
linuxadmin linuxadmin is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 20 August 2014, 5:27 AM EDT
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. Linux

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 ? Linux

N.B
-- I do not have root access.
-- I dont know password of user2
-- this is a virtual machine.
    #2  
Old Unix and Linux 12-04-2012
Peasant's Unix or Linux Image
Peasant Peasant is offline
Registered User
 
Join Date: Mar 2011
Last Activity: 28 September 2016, 7:15 AM EDT
Posts: 986
Thanks: 26
Thanked 262 Times in 239 Posts
Run exit and return to user1 prompt, then modify the bashrc again.

Regards
Peasant.
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 09:37 PM.