I'm new to UNIX....
I'm running SCO UNIX and would like to disable routed daemon from being start at boot time.
How should I do this????? Please help. (2 Replies)
I have a couple of servers that can't see each other and need to copy files from one to the other. I try to invoke scp from a 3rd server that can see both servers - get error msgs that are cryptic.
from server C
I can do
scp user@serverA:~/file .
scp file user@serverB:~
but if I try to... (2 Replies)
Hi all,
I am trying to run a script in crontab but I receive the email below. Note the empty variable SHELL. Apparently cron doesn't invoke a shell. That explains the errors in the script it is trying to execute. Anyone know what maybe wrong?
Subject: Output from cron job... (3 Replies)
Hi all,
I am getting a License error when Iam trying to call a perl script which builds TestRT (Test Real Time) application. When Iam calling the same script from command prompt it is building successfully.
Iam using Solaris 9 Operating system.
I have checked all the environment variables... (0 Replies)
Hi masters,
I am still learning trades in kernel. I am trying to learn the basic of daemon programming. Can any one tell me how can I start a daemon automatically during boot up. I will be greatfull if anyone post some example code to the above task.
Also what are... (3 Replies)
Say there is a shell script named test.sh. I intentionally omit the #! line in test.sh for testing perpose. I did the following :
$ echo $0
-ksh ---> current shell
$ echo $$
12919 ---> PID of the current shell... (4 Replies)
Hi,
I am running some etl commands in the windows from shell script(from unix sun solaris 5.9) by using expect package .While running manually the script is working fine.While running from cron it is exiting the after successfully firing the ETL command(The control does not stop after firing... (1 Reply)
Hi,
I have the following script -
fixpart="/files/myScript # Transfer Script"
echo "Specify the transfer frequency in minutes - "
echo "every 1, 2, 3, or 5 minutes (default every 1 minute) "
echo $nn "Frequency ? :" $cc
read ans
case $ans in
2) echo... (9 Replies)
Hi All,
I have two scripts - ScriptA and ScriptB
ScriptA has logic to invoke ScriptB :
- with some parameter
- or without any parameter
ScriptB can also be invoked by the user from the command line.
Is there anyway to ensure that when I execute ScriptB from the command line, it does... (3 Replies)
Discussion started by: chaitanya.gvc
3 Replies
LEARN ABOUT SUNOS
setauid
getauid(2)getauid(2)NAME
getauid, setauid - get or set user audit identity
SYNOPSIS
cc [ flag ... ] file ... -lbsm -lsocket -lnsl [ library ... ]
#include <sys/param.h>
#include <bsm/libbsm.h>
int getauid(au_id_t *auid);
int setauid(au_id_t *auid);
The getauid() function returns the audit user ID for the current process. This value is initially set at login time and inherited by all
child processes. This value does not change when the real/effective user IDs change, so it can be used to identify the logged-in user even
when running a setuid program. The audit user ID governs audit decisions for a process.
The setauid() function sets the audit user ID for the current process.
Upon successful completion, the getauid() function returns the audit user ID of the current process on success. Otherwise, it returns -1
and sets errno to indicate the error.
Upon successful completion the setauid() function returns 0. Otherwise, -1 is returned and errno is set to indicate the error.
The getauid() and setauid() functions will fail if:
EFAULT The auid argument points to an invalid address.
EPERM The {PRIV_SYS_AUDIT} privilege is not asserted in the effective set of the calling process.
The getauid() function will fail if:
EPERM The {PRIV_PROC_AUDIT} privilege is not asserted in the effective set of the calling process.
USAGE
Only a process with appropriate privileges can successfully execute these calls.
bsmconv(1M), audit(2), getaudit(2), privileges(5)
The functionality described on this manual page is available only if the Basic Security Module (BSM) has been enabled. See bsmconv(1M) for
more information.
These functions have been superseded by getaudit(2) and setaudit().
31 Mar 2005 getauid(2)