04-24-2008
Yes, with Solaris 8, root privilege is required to read the file.
9 More Discussions You Might Find Interesting
1. Programming
Hi all,
I've a structure let's say
typdef struct a { int a; int b; char* string} b;
I need to make the function smth like readdir(), returning everytime it's called pointer to the next structure. Let's say functions would read the next file in the directory and all the permitions put it in... (2 Replies)
Discussion started by: solvman
2 Replies
2. UNIX for Dummies Questions & Answers
What is a good and easy to set up program on Unix FreeBSD for playing streaming MP3s. Where can I get it and how do I install it? This is FreeBSD 4.3.
Thanx. (2 Replies)
Discussion started by: ByondF1
2 Replies
3. Programming
Hi All,
I am trying to read data from two files and then compare them and only print the records on the screen that have a same ID.i.e TAGNO =CUSTOMERNO
For Eg
My Input Files are (a) Transaction (b) Customer detail
The data in file a is like:
TagNo Date Time Station... (0 Replies)
Discussion started by: rooh
0 Replies
4. UNIX for Advanced & Expert Users
:D i have searched through several sites on google for a match up for sed that would go indepth into the workings of this interactive edditor.. I use it every day and it is the edditor of my choice so i know a few tricks but would very much like to get into the more complex uses of sed.. all the... (2 Replies)
Discussion started by: moxxx68
2 Replies
5. UNIX for Dummies Questions & Answers
Hello
I wander if im doing :
ls -l and its giving me lets say 3 results :
-rw-r--r-- 1 blah other 1789 May 19 2003 foo.c
-rw-r--r-- 1 blah other 1014 May 19 2003 foo.h
-rw-r--r-- 1 blah other 270 May 19 2003 foo1.c
now I would like to use the first... (1 Reply)
Discussion started by: umen
1 Replies
6. Shell Programming and Scripting
Hi Master,
I've log in here
then try parsing log become :
3GPP-IMSI,Calling-Station-Id
528111500111614,6738790448
528111500068173,6738769831
.....
it is possible to use awk?
cause i 've try
awk '
/\Accounting\ /{f=1}
f && /\3GPP-IMSI \:\ String Value\ /{imsi=$4}
f &&... (1 Reply)
Discussion started by: bowbowz
1 Replies
7. Ubuntu
Hello, I have Ubuntu 64 bit 9.04 install dual boot
I can't see stream videos through Opera
I couldnt see it in Firefox did this:
"sudo apt-get install ubuntu-restricted-extras flashplugin-nonfree"
Now I can see it in firefox but not in Opera
Should not care and just use just Firefox.
thanks (0 Replies)
Discussion started by: Pitroadrush
0 Replies
8. UNIX for Dummies Questions & Answers
Hello Everyone,
The situation is:
$ alias rm="sh abc.sh"
#abc.sh:
read input
echo "The input was: " $input
$ rm xyz.txt
should return
"The input was: xyz.txt"
Here, I want the alias "rm" to execute the file "abc.sh", where "abc.sh" should take "xyz.txt"... (1 Reply)
Discussion started by: qasim
1 Replies
9. Shell Programming and Scripting
Hi
I used this command:
mplayer http://host/axis-cgi/mjpg/video.cgi -user root -passwd root \
-cache 1024 -fps 25.0 -nosound -vc ffh264 \
-demuxer 3 -dumpstream -dumpfile output.avi It's ok but...
Video Playing is very fast! Why? Is it a synch problem?
What parameter I have to use for... (1 Reply)
Discussion started by: takeo.kikuta
1 Replies
LEARN ABOUT CENTOS
priv_policy_choice
priv_policy(9F) Kernel Functions for Drivers priv_policy(9F)
NAME
priv_policy, priv_policy_only, priv_policy_choice - check, report, and audit privileges
SYNOPSIS
#include <sys/cred.h>
int priv_policy(const cred_t *cr, int priv, int err, const char *msg);
int priv_policy_only(const cred_t *cr, int priv);
int priv_policy_choice(const cred_t *cr, int priv);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
cr
The credential to be checked.
priv
The integer value of the privilege to test.
err
The error code to return.
msg
String that is added to the privilege debugging message if one is generated. NULL if no additional information is needed. Because the
function name is included in the output, NULL is usually the best value to pass as a parameter.
DESCRIPTION
These functions aid in privilege checking and privilege debugging.
priv_policy(), priv_policy_only(), and priv_policy_choice() all check whether priv is asserted in the effective set of the credential. The
special value PRIV_ALL tests for all privileges.
priv_policy() updates the ASU accounting flag and records the privilege used on success in the audit trail if the required privilege was
not a basic privilege.
priv_policy_only() checks whether a privilege is asserted and has no side effects.
priv_policy_choice() behaves like priv_policy_only() but records the successfully used non-basic privileges in the audit trail.
RETURN VALUES
On success, priv_policy() return 0. On failure it returns its parameter err.
On success, priv_policy_choice() and priv_policy_only() return 1, on failure both return 0.
ERRORS
EINVAL
This might be caused by any of the following:
o The flags parameter is invalid.
o The specified privilege does not exist.
o The priv parameter contains invalid characters.
ENOMEM
There is no room to allocate another privilege.
ENAMETOOLONG
An attempt was made to allocate a privilege that was longer than {PRIVNAME_MAX} characters.
CONTEXT
This functions can be called from user or interrupt context.
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
acct(3HEAD), attributes(5), privileges(5)
Writing Device Drivers
SunOS 5.10 9 Dec 2002 priv_policy(9F)