Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 01-31-2006, 02:11 AM   #1
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

Old 01-31-2006, 02:24 AM   #2
Registered: Aug 2004
Location: bangalore
Distribution: Redhat,Ubuntu
Posts: 64

Rep: Reputation: 15
Login as a user . open a terminal

type su at the promt . Enter the root's password

now u r in as root

u can change back wat ever changes u had done to ur profile of root
Old 01-31-2006, 04: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.
Old 01-31-2006, 10:02 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
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.

Here's the original:

and its "other younger siblings":

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 09:39 PM
Cannt login as root . made changes to .bash_profile hotbacteria Linux - General 5 02-01-2006 03:24 AM
need root .bashrc .bash_profile darkRoom Slackware 5 04-30-2005 03:24 AM
.bash_profile as root knoxlinuxuser Linux - Newbie 3 02-26-2005 10:48 AM
.bash_profile overwritten on login to root Awesome Dude Linux - Newbie 1 08-23-2004 02:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

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