I wonder if there is command which will give you access rights of any file you provide. There stat related command but it is not accessible in solaris.

stat -c %a /etc/passwd

Is there any equivalent command in solaris ?

2 Answers 2


stat is available for solaris in the gnucore package.


You can use pkgproto:

/usr/bin/pkgproto <filename>

  • That's not what that's for.
    – bahamat
    Commented Jun 26, 2012 at 17:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .