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 02-24-2012, 10:20 PM   #16
art3m
LQ Newbie
 
Registered: Feb 2012
Location: Seattle, WA
Distribution: Kali 2.0, Debian Wheezy, Backtrack 5r3
Posts: 10

Rep: Reputation: Disabled

You can login as root to install or do anything that requires root privileges by typing this in the terminal:

[user@localhost ] su root
Password: rootpasshere

you can login as whatever user you like w/ su command "su user" and then enter pass for that user hope that helps!

~ art3m
 
Old 02-25-2012, 01:44 AM   #17
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by art3m View Post
You can login as root to install or do anything that requires root privileges by typing this in the terminal:

[user@localhost ] su root
Password: rootpasshere

you can login as whatever user you like w/ su command "su user" and then enter pass for that user hope that helps!

~ art3m
While that technically works, it's not optimal. Without a - you do not invoke a full login shell, so paths like /usr/sbin would not be provided, making many commands not run by default. There's also no point providing "root" as that is default. Furthermore, sudo is still generally a preferred tool to use over su, especially on ubuntu.
 
Old 02-27-2012, 10:27 PM   #18
megaloman
LQ Newbie
 
Registered: Jan 2008
Posts: 7

Original Poster
Rep: Reputation: 0
Thumbs up [Solved]

Thanks everyone.
Since I'm using Fedora, I'll use the commands as suicidaleggroll's posted then.
 
  


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] Some application installation questions: log in as root or log in as 'user' & do 'su' Robert.Thompson Slackware 9 02-25-2011 09:19 AM
Fedora 12 cannot log in as root, cannot su nor log into bash Neo-New Fedora 7 06-24-2010 01:48 PM
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 05:31 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 05:18 PM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 01:07 PM


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