Computing.Net > Forums > Linux > Running a program as root

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

Running a program as root

Reply to Message Icon

Original Message
Name: Six
Date: November 14, 2002 at 21:54:54 Pacific
Subject: Running a program as root
OS: RedHat 8
CPU/Ram: 1.3 256
Comment:

Hi, can I make an icon open a program as root in a normal user mode? So I don;t have to open a terminal and do the su, then program name rigamoral.

Possible? Thanks.


Report Offensive Message For Removal


Response Number 1
Name: armin
Date: November 14, 2002 at 22:07:05 Pacific
Reply: (edit)


if u use kde u can use
kdesu "programname -arg1 -arg2 .."

if u dont u have to use ssh -X localhost.
you might have to make a little shell script to get that to work.


Report Offensive Follow Up For Removal

Response Number 2
Name: Jake Thompson
Date: November 16, 2002 at 07:40:48 Pacific
Reply: (edit)

If you want to use the program without typing the root password, do it this way (from a shell):

chmod u+s program

If you wanted to make `ls' always run as root (Even though that is stupid) you could:

chmod u+s /bin/ls


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home








Do you have a Desktop Computer anymore?

No
Yes, but only at work
Yes, but its rarely used
Yes, and its a workhorse


View Results

Poll Finishes Today.
Discuss in The Lounge
Poll History




Data Recovery Software