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

state and file perms confusion

by neilwatson (Priest)
on Aug 04, 2012 at 01:06 UTC ( [id://985371]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
             $atime,$mtime,$ctime,$blksize,$blocks)
    ...
    
    $mode = $mode & 07777;
    print "mode=".$mode."\n";
    
  2. or download this
    $ ls -l /etc/passwd
    -rw-r--r--. 1 root root 1289 Jul 22 16:27 /etc/passwd
    $ ./perms-module.pl /etc/passwd 644 root root
    mode=420
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://985371]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-19 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found