LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2002, 07:34 PM   #1
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Rep: Reputation: 15
Startup Programs as User


Is there a way to make a certain user do a startup program? As in the owner of the program isn't root, but "myuser" or whatever.

-Atroxic
 
Old 02-21-2002, 08:21 PM   #2
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
Can you define startup program? like a program that runs on startup or just a average everyday program/application..
chown can change ownership..
 
Old 02-21-2002, 08:30 PM   #3
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Original Poster
Rep: Reputation: 15
Startup Program - A program that starts when Linux Boots.

The problem I'm having is that I need the owner of this program to be "myuser" rather than root.
 
Old 02-21-2002, 08:38 PM   #4
dj_relentless
Member
 
Registered: Jan 2002
Location: NZ, AKL
Distribution: Redhat 7.1
Posts: 168

Rep: Reputation: 30
During boot up (correct me if I'm wrong) but all the startup programs are run as root.
What you could do is create a script that starts when the user logs on that runs the program..
 
Old 02-21-2002, 09:29 PM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
KDE has an Autostart directory, ~/.kde/Autostart. You can put a script in there to start a program when kde starts.
 
Old 02-27-2002, 09:15 PM   #6
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Original Poster
Rep: Reputation: 15
I need the program to run at startup, not when the user logs in, that's the only problem.....

-Atroxic
 
Old 02-27-2002, 09:24 PM   #7
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Then look in /etc/rc.d for the local file for your distro and add the command to it. In slack it's /etc/rc.d/rc.local.
 
Old 02-27-2002, 09:24 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Then look in /etc/rc.d for the local file for your distro and add the command to it. In slack it's /etc/rc.d/rc.local.
 
Old 02-27-2002, 09:31 PM   #9
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
If I understand you correctly

Unfortunately, at that point in the process the system can't differentiate between users specifically because no one has logged in. Mounting filesystems, initializing interfaces and services, loading modules, etc. are events handled by init (and the proccesses spawned by init) as defined, for the most part, by global config files and scripts.
 
Old 02-27-2002, 09:43 PM   #10
Atroxic
Member
 
Registered: Jan 2002
Posts: 41

Original Poster
Rep: Reputation: 15
Would there be any way to do any of that after the init scripts are processed? Without having to do it manually?

-Atroxic
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I startup programs? anticuchos SUSE / openSUSE 2 09-07-2005 11:29 PM
Startup programs beatlelane Fedora 5 08-22-2005 02:05 AM
Startup Programs prh Mandriva 1 03-27-2005 02:24 AM
need help with startup programs SlackwareMan Linux - Newbie 4 07-29-2004 04:45 PM
startup programs via a user figmentium Linux - Newbie 6 07-03-2003 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration