LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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


Reply
  Search this Thread
Old 10-17-2012, 04:39 AM   #1
MaLijaa
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
I cant type command "su -" !!!! pls help


Hello, i'm newbie in linux at all. I am using Centos 6.3 cuz i need that for my uni ! Well, today i typed "sudo vi .bashrc" for some practice and when i restarted the terminal i cant acces to my root ! Ofc, i know the passwd and all what i need ...
The problem show up when i try to log at root with "su -", after i type my passwd its show me a this mssg

-bash: /root/.bashrc: line 13: syntax error: unexpected end of file
-bash-4.1#


how i can fix that ? Pls help me

ty ^^
 
Old 10-17-2012, 04:44 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
showing us line 13 of /root/.bashrc would seem the logical thing to do really. but that looks like it DID work.
 
Old 10-17-2012, 05:29 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,661

Rep: Reputation: 485Reputation: 485Reputation: 485Reputation: 485Reputation: 485
Quote:
-bash: /root/.bashrc: line 13: syntax error: unexpected end of file
-bash-4.1#
Try:
Open your /root/.bashrc using text editor and try to Comment Out ( # ) before anything in line 13.
Logout and login, then issue the command you want: ~~# su me

The bash debugger has clearly pointed from where it complains.

Good luck.
 
  


Reply


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
[SOLVED] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 9 07-17-2017 12:27 PM
When I type "sudo grub" it says "command not found" in Ubuntu 10.10 poumtatalia Linux - Newbie 5 09-14-2010 05:21 PM
How to get the "data type" of an "unknown variable" in "C Language" ? Affair Programming 8 06-20-2009 12:30 PM
RH9,it apper something wrong when I type Command "rpm" setactive Linux - General 1 07-31-2003 10:37 AM
Linux Equivilant to DOS "Type" command Huggles Linux - General 9 02-27-2002 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:47 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