PDA

View Full Version : Accessing root



TeamMicron
April 29th, 2007, 07:38 PM
My terminal will not allow my to access root. I typed su root and then entered the correct passworkd.
error: setgid: operation not permitted. Does anyone know what I am doing incorrectly? thanks.
TeamMicron

bashologist
April 29th, 2007, 07:40 PM
If you absolutely have to be root then type the following.

sudo su
Root can be a dangerous thing so be careful! It's almost always better to use sudo instead.

Tomosaur
April 30th, 2007, 12:51 PM
If you're only trying to gain root priveleges to edit a file, for example, then you should be usind 'sudo', like this:


sudo nano /etc/X11/xorg.conf


Logging in as root is not reccommended, but as always, the choice is yours. It makes sense to me, anyway, to only give myself root privs for the shortest time possible.