Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking to configure on Solaris 10 to achieve the below:

jon is owner of /opt/app

ken is owner of /data

On Linux I have added the below line

%jtu ALL= NOPASSWD: /bin/*, /usr/bin/* 

so that jon is able to access /data/tmp and delete files.

This doesn't work on solaris10 since there is no sudo by default. How do I configure Solaris 10 so jon can delete files in /data/tmp?


share|improve this question

3 Answers 3

up vote 1 down vote accepted

Many standards packages for sun are available at

Navigate to solaris10 x86 or sparc depending on your architecture, and search for sudo in the list presented.

you may find it will need one or two other packages from there as well. These packages are installed using the pkg_add tool in solaris. Once sudo is installed (in /usr/local) you can configure as you would a normal sudo, config file is in /usr/local/etc/sudoers if I remember correctly.

however, if you're willing to entertain a method on both platforms that doesn't involve elevated (root) privilege, what you're wanting to do can more simply be achieved by setting /data to a particular group that both accounts are a member of, and setting group write flag using chmod g+w /data. Group semantics should honor that flag for new files and directories created underneath. To chgrp exsting files you would do :

chgrp -R common_group /data
chmod -R g+w /data
share|improve this answer

Role Based Access Control (RBAC) is the native Solaris way.

Alternatively, install the sudo package from the additional apps CD or get from or

easier solution: chmod 775 /data/tmp; chgrp jtu /data/tmp That way jon can remove files in /data/tmp since he is member of jtu group

Or you can use setfacl (earlier versions of Solaris 10) or set your ACL's with chmod in newer versions of Solaris 10.

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.