LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 02: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, 02: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, 02:42 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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

Original Poster
Rep: Reputation: 0
thanks will try
 
Old 11-01-2003, 04: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, 04: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, 04:23 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
yeah - to be exact the "-" tells su to start a new shell for the user you are suing to.
 
Old 11-01-2003, 05: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



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

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

All times are GMT -5. The time now is 12:55 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
Open Source Consulting | Domain Registration