How to run script automatically on reboot as root user?
Hi friends,,,
I am running one server on Ubuntu 12.04 LTS 32-bit, some times my pc restarts automatically, with no reason, I have a script to start server which requires root password. in this directory
How can I do this ?
and some scripts I am having that I need to run daily once around 10.00 Am, for these scripts I need to change ownership from root to user in
while running script
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)
hi ,
i need to run a script that delete files when i logout as a user other than root user .
I have tried out using .bash_logout but that doesnt seem to work , so any alternative for this to be done.
Thanks in advance,
Harsha (6 Replies)
Dear all
Ihave written a script in Hpux9.0, the ecript is working fine if I run it from root command prompt
But when I am running it thru /etc/profile or /user/.profile and login as a normal user, the owner of the process running the script is the normal user & hence cant run a root privileaged... (7 Replies)
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)
Hi,
I'm new here. Just started playing around with kernel compilation.
I need a little bit of advice.
I'm trying to do a bash script to automatically compile a kernel package and reboot to that new kernel by default, with fallback to the old kernel.
So far, I'm getting stuck at the part... (0 Replies)
Ok, so, in order to install some dependencies of a program I made, a script has to be run as root. The thing is that I have to copy some things into the home folder of currently logged in user, but the variable $HOME returns '/root' and the $USER returns 'root' :(
Is there any way to see who is... (7 Replies)
Hi,
I have a shell script file which is set to access permission 000. When I login as root (sudo su) and try to run this script, I am getting the Permission denied error. I have read somewhere that root admin user can execute any kind of permission script. Then why this behavior? However, I can... (1 Reply)
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)
Hello I have a script which is working fine so far to generate HTML file. Now i am wondering how do i include a syntax where it can change itself to root user and execute a specific commands as root user.
Please help, Thanks in advance.
-Siddhesh (2 Replies)
Hello Team .
I am working a health check script ( bash) to run on linux server ( RedHat) and requirements are
1. The o/p of script need to be send to two diff files . I am testing with tee command . But I am not successful yet , any recommendations if that is the right approach ?
2. The same... (2 Replies)
Discussion started by: Varja
2 Replies
LEARN ABOUT HPUX
cdsd
cdsd(1m)cdsd(1m)NAME
cdsd - Starts the CDS server
SYNOPSIS
cdsd [-a] [-D] [-l principal] [-w route]
ARGUMENTS
Creates a new namespace if there is not an existing namespace. This flag is meaningful only when the cell is first configured (that is, the
initial creation of the namespace). For debugging use only. Causes the cdsd process not to fork. Locksmith mode. Allows the principal
specified to have full access to all information stored with this server. Routes serviceability messages.
DESCRIPTION
The cdsd command starts the CDS server.
Privilege Required
You must log in as superuser (root).
NOTES
This command is ordinarily executed by a DCE configuration or startup script. You should use this command interactively only when a cdsd
fails to start automatically after a reboot, or if you want to restart a cdsd after disabling it to perform a backup or to do diagnostic
work on the host system.
EXAMPLE
To restart a cdsd server, follow these steps: Log in to the server system as superuser (root). Verify that the dced and cdsadv processes
are running. Enter the following command to restart the CDS server: # cdsd
When the server process starts, it starts all clearinghouses on the system.
RELATED INFORMATION
Books: OSF DCE Administration Guide
cdsd(1m)