LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 01-31-2006, 03:19 AM   #1
hotbacteria
LQ Newbie
 
Registered: Jan 2006
Posts: 11

Rep: Reputation: 0
Cannt login as root . made changes to .bash_profile


Hi all

I am in a fix. I edited the PATH of the Root user's .bash_profile . So i am unable to login as root now. I can login as a user but than I cann't access the important data which is lying under Root Authentication and execute it as i don't have permissions.

Can some one help me how can i fix it ?
Is there any way out by which i can change permissions to the user so that i can access ,write and execute that root data from my user account ?
or better if there any way i can correct the .bash_profile of my root account while staying in user account ?

Please Let me know at hotbacteria @ rediffmail com

Regards
Tarun
 
Old 01-31-2006, 03:42 AM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Can you still su to root, i.e. type su at the command line and it should prompt you for root's password. Then you can go restore your backup copy of .bash_profile that you made before altering the file.
 
Old 01-31-2006, 05:19 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Please don't crosspost in different forums.
http://www.linuxquestions.org/questi...d.php?t=409898
 
Old 01-31-2006, 11:03 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Here's the original:
http://www.linuxquestions.org/questi...d.php?t=409895

and its "other siblings":
http://www.linuxquestions.org/questi...d.php?t=409900
http://www.linuxquestions.org/questi...d.php?t=409898
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
~/.bash_profile not being executed at login Radicalm16 Slackware 9 07-28-2009 10:39 PM
Cannt login as root . made changes to .bash_profile hotbacteria Linux - General 5 02-01-2006 04:24 AM
Cannt login as root . made changes to .bash_profile hotbacteria Linux - Newbie 3 01-31-2006 11:02 PM
.bash_profile as root knoxlinuxuser Linux - Newbie 3 02-26-2005 11:48 AM
.bash_profile overwritten on login to root Awesome Dude Linux - Newbie 1 08-23-2004 03:41 PM


All times are GMT -5. The time now is 10:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration