I have a while read loop that reads values inside of a file and then performs an expr operation on each.
Everything works fine, the way it's supposed to but, once the loop is finished, I can not access the variable that I used inside of the loop (but that variable was created outside of the... (7 Replies)
I am trying to write a script that does a useradd -G <group> <user> but you cannot modify the user if he/she is logged on. How could I check to see if the user is on or if the user has been added to the group successfully? I plan on having the script sleep for a couple mins if the user is on then... (3 Replies)
Hi all ,
I am new to HP-UX flavour of unix.
i am issuing simple "vi" comand on the command prompt it is showing me some garbage character in command prompt itself ..unreadable format.
I tried opening an existing file using the vi editor --and same thing
... (3 Replies)
Hi All ,
Please help me in understanding why i am getting error for the below script in LINUX, but the same script will work perfectly in AIX unix.
Script Name:try.ksh
#!/bin/ksh
echo "$0 \n"
MYPWD=$(pwd $(dirname $0))
echo " $MYPWD \n"
O/P in LINUX OS:
./try.ksh
./try.ksh:... (2 Replies)
Hi, has anyone worked with ldmp2v utility to convert a physical machine to a virtual. I am been trying to convert an ultra 45 (test machine) to an ldom on a T6320 blade server (with ldom manager 1.3) but have been unsuccessful.
The firmware of the blade has been upgrade to the latest available.... (0 Replies)
Compiling xpp (The X Printing Panel) on SL6 (RHEL6 essentially):
xpp.cxx: In constructor ‘printFiles::printFiles(int, char**, int&)’:
xpp.cxx:200: error: invalid conversion from ‘const char*’ to ‘char*’
The same error with all c++ constructors - gcc 4.4.4.
If anyone can throw any light on... (8 Replies)
Hi All,
OS :- HPUX..
I have a following code, which I wrote to meet date and time condition. The below code refuse to work for some reason, I still don't have any idea, why ?
the below code, should exit out, if the day happens to be sat and time greater the 04:00 pm. I am bit surprised, that... (2 Replies)
Hi All,
We have a process which is running for last 2 years well and good in production. But suddenly yesterday there was issue we faced in the process.
The actual process is what it does like below.
1. Receive the files in NAS directory(N/w attached storage).
2. Trigger the... (11 Replies)
Write a script using a Linux shell programming language to perform clock management for a small daycare.
The program should manage all time in and out routines. At the end of the each day should give the Total hours worked that day.
Example:
Time-In 6:30am
Lunch-Out 11 :25am... (1 Reply)
Discussion started by: sarapham409
1 Replies
LEARN ABOUT DEBIAN
audit_log_user_semanage_message
AUDIT_LOG_USER_SEMANAGE_MESSAGE(3) Linux Audit API AUDIT_LOG_USER_SEMANAGE_MESSAGE(3)NAME
audit_log_user_semanage_message - log a semanage message
SYNOPSIS
#include <libaudit.h>
int audit_log_user_semanage_message(int audit_fd, int type, const char *pgname, const char *op, const char *name, unsigned int id, const
char *new_seuser, const char *new_role, const char *new_range, const char *old_seuser, const char *old_role, const char *old_range, const
char *host, const char *addr, const char *tty, int result)
DESCRIPTION
This function will log a message to the audit system using a predefined message format. It should be used for all SE linux user and role
manipulation operations. The function parameters are as follows:
audit_fd - The fd returned by audit_open
type - type of message: AUDIT_USER_ROLE_CHANGE for changing any SE Linux user or role attributes.
pgname - program's name
op - operation. "adding user", "changing finger info", "deleting group"
name - user's account or group name. If not available use NULL.
id - uid or gid that the operation is being performed on. This is used only when user is NULL.
new_seuser - the new seuser that the login user is getting
new_role - the new_role that the login user is getting
new_range - the new mls range that the login user is getting
old_seuser - the old seuser that the login usr had
old_role - the old role that the login user had
old_range - the old mls range that the login usr had
host - The hostname if known
addr - The network address of the user
tty - The tty of the user
result - 1 is "success" and 0 is "failed"
RETURN VALUE
It returns the sequence number which is > 0 on success or <= 0 on error.
ERRORS
This function returns -1 on failure. Examine errno for more info.
SEE ALSO audit_log_user_message(3), audit_log_acct_message(3), audit_log_user_avc_message(3), audit_log_user_comm_message(3).
AUTHOR
Steve Grubb
Red Hat Oct 2006 AUDIT_LOG_USER_SEMANAGE_MESSAGE(3)