Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Recursive chmod chown chgrp in 30 lines

by Abigail-II (Bishop)
on Oct 07, 2002 at 11:59 UTC ( #203297=note: print w/ replies, xml ) Need Help??


in reply to (code) Recursive chmod chown chgrp in 30 lines

Note that in some Unix systems, users are allowed to chown() on their own files, and "give them away". And on most (if not all) Unix systems, users are allowed to "chgrp" files provided they

  1. Own the file.
  2. Are a member of the current group owner of the file.
  3. Are a member of the new group owner of the file.

Several years ago, I wrote the "chmod" command of the Perl Power Tools (PPT). It was interesting to see that "chmod" was implemented differently on all Unix systems I tested (and often, the manual differed from the implementation as well). Figuring out what chmod = file does depending on the permissions of the file (or directory) on the various operating systems was interesting.

Abigail


Comment on Re: Recursive chmod chown chgrp in 30 lines
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://203297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (17)
As of 2014-12-18 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (56 votes), past polls