loging in as root

New to Debian (Or Linux in general)? Ask your questions here!

loging in as root

Postby socratease » 2009-12-08 02:50

I need to login as root so that I can change the ip address to a static address. I have tried to use the network config but it says that i don't have root privliges. How can make changes so that I can login as root. This is My webserver replacement
socratease
 
Posts: 8
Joined: 2009-12-07 16:23

Re: loging in as root

Postby Paulfocused » 2009-12-08 04:05

socratease wrote:I need to login as root so that I can change the ip address to a static address. I have tried to use the network config but it says that i don't have root privliges. How can make changes so that I can login as root. This is My webserver replacement


You could install and setup sudo. I personally don't use it, but many do. There's a lot of info on how to use it.
I am root!!
Image
User avatar
Paulfocused
 
Posts: 53
Joined: 2009-11-26 03:05
Location: Georgia, U.S.

Re: loging in as root

Postby aicardi » 2009-12-08 04:39

Try this in a terminal.
$gksu network-config
Jessie/Xfce
User avatar
aicardi
 
Posts: 388
Joined: 2009-11-18 01:30
Location: Chicago

Re: loging in as root

Postby hazel » 2009-12-08 18:25

Logging in as root is bad practice. You tend to stay logged in as root for some time and to do all kinds of things that shouldn't be done as root and can be dangerous.

Use gksu to become root, do what you have to do as root and can't do any other way, then exit and return to your own identity.

The sudo thing is useful for commands that you want to execute frequently as root (e.g. updating with synaptic). You give yourself permission in the /etc/sudoers file to execute that command with root permissions, then you can run it by giving your own password.
User avatar
hazel
 
Posts: 135
Joined: 2009-08-01 16:34

Re: loging in as root

Postby rweaver » 2009-12-08 21:48

You can type (as your user):

Code: Select all
su -


Input roots password and you'll be root when you're done type exit.
Pantek, Inc. - http://www.pantek.com/ - info@pantek.com
+1-877-LINUX-FIX - Expert Open Source Technical Support
rweaver
 
Posts: 67
Joined: 2008-12-04 21:44
Location: Independence, Ohio

Re: loging in as root

Postby cnoyes » 2009-12-25 16:56

hazel wrote:You give yourself permission in the /etc/sudoers file to execute that command with root permissions, then you can run it by giving your own password.


This doesn't tell socratease how to actually add himself to the sudoers file. I answered this question in another post, so I'm going to just link to it.

http://forums.debian.net/viewtopic.php?f=30&t=47507 just scroll down to the bottom, it's a short thread. I don't imagine this solves your original issue though, as previously stated, gksu is the solution.
=================
chris@suxbox.org
Debian Sid
=================
User avatar
cnoyes
 
Posts: 114
Joined: 2009-12-06 18:13
Location: North Carolina


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable