LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   root (https://www.linuxquestions.org/questions/debian-26/root-427316/)

Deelk 03-22-2006 10:54 AM

root
 
Hi,

When I try to login as root from the login menu i get an error that says that the system adminstrator cannot login from this menu...How can I login as root?

thanx in advance

camorri 03-22-2006 10:59 AM

It is not recommended to log in as root, unless absolutley necessary. Most tasks can be done by using su ( switch user ). Open a console, type su and enter. It will ask for your password. Enter the root password and press enter. You will be logged in and can do most root commands.

Not sure why you can not log on graphically as root. Did you create a root password when you installed?

Deelk 03-22-2006 11:02 AM

Quote:

Originally Posted by camorri
It is not recommended to log in as root, unless absolutley necessary. Most tasks can be done by using su ( switch user ). Open a console, type su and enter. It will ask for your password. Enter the root password and press enter. You will be logged in and can do most root commands.

Not sure why you can not log on graphically as root. Did you create a root password when you installed?

Yes I've created a password.But the problem is,I only can acces the mounted NTFS partitions if I'm root.And I want to edit a conf file,but I can because I'm again not root.is there a way to do it via the terminal?

weibullguy 03-22-2006 11:27 AM

Quote:

Originally Posted by Deelk
When I try to login as root from the login menu...

If I understand correctly, you're trying to log in using your GUI environment as root. Because you can hose things up real bad :cry: as root, typically you're prohibited from being root except in a terminal.

To edit a file, open a terminal and do what camorri told you to do:

Type su <ENTER>
When prompted for a password, enter the root password.

You'll see a prompt similar to [root@localdomain]$. You are now root. Before you edit any config files, make a copy. Go here if you don't know how to use the cp command. Depending on what you're editting, backup your system. Go here to read about one command you could use to back things up.

After you make a copy of the config file (and optionally backup your system), you can edit the original using vi, vim, gedit, or whatever text editor is available in the terminal environment. Once you are done, type exit and you will no longer be root.

camorri 03-22-2006 07:07 PM

Quote:

I only can acces the mounted NTFS partitions if I'm root.And I want to edit a conf file
If you are trying to edit a file on a NTFS file system, you will not be able to wirte the file, weather you are root or not. Linux only supports reading NTFS, not writing to NTFS. There is some exparimental stuff around to write, but it does not come with most distros. I would not recommend usin it for anything other than experimenting. You could mess up your NTFS file system.

If you need to edit a file on your NTFS file system, why not use windbloze to do it?


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