Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
More info please. Why do you want to do this? Do you want something like MS-Windows has that frees you from the effort of typing a password everytime? If so, you should pursue automatic login of a user account (note: I don't know if that's possible).
Are you thinking of loging in to a window manager (i.e. X windows), or just a psuedo terminal session?
You should not be logging in as root each time. Most distros force you to make a seperate 'everyday use' account. You'll only complain when you screw something up while as root.
Use the su command when you need root access.
I know it is a pain when you are doing a lot of software installing, but you should never log in directly as root. Always su or run an X-Windows program that requires the root password in order to execute.
Logging in as root, or staying in root all the time, is extremely dangerous.
Oh, and don't make your root password the same as your user account password.
I installed RH8 about 3 weeks ago,and every now and then, the stuff I tried to install,asked me to be root.So i figured I might as well stay root all the time.
Why is it dangerous to do so?
Ok,on to my problem:
II just created a user account and I've found that the programs I've installed as root don't work for the user account
What's more,the internet connection i spent 2 weeks trying to get to work (PPP over ATM ADSL modem) doesn't work from the user account.
Is it the case that anything I did as root won't work for a user? Am I going to have to go back and re-do everything I did as root and re-do it for the new user account?
SINGLE is actually a cue for the system to start up in runlevel 1, which bypasses all services and stops after mounting the file systems.
This is particularly useful in cases where one of your daemons is crashing the computer on startup, or you need to do some SERIOUS vodoo on the file system.
On public machines I will usually put a password on the grub loader. I work at a science museum. Kids are constantly finding new ways of breaking things. That and no power of destruction compares to a bored teenager.
I looked at my last post an realized I never actually answered you question.
You are actually running as root in single mode. INIT (the master of all processes) startups up BASH instead of the normal login process. You are operating as if you had logged in as root, and had turned off (or more accurately never started) all of the processes in /etc/init.d.
I generally log into single user mode long enough to reset the root password and then reboot.
My problem is that after setting up my Linux install as root all the time,when I got sick of typing out passwords and user name at each boot, I created a user account.Now, with this user account,I can't run or access most of the stuff I've set up whilst I was root.
Will this 'single' thing fix that or do I really have to start all over again?
SINGLE is actually a cue for the system to start up in runlevel 1, which bypasses all services and stops after mounting the file systems
Why would I want to do that?I mean, stopping all services is not a good thing,right? I would have thought I would want services running,would I not?
Sorry,but I've lost the thread of what you are saying or suggesting.
I have no idea what "EvilTwinSkippy" is talking about. You only need to boot into single user mode for trouble shooting systme problems and changing the the root password if you forget it.
To answer you other question - It is dangerous to login as root because the root account has permissions to delete system files. For instance on windows 98 any user could login (without any password except bios) and delete C:\autoexec.bat - this would stop the system booting. In linux deleteing system files can only be done by root as only root is given permission to modify the files.
As for you problem with not being able to run programs you have installed - If they are system configuration programs you probably do need to run them as root (again for security). If it is a text editor or web browser etc then it is probably a permssion problem.
There are three types of permissions - read, write, execute. There are also three types of user - owner, group and other. Other is everyone and so most programs are set so that only root can read write and execute but other (everyone) can execute. eg
chown root FILE
chgrp root FILE
chmod 775 FILE
Look at "man chown", "man chgrp" and "man chmod" for more information.