LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-20-2004, 05:56 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
file permission


in our system , there are three system administrator have the root password , sometimes they will delete the file that was created by other administrator , is it possible to set the permission to the specific file , so that the specific file can only deleted by the file creator not by the all root owner ? thx.
 
Old 04-20-2004, 06:12 AM   #2
slick_willie
Member
 
Registered: May 2003
Posts: 46

Rep: Reputation: 15
chmod 744 filename
 
Old 04-20-2004, 06:14 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply , but 744 seems can be deleted by root user , am i right?
 
Old 04-20-2004, 06:14 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
The operating system doesn't keep track of which person actually uses an account. To the system, the user with uid=0 is root, and if you log in as root you will have uid=0.

A better solution is to limit root access to one specific person and instead have other user accounts with elevated privileges. Either add the users to the groups they should belong to, or if that's not enough you may want to change group ownership of files and directories to a new group, created by yourself (the real root user) if the ownership is too general.


Håkan
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About the file permission ust Linux - Distributions 1 05-06-2005 03:05 AM
File Permission gardenair Linux - Newbie 5 04-28-2005 10:35 PM
file permission Nechos Linux - Software 2 10-04-2003 03:31 PM
file permission !!! hitesh_linux Linux - General 5 03-25-2003 12:27 PM
File Permission glock19 Linux - General 4 01-02-2002 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:07 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
Open Source Consulting | Domain Registration