Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-27-2004, 12:55 AM   #1
LQ Newbie
Registered: Jan 2004
Location: Pigh, Pa in the U.S.A.
Distribution: Redhat 9
Posts: 17

Rep: Reputation: 0
Start applications automatically on an unprivileged user?

I have an eggdrop and it usually runs on an unprivileged user, I want to make its binary start up when the linux box does. I know about /etc/rc.d/init.d but this starts those applications with root privileges, which I don't want.

Is there some sort of file/directory that can be created in /home/myusername which will contain [a list of] the files that need to be run automatically?

Someone told me to use crontabs but I think a crontab's a bit over the top for something so simple.

The system is Redhat9, any ideas of how I can achieve this?
Old 10-27-2004, 02:26 AM   #2
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
you can make a bootscript with the 'su' command. for example my postgresql server starts at boot time using user pgsql with this command in the bootscript:

su - pgsql -c "/usr/local/pgsql/bin/pg_ctl bla bla"

as the scripts are running with root access no password is asked for the 'su' command
this solves the problem I guess.

.-=~ iluvatar ~=-.
Old 10-27-2004, 04:03 AM   #3
Registered: Sep 2004
Location: Switzerland
Distribution: Fedora Core 2
Posts: 48

Rep: Reputation: 16
If what you are started is for a normal user, is there a reason not to use .bashrc_profile file? I think that starts any script (or whatever) at login... (I'm newbie and I use it a lot, that's why I rather ask than answer)
Old 10-27-2004, 04:29 AM   #4
Senior Member
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 47
paicolman - that would start the process only when the user logs in, and not when the machine boots up.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
change to unprivileged user without sudo? german Linux - Security 2 01-28-2005 01:32 PM
VNC server as unprivileged user CartersAdvocate Slackware 1 12-18-2004 10:51 PM
getting access to /var for unprivileged user usernamed Linux - Software 1 05-11-2004 06:38 PM
uncompress and compiling problem for unprivileged user. sixth_sense Linux - Software 3 05-09-2004 01:38 PM
Applications close automatically, hardware issue Balkman Linux - Hardware 6 04-20-2004 10:44 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:12 AM.

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