LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2009, 08:43 AM   #1
matar73
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Smile Adding a startup script to be run at bootup - no root rights


Hi,

Is there a way to start a custom script (my own script) when linux starts.
I know I may use the /etc/init.d/ trick but the problem is that I have no root rights to modify the /etc/init.d/ directory.
any idea?

Thanks
 
Old 09-18-2009, 10:07 AM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
if you have the ability to schedule a cron job for your particular user you may want to review man 5 crontab for a possible solution.

Code:
       These  special  time  specification  "nicknames"  are  supported, which
       replace the 5 initial time and date fields, and are prefixed by the ’@’
       character:
       @reboot    :    Run once, at startup.

 
Old 09-18-2009, 11:14 AM   #3
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
Also, can you clarify if you want to run it before you load desktop environment (KDE/gnome) or after? If you want to run it after KDE/gnome are loaded then you can use put it in their settings.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Run Python script as root at startup StuL Linux - General 2 03-05-2008 06:33 PM
How do I run a startup script as a user other than root? Questor21 Linux - Software 4 04-08-2006 12:51 PM
How to run startup script/daemon as a user other than root? Akhran Debian 2 02-04-2006 02:20 AM
making a script run with root rights box_l Programming 12 02-10-2005 10:44 PM
Script with root rights on startup - swap space initialization TroelsSmit Linux - Newbie 4 07-01-2004 12:58 AM


All times are GMT -5. The time now is 03:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration