LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to grant root previlege to other users? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-grant-root-previlege-to-other-users-425149/)

wtb1974 03-15-2006 04:23 PM

How to grant root previlege to other users?
 
Good day,

Kindly advise how do I grant root previlege to users, for instant to create databases using MySQL or to run programs such as minicom?

Thank you

wtb1974

pljvaldez 03-15-2006 04:32 PM

Generally you should install and use sudo which will allow you to give limited root abilities to users. It will allow you to assign priveledges based on individual users and restrict those priveledges to certain commands, files, or directories.

sundialsvcs 03-15-2006 08:09 PM

I very strongly agree with this.

On Linux, as with Windows, administrative privileges are not to be given lightly. You should reserve the supreme system powers only to the root userid.

On many Unix/Linux systems, there is a special user-group called wheel where the "big wheels" of the system live. And the /usr/local directory is generally read/writable to members of this group: if not, you can (as root) make it so with: chgrp -R wheel /usr/local.

Users who belong to this group can issue the command newgrp wheel and give themselves read/write privileges to this directory .. which is designated for the installation of local (i.e. computer-specific) software. Thus they are "administrators" of the local system, able to install and remove software on it, without being root. Once finished, they issue the newgrp command again to return to their home group.

It must be quickly understood that many if not all of these users may know the root password and be fully entitled to use it. But they voluntarily do not. They voluntarily limit their powers only to the minimum extent necessary to accomplish the task at hand.

Why? Because of "rogue programs." Viruses. Programs that could execute without their knowledge, using their login privileges. Normally, they set their powers to be no greater than the next guy's. Any rogue that tried to execute and do nasty things .. would fail.

On my systems, "I myself" do not belong to the wheel group. I have a separate system-maintenance account designated for that purpose. And it isn't even possible to log-on to that account except when maintenance is actually being performed.

User-ids are cheap. Use them to your best advantage. For example, if you "wear two hats" at your company (accountant, CEO, salesman) .. define a separate account for yourself, with different passwords, for every role that you play.

wtb1974 03-18-2006 09:11 PM

Thanks guys for your help.

wtb1974 03-19-2006 12:20 AM

Further Question Concerning Root Privilege
 
Hi sundialsvcs,

I have installed a serial comm software called cutecom.
As root user I am able to access the serial port: /dev/ttySO using thissoftware.

As an ordinary user I am unable to do so.

How do I enable access to the serial device as ordinary user?

Any asistance would be much appreciated.

Thanks
wtb1974


All times are GMT -5. The time now is 03:49 AM.