07-26-2009
Thanks for the reply.
After issue following command, no error message shown.
/usr/bin/pfexec /usr/bin/env /usr/sbin/usermod -P Operator sysopr
However, still encountered following error. How can I confirm the above command execute successfully?
hostname:sysopr> lprm -P ans_p5215 7918
ans_p5215-7918: permission denied
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it possible to grant write privileges to a user on a directory with out having to add the user to a group or make the user the owner of the directory?
My background is in Windows and in Windows you can grant specific privileges to a user without having to put the user in a group or making the... (3 Replies)
Discussion started by: here2learn
3 Replies
2. AIX
I'm trying to give a non-root user the right to start IBM HTTP Server, the web server is listening on port 80, but for AIX, ports under 1024 are privilege ports which can be used only by root.
/usr/IBMIHS/bin# ./apachectl start
(13)Permission denied: make_sock: could not bind to address :::80... (1 Reply)
Discussion started by: ibmer414
1 Replies
3. Solaris
Can anyone please tell how to give root privilege to a normal user in solaris 10? (5 Replies)
Discussion started by: nicktrix
5 Replies
4. Solaris
How to assign permission for a user to cancel unix printer queue other than root?
lprm -P and cancel?
How to chmod for /bin/cancel to -rws-x-x --> s means?
Please help.
Thank you. (1 Reply)
Discussion started by: KhawHL
1 Replies
5. AIX
How to assign superuser privilege to an ordinary user temporarily (1 Reply)
Discussion started by: udtyuvaraj
1 Replies
6. UNIX for Advanced & Expert Users
Hello,
Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one.
Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one?
My AIX system is 5.3
Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies
7. AIX
I am planning to implement sudo for users.
Under , it looks I have to put the users who need to have sudo access:
What are the recommended for users? I don't think I need to give the ALL privilege (i.e ) to AIX users.
I'd like to know the commonly used privilege specification for sudo... (9 Replies)
Discussion started by: Daniel Gate
9 Replies
8. UNIX for Dummies Questions & Answers
Hi Everyone,
I am trying to cancel a print. I am logged on as the user of the print and when I use the command 'cancel print_job' I get the message 'print_job: not authorized'
I have cancelled other prints in the queue, but this particular job in the queue cannot delete. I even logged on as... (5 Replies)
Discussion started by: Scarlet
5 Replies
9. Shell Programming and Scripting
Hi ,
I want to create 3 different user with below privilege in Solaris and Linux.
1) Read Only
2)Read and Write Only
3) Admin user
Can you guys help me on this . (3 Replies)
Discussion started by: Naveen Pathak
3 Replies
10. Post Here to Contact Site Administrators and Moderators
In the thread https://www.unix.com/shell-programming-and-scripting/254651-i-tried-add-permenat-alais-bashrc.html#post302932057 user Joshua Smith made his 1st and only post.
Later in that thread, user jtsmith90 continued the conversation and said he had forgotten that he already had an account.
... (3 Replies)
Discussion started by: Don Cragun
3 Replies
LEARN ABOUT XFREE86
pfcsh
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.10 3 Mar 2003 pfexec(1)