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.
Here is my question. How can I give someone Root privileges without having to go into a shell and use the su command. For example, in Windows I can just go into Users in the Control Panel and give who I want Administrator privileges. Is there a way to do this in Linux? More specifically, is there a way to do it in SuSE 9.2 Pro? I want to give my profile total access to the computer, like Root does, but am unable to because I can't find how to give myself root status. I am therefor stuck with logging on as root (which isn't a big problem) but I don't really want to have to. Also, when if I create a new user is there a way to give them root privileges? Any help would be greatly appreciated! Thanks in advance!
You REALLY don't want to do that, particularly not for
an account that uses a graphical interface... stick with
su, if you have a few root tasks you need to do often
(and they can't be automated) use sudo ...
Is there any chance we could just beg you not to want to do this in the first place? normal user accounts are there to stop dumb users doing dumb things. I'd say 75% of the time i'm infront of my Linux machines, I am a very dumb user. I'm and very glad i need to su to do heavy stuff. if there are a few key things you need to do, then try using sudo instead, to allow your otherwise normal user account to access a few extra programs.
Please stop reading now.
If you really want to create an additional account with root-like access, you should find you already have a group on your system called "Wheel". this group is the group that root also belongs to. add your user to this group and lo...
You're right, it probably isn't the best move. But can someone tell me for my knowledge then? So I know how to do it just in case for some reason I ever need to. Thank you again!
Originally posted by dumbsheep Great thanks! So what is sudo? I've never heard of it before. What's its purpose? Thanks.
-dumbsheep
man sudo
;}
It will let users specified in /etc/sudoers execute commands
specified in the same file with root's privileges (with or without
entering the users own password) ...
E.g. one could then do
sudo useradd
as if one was root ... the big advantage of this approach is
that you're forced to make a conscious decision, and even
if you accidentally do something silly like
rm -rf *
while you're in / nothing much will happen (except for the
deletion of your home, of course, if you're not quick with a
Ctrl-C) ... that shows that rm is not a command you'd want
in sudoers ;)
it has a text file which lists what users can use which admin level programs. you've probably already got it installed. check the sudo manpage for details.
it's a software you can download. and in it's config file you can give certain users/groups access to certain commands that only root would usually have access to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.