LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to execute commands? How to view or check my root privileges? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-execute-commands-how-to-view-or-check-my-root-privileges-517302/)

kensim00 01-07-2007 08:32 PM

How to execute commands? How to view or check my root privileges?
 
Hi all,

Noob and Newbie here.

I have just installed the RHEL update 3. Now that i am trying to go into certain prvileged folders but unsuccessful because i do not have the root privileges. I couldn't really remember what kind of username and password i have keyed in(supposed to say that i remember that i have only inputted 1 username and 1 root password). I have gone to the 'Users and Groups' to check the active users, and there's only 1 user. Isn't that the privileged user?

Another further question, how do i execute command prompts? It's just like running the DOS prompts in Windows, but i would like to open such things in the RedHat?

Many thanks!

Simon Bridge 01-07-2007 08:37 PM

Quote:

how do i execute command prompts?
The linux equivalent of the DOS "command prompt" is called the "shell" or "terminal". Look for it in the menues.

To log in as superuser, type "root" for the username followed by the root password.
When you are looged in as a regular user (the normal way you log in) you can still use superuser stuff via the "su" (switch user) command or the "sudo" (switch user do) command entered in the terminal.

Try "man su" for details.

jonnycando 01-07-2007 08:55 PM

Quote:

Originally Posted by Simon Bridge
The linux equivalent of the DOS "command prompt" is called the "shell" or "terminal". Look for it in the menues.

To log in as superuser, type "root" for the username followed by the root password.
When you are looged in as a regular user (the normal way you log in) you can still use superuser stuff via the "su" (switch user) command or the "sudo" (switch user do) command entered in the terminal.

Try "man su" for details.

Of course one hopes you can remember the password you set for 'root' and if you do, that will be the same password you supply after you type SU at the terminal shell prompt. :)

kensim00 01-07-2007 09:09 PM

Quote:

Originally Posted by jonnycando
Of course one hopes you can remember the password you set for 'root' and if you do, that will be the same password you supply after you type SU at the terminal shell prompt. :)

Hi Thanks guys. I have tried it out and it works.

Anyway, it's too slow for me to ask you experts bit by bit everyday and it would be too noob for me to spam in so many threads.
Is there any good quick start intro sites for me on the web?

Many thanks again.

Wim Sturkenboom 01-07-2007 11:19 PM

http://www.tldp.org/LDP/intro-linux/html/index.html might be a good starting point.


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