Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
If you want permission to everything then you should log in as root. I assuming you want to be able to use any command to do any job?
If you what to be able to run some commands as root when needed then you can do it several ways. edit /etc/sudoers file with the visudo command and looking at the examples give yourself the ability to do everything. For that to work place the command sudo before the command you wish to run and then it is run as root. You can set it up to use your password or just run the command without. I would at least add the support to enter your user password just to run the command.
This is not the best way to run a system. One miss type letter or command option can wipe a system faster than you can press the return key. Granted this is not an issue since there are few linux variant virus in the wild but if you were to be browsing the web with java scripting and get hit by something then it has root priviledges to do as it like. Just my thoughts.
Ditto the "you don't wan't to do that" sentiment. When you need to do something, typing "su" seems like a small price to pay for some protection against careless mistakes.
If you really really want to do what you say, then do "man chmod" to see how.
I have to agree with everyone else here...you should only give your self root privelages when you absolutley need to. As Brian said, there are many ways you can run as root, depending on your Linux distro. In my case, I use Ubuntu 7.04 (Feisty Fawn), and i use sudo to run commands as root, but in some other systems, you may use su to gain root privelages. You'd have to try both to see. Brian's also right about mistyping commands or letters. A couple of my friends made that same mistake, and flushed about 3-5 years worth of work on a system down the toilet. Also, as Brian said, if you are unfortunate enough to get one of the FEW linux viruses out there, you could be looking at some serious trouble if you make everything root access. I also totally agree with what pixel said. I wouldn't recommend it, but hey it's your system. You have to make the call. We're just giving you some things to think about before you do it. All the best.
If you want to give yourself permissions on a set of files or a set of folders in files you would either change the permissions or ownership or both accordingly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.