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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using slackware 10 and I have found that almost all the problems im having are because im a user and I don't have permission to access anything. I have found that when logged in as root I can do anything I want and life is much easier. So basically why is using root for everyday use so terrible and if it really is so terrible how do i give my user account more permissions. thanks.
Originally posted by zwyrbla I am using slackware 10 and I have found that almost all the problems im having are because im a user and I don't have permission to access anything. I have found that when logged in as root I can do anything I want and life is much easier. So basically why is using root for everyday use so terrible and if it really is so terrible how do i give my user account more permissions. thanks.
when you are typing rm -rf /home/something/somehting... and acidently hit the enter key after you type rm-rf / you will know why you should not run as root....
second you are more prone to have your system owned if you run as root by certain exploits etc.... blah blah...
its unsafe.. but then again its your system do as your please.
Staying as root is a bad idea because (a) it's a security hazard and (b) it's easy to hose your system as root. Basically, if you stay as root, every time you launch a web browser or an FTP client or an IRC session, it also runs with root priviliges, and if there's a bug in that application that allows it to execute malicious code from the Internet .... well, you're screwed. If you were running as a normal user, then the malicious code couldn't do anywhere near as much damage (though it would still give you a bad day). As for point (b), suppose one day you type
Code:
rm -rf / home/user/olddir
when you meant rm -rf /home/user/olddir (note the extra space). Congratulations, you just turned your machine into a toaster. You win a chance to reinstall the OS from scratch (or from tape backup). If you were running as a user, you'd just get a permission denied error.
Remember, permissions are your friends, not your enemies. You can use sudo to easily execute commands with root priviliedges when you need them. Or just su to root on occasion. Once you're box and all the software you want has been installed, you really shouldn't need root that much. I've gone for a week or more without becoming root on my primary workstation, and I become root usually only to install software or run a packet sniffer on my home LAN.
Location: Location??? Where I am is top secret, if I tell you, I have to kill you.
Distribution: College, Slack
Posts: 24
Rep:
There is another way to install software other than on the command line???
Oh snap. I always do in on the command line.
It is just bad juju to do everything as root, to many things can go wrong. One wrong stroke of the keyboard and your all jacked up, also when your running as root, if someone gets control of your account, you can consider yourself pwned. You are officially shit.
The last reason I never use root, is simply because of organization, if you want to keep your computer organized, or rather force you to keep your stuff organized you have to use root, I have a very large book collection on my computer about computers, well I install them as a regular user, and keep them organized as a regular user, so that I can find them. If I ran everything as root, they would all be in root's home directory.
Another reason it's bad to do everything as root, it makes admining your system such a pain, you have to go back and chmod everything if you want another user to see, or touch anything. It can get pretty ugly. I ran everything as root for 1 month to see something, my system looked so jacked up, I just reinstalled the darn OS.
Originally posted by mikshaw for mounting devices, edit /etc/fstab (as root).
add "user" to the options for each device you want users to mount.
example:
Code:
/dev/fd0 /mnt/floppy auto noauto,user,sync 0 0
How is this different from making my everyday user a member of the "disk" and "floppy" groups? I ask because of my thread http://www.linuxquestions.org/questi...hreadid=220972 about Groups, and because making myself a part of those groups did not let me access any files on my hard drives.
zwyrbla, the fstab file just defines what systems can be mounted where and who can do so. You still have to actually mount the filesystem via the mount cmd
A shortcut is just to run
mount -a
which mounts everything it can..... You can see what's currently mounted by looking at /etc/mtab (but do not try to edit this virtual file).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.