Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: state and file perms confusion

by Tanktalus (Canon)
on Aug 04, 2012 at 13:55 UTC ( #985434=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $mode = sprintf "%o", 420; # $mode = 644
    chmod $mode, $file;
    
  2. or download this
    chmod 01204, $file; # 01204 octal == 644 decimal
    
  3. or download this
    # 1. octal number
    chmod 0644, $file;
    ...
    # 6. decimal with bitmasks
    $mode = 438 & ~022; # 438 == 0666
    chmod $mode, $file;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-12-28 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (177 votes), past polls