Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 01-28-2007, 11:35 AM   #1
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Question 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 .
Old 01-28-2007, 11:43 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
Old 01-28-2007, 11:46 AM   #3
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission denied existing directory root/user BDHamp Linux - General 5 04-10-2006 09:41 AM
Mounted a filesystem as root.How does one give write-permission to a user? Mr.DeVillie Linux - Software 4 02-08-2006 07:20 AM
how to give 'guest' rwx permission on a file/directory RH9Linux Linux - Software 3 06-27-2005 08:59 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-23-2005 11:03 PM
Howto give permission to hole directory js72 Debian 3 12-08-2004 04:50 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration