LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Give the root Permission to other user for manage File/Directory (https://www.linuxquestions.org/questions/linux-newbie-8/give-the-root-permission-to-other-user-for-manage-file-directory-523510/)

shipon_97 01-28-2007 11:35 AM

Give the root Permission to other user for manage File/Directory
 
Friends ,

I have three user : oracle , dba , oper

and also let I have a file (or a script file) named "test"

Using root user I can do everything (Delete,Copy,Execute etc.)But now I want a situation so that All other user can get the same Authorization Like root user . Using which command I will give the same Authorization to other user Like the "root" user ?

I am using RedHat Enterprise 4 Edition .

acid_kewpie 01-28-2007 11:43 AM

well you can either add users to the wheel user group, or make a better move for security yb uising /etc/sudoers to allow non-root users to perform certain root level commands.

b0uncer 01-28-2007 11:46 AM

The point is, nobody should not be given root privileges. Especially not to every user. And none other user can be made exactly as root is. But you can give root permissions for some task (command), for example, for a user. A very common and should-be-known method for this is using sudo: with sudo you can configure which users can use root privileges and for which commands -- with their own passwords or without a password (don't do that). You'll need to add those users into the group sudoers first, usually, and then configure /etc/sudoers to give the appropriate permissoins on commands. Or do the trick for a given group and then add those users to that group.

A shorter method is to use su to become root, but it needs the root password -- and that password should not be known to anybody else than root. Simply
Code:

su
fill in root password and tadaa, you're logged in as root. But like I said, don't give root password to other people, because after that they can do whatever they will -- even wreck havoc the system and start doing bad things for others. Better use sudo and grant limited root privileges to the commands they need to use; for file permissions it's usually wiser to let a certain created group own the files/have access to them and then add the preferred users to that group. Only grant root permissions if it's absolutely necessary, if even then, and only as little as possible. Too much privileges = too much damage.


All times are GMT -5. The time now is 11:09 AM.