LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   administrator (https://www.linuxquestions.org/questions/linux-newbie-8/administrator-4175480798/)

patso 10-14-2013 10:28 PM

administrator
 
i'm the sole user for this pc how do i log in as root, i have try to log in as root followed bye the password provided on installation. Debian is the OS.
i want to extract software into a protected folder.

shivaa 10-14-2013 10:42 PM

You cannot directory login as root user, so instead of directly login as root, use sudo:
Code:

~$ sudo <command>
Or add your user to /etc/sudoers to get root privileges.

btmiller 10-14-2013 10:58 PM

Debian (as opposed to Ubuntu) will allow direct root logins (I don't think sudo is installed by default even). However, it is a bad idea to log into a GUI as root. Insteas, open a terminal window and type:

Code:

su -
followed by the root password.

Randicus Draco Albus 10-14-2013 10:59 PM

To perform administrative tasks, open a terminal and enter
Code:

su
followed by the root password. You will then have root permission to do what needs to be done. When finished, log out with
Code:

exit
Quote:

i want to extract software into a protected folder
I am not sure what you mean. Extract from or move/copy to.

Oops. btmiller beat me by a few seconds.

zeebra 10-15-2013 06:53 AM

Randicus. He probably wants to copy some content into a folder owned by root, but he cannot do it as user.

OP. Remember to make the folder rights 700 for that if you want others to be unable to read it. "chmod 700 folder"

Randicus Draco Albus 10-15-2013 07:43 AM

Probably, but I do not want to assume anything. Clarification would be helpful. Avoids giving erroneous advice.


All times are GMT -5. The time now is 02:27 PM.