LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-28-2007, 12:35 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
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, 12:43 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 12:46 PM   #3
b0uncer
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
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.
 
  


Reply


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 10:41 AM
Mounted a filesystem as root.How does one give write-permission to a user? Mr.DeVillie Linux - Software 4 02-08-2006 08:20 AM
how to give 'guest' rwx permission on a file/directory RH9Linux Linux - Software 3 06-27-2005 09:59 PM
How can give ROOT permission to a NORMAL USER bipinkdas Linux - Software 2 06-24-2005 12:03 AM
Howto give permission to hole directory js72 Debian 3 12-08-2004 05:50 PM


All times are GMT -5. The time now is 09:35 PM.

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