LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-07-2016, 12:06 AM   #1
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Rep: Reputation: Disabled
Deleting rc.local


Hi,

My Oracle Unbreakable Linux was restarted unexpectedly several times so i found that due to some virus attacks (SFEWFESFS) it gets restarted so i just delete this file but after some time it comes again so i google it and found link

http://stackoverflow.com/questions/2...tarting-automa

On this forum a guy (Isospin) suggested to delete rc.local

Can i delete rc.local is it safe for os?
 
Old 01-07-2016, 12:12 AM   #2
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 309

Rep: Reputation: 104Reputation: 104
It would be better to rename it instead, but delete it, just rename it, if it boots properly after that, open up rc.local and see what was added, just remove it.
rename the file back to its original name and you should be okay.
 
Old 01-07-2016, 01:19 AM   #3
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
i just rename rc.local and reboot system but rc.local not created
 
Old 01-07-2016, 03:53 AM   #4
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
how can i delete s99local pointing to rc.local
Attached Thumbnails
Click image for larger version

Name:	s99local.jpg
Views:	24
Size:	44.9 KB
ID:	20460  
 
Old 01-07-2016, 05:20 AM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Just remove the S99local link.

There is no need to remove the rc.local file, or even renaming it.

The system init starts scripts as specified by S99local link- Being "S" causes the link to be run at boot time, the "99" is the last number in the sequence, so it is run last. There can even be other S99 links there - they will be run in alphabetical order; so if one doesn't exist - it doesn't get used.

The reason to not delete the rc.local file is that updates to the system may recreate it... and the file may or may not have the header specifying how the chkconfig command is used to create the link (it can also delete the link with "chkconfig local off")

Last edited by jpollard; 01-07-2016 at 05:27 AM.
 
Old 01-07-2016, 11:15 PM   #6
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
thanks jpollard for you answer.

so do i just need to remove S99local link from all where it is pointing towards rc.local ?

and how can i remove the link ?
 
Old 01-08-2016, 12:52 AM   #7
osama.mansoor
Member
 
Registered: Oct 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Actually my mission is to

1) Stop process names as "sfewfesfs" its running
2) Delete or rename rc.local to remove to run sfewfesfs at boot time
3) Remove Link S99local pointing towards rc.local or Delete S99local because it runs rc.local

All screen shots are attached
Attached Thumbnails
Click image for larger version

Name:	1-sfewfefs running process.jpg
Views:	23
Size:	20.6 KB
ID:	20465   Click image for larger version

Name:	2-rc-local inside view.jpeg
Views:	17
Size:	51.4 KB
ID:	20466   Click image for larger version

Name:	3-s99local points towards rc-local.jpg
Views:	15
Size:	44.9 KB
ID:	20467  
 
Old 01-08-2016, 05:09 AM   #8
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,842

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
chkconfig local off

rm S99local

Read some documentation on administering Oracle Unbreakable Linux systems. You paid for it.
 
  


Reply

Tags
linux


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
Postfix local email server fails to deliver local mail 2UCowpoke Linux - Server 2 09-22-2015 03:34 AM
deleting duplicate lines without deleting first instance of the duplicated line jkeertir Linux - Newbie 2 02-07-2011 06:55 AM
LXer: Creating And Deleting Local Zones On Solaris 10 Unix LXer Syndicated Linux News 0 10-24-2008 12:10 PM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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