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 07-07-2015, 04:51 AM   #1
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Rep: Reputation: Disabled
inquiry about rc.local


Hi Linux Guru's

I have a script that has a permission of non root user, Iwan the script to be the last running after all every other script is done after the vm is started up. Question is will rc.local execute my script even if it non-root owned?
 
Old 07-07-2015, 05:21 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,294

Rep: Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358Reputation: 2358
So long as it has executable privs, it will run as root user as rc.local is executed by root.
If you want it to run as someone else, research the last example in section #2 http://www.cyberciti.biz/open-source...ifferent-user/
 
1 members found this post helpful.
Old 07-07-2015, 05:23 AM   #3
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
So long as it has executable privs, it will run as root user as rc.local is executed by root.
If you want it to run as someone else, research the last example in section #2 http://www.cyberciti.biz/open-source...ifferent-user/
thanks chrism01!
 
  


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
os inquiry chandra kant Linux - Newbie 3 11-18-2010 08:19 PM
Inquiry:iptables ? hadimotamedi Linux - Newbie 2 10-31-2009 08:25 AM
Mepis 6.04 inquiry depam MEPIS 6 03-14-2007 05:51 AM
Spamassassin inquiry depam Linux - Software 5 10-28-2006 06:54 AM
vsftp inquiry depam Linux - Software 3 10-12-2005 03:48 PM


All times are GMT -5. The time now is 01:32 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