Actually, I meant of the directory, not the file.

This doesn't seem to be right.

#!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); use warnings; #use strict; use CGI qw/:standard/; print header, start_html("test"); #print test"; my $filename = "/home/name/public_html/test/"; ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = stat($filename); print "permissions for $filename are..<p>"; print <<"END"; dev $dev <br> ino $ino <br> mode $mode <br> nlink $nlink <br> uid $uid <br> gid $gid <br> rdev $rdev <br> size $size <br> atime $atime <br> mtime $mtime <br> ctime $ctime <br> blk size $blksize <br> blocks $blocks END
As it returns
permissions for /home/name/public_html/test/ are.. dev 2053 ino 6916114 mode 16877 nlink 7 uid 33197 gid 33200 rdev 0 size 4096 atime 1140992338 mtime 1140911929 ctime 1140911929 blk size 4096 blocks 8
It can't be all numbers, right? the group id should be a name of sorts.

In reply to Re^2: How to get group ownership of a file by Anonymous Monk
in thread How to get group ownership of a file by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.