LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-01-2003, 03:41 PM   #1
AngelLucifer
LQ Newbie
 
Registered: Oct 2003
Posts: 20

Rep: Reputation: 0
How do i get into root from konsole?


I am new to linux and need to check a file in root. The problem is that the konsole tells me I dont have permission to access. My computer is not a network and I want full access to everything. Basically, I want to change from user to root. What is the command for that?
 
Old 11-01-2003, 03:42 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
su

or

su -
 
Old 11-01-2003, 03:42 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Just type "su -" press enter then your password when prompted.
 
Old 11-01-2003, 04:30 PM   #4
AngelLucifer
LQ Newbie
 
Registered: Oct 2003
Posts: 20

Original Poster
Rep: Reputation: 0
thanks will try
 
Old 11-01-2003, 05:06 PM   #5
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
And I think 'su' keeps you in the same directory while 'su -' moves you to /root (or is it the other way around?)

-JMagi
 
Old 11-01-2003, 05:13 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
'su -' moves you back to the root's home directory, but it also adds the paths not included by using just su, like /sbin. for example if using just su and trying to run hdparm, you'd have to use /sbin/hdparm. if using 'su -', the you just need to type in hdparm to run it.
 
Old 11-01-2003, 05:23 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
yeah - to be exact the "-" tells su to start a new shell for the user you are suing to.
 
Old 11-01-2003, 06:23 PM   #8
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Oh ok. That clears up quite a bit. I've usually used su by itself but I didn't realize the dash adds the paths for root as well. Maybe I'll have to make a shell script to "su -" you and then switch back into the folder you were just in.

-JMagi
 
  


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
How do I put my entire system into "root", not just the konsole? GameGuru Linux - Newbie 11 07-04-2005 02:21 PM
How do I go into "root" for everything, not just Konsole? GameGuru Linux - Newbie 12 07-02-2005 05:37 PM
Konsole Root Login Fail after Executable Moved eightysixme Linux - Security 4 01-03-2005 11:27 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
Konsole linuxchick Linux - General 1 03-02-2002 01:22 PM


All times are GMT -5. The time now is 03:27 AM.

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