Introducing pfexec, a Convenient Utility in the OpenSolaris OS


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris BigAdmin RSS Introducing pfexec, a Convenient Utility in the OpenSolaris OS
# 1  
Old 10-21-2008
Introducing pfexec, a Convenient Utility in the OpenSolaris OS

Passwordless pfexec is the OpenSolaris version of Linux's sudo. Learn how to assign the appropriate rights profile to users so that they can execute commands with root privileges by prepending pfexec to the commands without becoming root.

More...
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. What is on Your Mind?

Introducing Myself.

Hello! I didn't see an Introduce Yourself/Meet and Greet board, so I think this might be the right place. I'm a student and a new coder. I run Ubuntu 11.10 currently, and I program in Python, and I'm learning a few languages alongside. Random pages: Twitter - @NihilusV, other links can... (1 Reply)
Discussion started by: NihilusV
1 Replies

2. UNIX for Advanced & Expert Users

pfexec error

Greeting Forumers! I got this error messages today while trying to run 'pfexec'(see the first command in the example below): $ pfexec passwd -s root passwd: can't get real path $ profiles Primary Administrator Basic Solaris User All $ uname -a SunOS system1 5.9 Generic_122300-43 sun4u... (2 Replies)
Discussion started by: bluescreen
2 Replies

3. Programming

Introducing a new project for AI lovers

Hi guys, I'm the maintainer of Imperfect world of Robots, and I'm here to introduce this project to any AI lover. This is a free (as in freedom) software and release under the terms of GNU General Public License. Although it belongs to the programming game category, it's not only about... (0 Replies)
Discussion started by: aidin_36
0 Replies

4. What is on Your Mind?

Introducing myself... :D

Hey guys, I am Shelby! :-) I am 13 years old and i love Unix. When i was about 6 i was introduced to computers, because almost all of my family is comprised of artists, i used macs at a very early age. I generally sat on the computer until the time i was about 10 when i walked into a laptop store... (2 Replies)
Discussion started by: mesaynaysayer
2 Replies

5. Programming

Introducing Delay less then a second.

Hi, I have a doubt in introducing a delay in the programs. We know that we do have a sleep() function/api using which we can bring a delay in terms of seconds. A minimum delay can be atleast 1 second. Now I'm bothered about how to introduce a delay that is just less than a second. Like... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies
Login or Register to Ask a Question
pfexec(1)							   User Commands							 pfexec(1)

NAME
pfexec, pfsh, pfcsh, pfksh - execute a command in a profile SYNOPSIS
/usr/bin/pfexec command /usr/bin/pfexec -P privspec command [ arg ]... /usr/bin/pfsh [ options ] [ argument ]... /usr/bin/pfcsh [ options ] [ argument ]... /usr/bin/pfksh [ options ] [ argument ]... DESCRIPTION
The pfexec program is used to execute commands with the attributes specified by the user's profiles in the exec_attr(4) database. It is invoked by the profile shells, pfsh, pfcsh, and pfksh which are linked to the Bourne shell, C shell, and Korn shell, respectively. Profiles are searched in the order specified in the user's entry in the user_attr(4) database. If the same command appears in more than one profile, the profile shell uses the first matching entry. The second form, pfexec -P privspec, allows a user to obtain the additional privileges awarded to the user's profiles in prof_attr(4). The privileges specification on the commands line is parsed using priv_str_to_set(3C). The resulting privileges are intersected with the union of the privileges specified using the "privs" keyword in prof_attr(4) for all the user's profiles and added to the inheritable set before executing the command. USAGE
pfexec is used to execute commands with predefined process attributes, such as specific user or group IDs. Refer to the sh(1), csh(1), and ksh(1) man pages for complete usage descriptions of the profile shells. EXAMPLES
Example 1 Obtaining additional user privileges example% pfexec -P all chown user file This command runs chown user file with all privileges assigned to the current user, not necessarily all privileges. EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), ksh(1), profiles(1), sh(1), exec_attr(4), prof_attr(4), user_attr(4), attributes(5) SunOS 5.11 3 Mar 2003 pfexec(1)