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 have recently installed RHEL-5 on my working comp at office. After the successful installation, I created few local users as well.
Now when I ma trying few applications from my local user, say oracle, I am getting permission related problems, and those are obvious. When I am doing "sudo" in such scenarios, it is asking for a sudo password.
As far as I remember, I didn't set any password during installation, apart from ROOT. Could anybody suggest me what would be the SUDO password, if it is something default set by the OS itself ? Otherwise, how can I set it properly, so that I can provide that whenever it ask me to put that ?
Still it is not clear that if I didn't set the sudo password, then which password to use.
I tried this /etc/sudoers file, but what parameter to edit to get the local users working. Infact what I get from that file is that we can make local users to access some root level commands through sudoers file.
Sudo is a method to raise permissions to root level, however any account with such access must be declared in the /etc/sudoers file.
The most common sudo declaration is
root ALL=(ALL) ALL
This means that the root account itself is able to sudo anything (relatively pointless in some respects but doesn't effect anything security wise). If you copy and paste the line and change it as follows
user1 ALL=(ALL) ALL
This grants user1 full sudo access to the system, so that the user can do "sudo yum install mysqld" for example and will be prompted to enter the sudo password, this is a fairly insecure method of setting up sudo and should only be done to very trusted users, generally only system administrators. Sudo can be set-up to work only with certain commands or groups of commands and be also be set-up to not prompt for passwords, however if something is worth sudoing I generally believe it's worth ensure proper checks are performed.
A quick example of why the previous is dangerous are commands such as "sudo passwd root" or "sudo su -" allows users to either reset the entire root password or actually raise themselves to the root user itself.
I have found this site for a fairly basic method of how to configure /etc/sudoers.
I like the tutorial on the link you provieded r3sitence. Just one thing I like to stress on. There are two kind of passwords setup one can use within /etc/sudo. Either use the root password or the user password that is calling sudo. I just skimmed the tut and did not really saw a section that made that clear.
If you did not set a password for using sudo there is none. To make it clear: You first need to setup sudo to have it recognise any kind of password (better put to even function).
So check on the tutorial r3sistance linked to to have some idea how sudo is about to work. Just have in mind to be root to use visudo like the tutorial says.
remarks to the tut:
Why interrupt the installation with >CTRL+Z>? As far as I've learned the <CTRL+Z> puts the running program into the background... Would'nt <CTRL+C> be the right option to interrupt the process?
Sorry to be OT but this just bugs me. Some poor soul (who's NOT in an office/work-type environment where they genuinely COULD get in trouble) is gonna see that and take it way too seriously. It's like the Linux equivalent of the old Win 95/98 "Illegal Operation" error. Same with the "We trust you have had the lecture from your local system administrator" thing or whatever it says.