Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

stat is available for solaris in the gnucore package.

share|improve this answer
add comment

Your Answer

 
discard

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.