01-08-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
2. Filesystems, Disks and Memory
Dear Buddies,
Plz Help me out ,,,,,, the Unix Servers i m working on ,,,Somes times run out of space in root ,,,due the generation of a file named STA ....which causes the system to crash ,,,,,
plz hlp me !!!!!!!!!!!!!!!!!!!!!!
how to find out the file ....generation causes ......
... (6 Replies)
Discussion started by: scorpiyanz
6 Replies
3. Shell Programming and Scripting
Hi,
i need to run a command as root.Whoever executes the command ,i will check for a particular role if that is satisfied i have to make it to run as root.
Please help me to carry out this.
Thanks
Padmini (1 Reply)
Discussion started by: padmisri
1 Replies
4. UNIX for Dummies Questions & Answers
hi
i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help
Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies
5. Shell Programming and Scripting
Hi friends,
I will make a bash script for excecuted a route (My OS is Ubuntu 10.04)
this is my script (with name mine.sh)
#!/bin/bash
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.1
if I run this bash as root, i can run it..
root@venom-desktop:/home/venom#sh... (2 Replies)
Discussion started by: venom
2 Replies
6. Shell Programming and Scripting
Hi All,
I want chage the date value YYMM to YYYYMM in my script.
I am trying, but not get it.
Eg: 1109 changed to 201109.
$(if ] then
echo "1"
else
echo "update_month<=$ARCHIVE_DT"
fi)
Through above i got "update_month<=1109" in else, but i must get it "update_month<=201109"
... (4 Replies)
Discussion started by: pdathu
4 Replies
7. Shell Programming and Scripting
So I have a script that runs as a non-root user, lets say the username is 'xymon' .
This script needs to log on to a remote system as a non-root user also and call up a bash script that runs another bash script as root.
in short: user xymon on system A needs to run a file as root user and have... (2 Replies)
Discussion started by: damang111
2 Replies
8. Cybersecurity
Hello all,
I was wondering if there was a LINUX command equivalent of 'chage -d' on for the following UNIX flavors:
HP-UX
Solaris
AIX
I want to be able to change the aging for an account on each system without inadvertently expiring an account that is like with the "/bin/passwd -x" or... (2 Replies)
Discussion started by: LinuxRacr
2 Replies
9. Red Hat
I cannot mkdir as root
please see below
# mkdir /home/vm1/Desktop/nfs
mkdir: cannot create directory `/home/vm1/Desktop/nfs': Permission deniedso i checked the selinux context below and got
# ls -Z /home/vm1
drwxrwxrwx. root root system_u:object_r:autofs_t:s0 Desktop
drwxr-xr-x. vm1 ... (10 Replies)
Discussion started by: nokia3310
10 Replies
10. Linux
When i am issuing chage command, it reporting the output properly.
But when i redirect the output, i am not getting the output in the mentioned path.
chage -l root >> /tmp/chage.txt.
I need to use this into the script to capture the data. I think its seems to be bug with RHEL 6.3. Same... (3 Replies)
Discussion started by: Srini.rk1983
3 Replies
LEARN ABOUT DEBIAN
xpacmdadd
xpacmdadd(3) SAORD Documentation xpacmdadd(3)
NAME
XPACmdAdd - add a command to an XPA command public access point
SYNOPSIS
#include <xpa.h>
XPACmd XPACmdAdd(XPA xpa, char *name, char *help,
int (*send_callback)(),
void *send_data, char *send_mode,
int (*rec_callback)(),
void *rec_data, char *rec_mode);
DESCRIPTION
Add a command to an XPA command access point. The XPA argument specifies the XPA struct returned by a call to XPANewCmd(). The name argu-
ment is the name of the command. The other arguments function identically to the arguments in the XPANew() command, i.e., the send_callback
and rec_callback routines have identical calling sequences to their XPANew() counterparts, with the exceptions noted below.
When help is requested for a command access point using:
xpaget -h class:name
all of the command help strings are listed. To get help for a given command, use:
xpaget -h class:name cmd
Also, the acl keyword in the send_mode and receive_mode strings is global to the access point, not local to the command. Thus, the value
for the acl mode should be the same in all send_mode (or receive_mode) strings for each command in a command access point. (The acl for
send_mode need not be the same as the acl for receive_mode, though).
SEE ALSO
See xpa(7) for a list of XPA help pages
version 2.1.14 June 7, 2012 xpacmdadd(3)