runing a script as superuser


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers runing a script as superuser
# 1  
Old 07-06-2004
Error runing a script as superuser

My first post:
in /etc/rc2.d i have a startup script: Script1.
if you run #>scirpt1 stop/start from any user other than root you will get u must be supper user to run this script. eventhough the rights are 777.
Question: how can i get my user_a be able to run this script to stop and start it without giving him the root password.

thanks in advance.
# 2  
Old 07-06-2004
Get the freeware program called sudo. We have a lot of threads on sudo. Use our search function to find them for more info.
# 3  
Old 07-07-2004
Thanks a lot for your answer. But the problem is that our customer (the owner of the machine) does not allow us to install any freeware of extra tools for that. Can this be done via unix commands or script?
Meanwhile i will have a look about sudo for my records.
Thanks again
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Getting error while runing the script

While running the script it is failing while searching the pattern if the pattern is found then it is running fine if the pattern is not found it terminate with error my requirement is if the pattern is not found then it exit successfully. cat $INTE/CTY_${DATE}_cn_ar.*|cut -c 1-100|grep... (3 Replies)
Discussion started by: jagu
3 Replies

2. Shell Programming and Scripting

runing script with log level 4

i have bash script with some batches, and when i putt log level 4 in script i get error while executing or if i rung script.sh with parameter log level 4. i appriciate some advice :) (3 Replies)
Discussion started by: unknown1
3 Replies

3. Shell Programming and Scripting

Runing Shell program in Windows XP

This is my first time to come across about Unix and Shell scsripting. So, I want to practice shell scripting and Unix in my WindowsXp S P2. Bu t i dont know what software sh ould i use for this. And this is for personal Practice only. Please Help me,. (1 Reply)
Discussion started by: mccm
1 Replies

4. Shell Programming and Scripting

runing shell with java and sqlloader issue

Hello there, I'm writing a shellscript and it uses sqlloader, it works good coz load the data into the DB. But I'm runing the shell from a java program with Runtime(). It does execute the shell but the sqlloader doesn't seem to be working!! Does anybody out there knows why?? (0 Replies)
Discussion started by: ying_dav
0 Replies

5. Shell Programming and Scripting

Need a help Please- runing the perderabos script datecalc

i have a script in bourne called cdrsnokia.sh and inside of it calls a script called resta_dias where it calls the datecalc script (perderabos date calculator). The purpose is to rest (-) one day arithmetical operation the content of each line and the result is passed to another file lista2;after... (1 Reply)
Discussion started by: alexcol
1 Replies

6. UNIX for Dummies Questions & Answers

Help on runing a script

:confused: Hello group, Let me explain a little, I´m running under HP UX 11.i SO. I need to put on the server via FTP a file with the following attributes: -r--r--r-- this is read for all. Also I tried using inet.conf to change the umask for ftp and works perfect on giving the permissions for... (1 Reply)
Discussion started by: mig28mx
1 Replies

7. UNIX for Dummies Questions & Answers

do i need this runing ?

1. Do I need syslog running in my services? 2. Is there such a critter for counterstrike installer for linux or do i need to use winex (2 Replies)
Discussion started by: amicrawler2000
2 Replies

8. UNIX for Advanced & Expert Users

Runing sh files from c file

How can I run shell script file and not command from c file? (3 Replies)
Discussion started by: kamil
3 Replies

9. UNIX for Dummies Questions & Answers

process runing automatically

Hi, I need some help, because I'm trying to create a process runing all the time (not invoqued by a crontab), like a daemon, to detect the creation of a new file in a specific directory and axecute a process wich do something with this new file. Can you help me? For your information my Unix is... (2 Replies)
Discussion started by: lsquillacioti
2 Replies
Login or Register to Ask a Question