Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ?

share|improve this question
up vote 1 down vote accepted

You can use pkgproto:

/usr/bin/pkgproto <filename>

share|improve this answer
thanks it works – mibzer Jun 26 '12 at 8:39
That's not what that's for. – bahamat Jun 26 '12 at 17:15

stat is available for solaris in the gnucore package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.