how to make a user an admin so that i dont have to su every time
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.
d00d that is something you don't wanna do....i recommend you look into the sudo command and how to edit the /etc/sudoers, and add the most commonly used root commands to this file for you regular user can issue them....
First, to answer your question, just work as root all the time or give the user uid:0.
Second, you never ever really want this !!!
You really only need to su to root when you change something on your global system config, installing software or similar. How often does this happen?
It is quite dangerous, to work all the time as root, try searching in this forum for something like ' i accidently typed rm -f /
- how can i rescue my system?'
Instead, take a look at the group feature.
Also, if there are some commands that requires root permissions and you use them often, take a look at sudo or give those binaries the sticky bit (man chmod).
I repeat, you DON'T want users to have superuser permissions, think about, that they can do everything they want with your system, unintended or not.
Seems to be the thing lately. Bottom line is take our advice and don't do it. You are best off working with linux to the point where you know exactly how to do it (at which point you won't want to anymore ) because you'll need that knowledge if you are going to be root 24/7
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.