The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Security
.
google unix.com



Security Discuss UNIX and Linux computer and network security, cybersecurity, cyberattacks, IT security, CISSP, OWASP and more.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Add existing user into an existing group a2156z SUN Solaris 4 03-05-2009 11:24 PM
folder existing and file existing crowman Shell Programming and Scripting 4 08-28-2008 06:07 PM
How to find the total size of a dirctory tree in Solaris 0ktalmagik Filesystems, Disks and Memory 1 05-06-2006 09:31 AM
Remove non empty dirctory adol3 SUN Solaris 5 12-14-2005 02:23 AM
FTP a Dirctory radimus UNIX for Dummies Questions & Answers 2 09-06-2001 12:17 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-17-2009
zlek131 zlek131 is offline
Registered User
  
 

Join Date: Dec 2001
Posts: 2
can another user 777 and existing 777 dirctory?

User usrA creates dirA directory and runs chmod 777 on the directory. Can usrB issue another 777 on dirA? It appears the answer is no even if the usrA and usrB are part of the same group. I know this is a rare scenario but I just ran across it and found out that usrB receives an error when attempting issue chmod 777 on an already 777 directory owned by usrA. This is also true for files. I wanted to verify if this is something specific to my env or common in all. Runing on AIX...
  #2 (permalink)  
Old 06-17-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,643
It has to do with who owns the file - file ownership. chown, chmod, chacl -- require ownership.
  #3 (permalink)  
Old 06-18-2009
zlek131 zlek131 is offline
Registered User
  
 

Join Date: Dec 2001
Posts: 2
Quote:
Originally Posted by jim mcnamara View Post
It has to do with who owns the file - file ownership. chown, chmod, chacl -- require ownership.
So...then dir owned by usrA with 777 on it cannot be chmod 777 by userB is normal behavior or not?
  #4 (permalink)  
Old 06-18-2009
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2005
Location: Switzerland - GE
Posts: 1,546
The ownership and the file/directory permissions are 2 things different
only owner or root priviledge can chown/chgrp/chmod on file or directory ...
So its normal b cannot chown/chmod dir owned by a
  #5 (permalink)  
Old 08-19-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,861
If you are using ACLs, and they are configured appropriately, it is possible.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0