Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am tinkering with Red Hat 8.0 and using the Gnome GUI. I know this sounds real stupid but.... I can't delete a folder from the /usr directory (for example) via Gnome. The 'Move To Trash' option is greyed out of the right click menu.
Drag and dropping to Trash gives me the 'Error While Moving......???? Cannot be moved to Trash because you do not have permissions to change it or it's parent folder'.
OK.... I am the only user of this machine and when installing RPM's/updates etc.... it prompts me for my root password......
OK...the bottom line is..... why haven't I got permission to delete folders from my own PC despite the fact I am the Sys Admin?
Certain folders just require root access to modify. It's just a security feature to prevent you or another user from trashing the /usr directory. Remember, some important things live in there /usr/src/linux
If you really want your user account to modify the /usr directory, change the permissions so you can write/delete to it.
if you log into the machine as a user other than root then you cant do any sys-admin functions unless you give the root password. the /usr partition is owned by the root and you dont have the permission to modify any files in it.
if you want to modify these files open the file explorer in superuser mode and then you can play with them.
yes if you go into the terminal and then su you are root. then you can do the operations in the terminal. but you will be still an ordinary user for the GUI context. so any time you launch a program owned by root then you have to give the root password.
if you want to use the program without entering the password every time logout and then login as "root" at the login page
You have 2 users, root and yourself. You never login directly as root, you only switch certain programs temporarily to root as and when needed.
The "su" command starts a new subshell as root. typing exit in a root shell you got with su will return you to normal user. This does NOT affect the rest of your session. You are still logged in as user, everything you do will be as user.
The key in the corner is a bit confusing I agree. Basically certain apps like config programs need root access to work, so redhat has it setup so that when you run it, you'll be prompted for the root password and those apps can do what they need (ie they run as root). The key sticks around for a few minutes - while the key is present you don't need to reauthenticate.
Eventually it will disappear and next time, you'll need to enter the root password again. This is so that if you wonder off nobody else can sit down and root your box (the timeout is 5 mins iirc). Or you can give up the authentication by right clicking on the key.