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.
im logged in as a normal user, i want to install a program (requiring root) i know the root password, but how can i install the program under root without logging out from my normal account and then into root?
i once saw something about a command that would alow me to do root operations from a normal user terminal something like"**** root <passwordhere>"
i tried this:
"[magnus@BlahBlah ~]$ login
Error sending status request (Operation not permitted)
There's also something called sudo. It allows you to execute commands with root privileges with your own password. So you can do 'sudo vi /etc/fstab' and edit fstab as root. I find it better to work with.
Originally posted by phsythax sounds like an hacking tool.. how can it work if it doesnt even have to use the root password?
Sudo is quite good and secure actually. The idea is that you give some users certain privileges, e.g. to mount cdrom drives instead of doing it as root. Obviously you need to make sure you give the user "reasonable privileges" and not be able to run everything as root.
Originally posted by Haiyadragon Ubuntu doesn't even have a root user by default. It allows the first user (others can be configured ofcourse) to do everything through sudo. I now do the same on Slackware. It works quite nice.
It also allows me to give other users the abilty to reboot or shutdown.
The problem with Ubuntus way of using sudo is that if someone gets hold of your password, then can wreck havoc on your system because it gives the normal user all root privileges.
Originally posted by reddazz The problem with Ubuntus way of using sudo is that if someone gets hold of your password, then can wreck havoc on your system because it gives the normal user all root privileges.
Good grief, I thought I was the only one bothered by the way Ubuntu handles root. I mean I like Ubuntu, and it has worked well on a couple of friends machines but I really don't see how running everything through sudo actually improves security at all. Besides, using sudo in that manner strikes me as a gross abuse of sudo.
Originally posted by Hangdog42 Good grief, I thought I was the only one bothered by the way Ubuntu handles root. I mean I like Ubuntu, and it has worked well on a couple of friends machines but I really don't see how running everything through sudo actually improves security at all. Besides, using sudo in that manner strikes me as a gross abuse of sudo.
Yeah, its a good distro, but their use of sudo is why I don't recommend it to many people. Anyway most hardcore Linux users I know tend to move on to Debian or enable the root account properly.