LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-06-2009, 11:02 AM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
Running a process at boot time under a regular user account


Hi,

is it possible to run a process at boot time under a regular user account? i.e. not root?

if yes, please let me know which file to edit.

best regards
 
Old 07-06-2009, 12:44 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,524
Blog Entries: 27

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Hello geek.ksa

All the boot scripts are run as root but you can use the su command to switch user.

As for which is the most appropriate place to add that, it depends on which distro you are using and at what point in the boot process you want it to run.

More information please!

Best

Charles
 
Old 07-06-2009, 01:41 PM   #3
cmdln
Member
 
Registered: Apr 2009
Location: Lawrence, KS
Distribution: Debian, Centos
Posts: 102
Blog Entries: 1

Rep: Reputation: 24
Since you did not specify a distro I would guess the most generic way to do what you want is by adding something like the following to your /etc/init.d/rc.local or whatever it happens to be the generic place to toss startup stuff for your distro.

Code:
su -c "<your command here>" <your unprivleged user>
 
Old 07-06-2009, 02:31 PM   #4
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Original Poster
Rep: Reputation: 17
Thanks guys, su -c never crossed my mind, because i never used it.

Thanks cmdln for the tip.

Thanks all.
 
  


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
LXer: How to configure your SCSI or USB scanner to work with SANE/XSANE from your regular user account LXer Syndicated Linux News 0 04-06-2007 05:01 PM
No access to NTFS mounts for regular user account lowpro2k3 Slackware 5 10-23-2005 05:21 PM
Can root access be gained from regular user account without password? jdruin Linux - Security 5 11-22-2004 10:20 AM
Allowing regular user to restart network process?? carlos123 Linux - Networking 2 12-03-2003 03:44 AM
can't login to regular user account luchobucho Linux - General 2 10-27-2003 05:11 AM


All times are GMT -5. The time now is 07:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration