Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 30518  / 1 Year ago, sun, april 2, 2023, 3:10:41

Recently, a friend played a prank on my pc and now I have a file sitting on my desktop called 'hardcore_porn_xxx'. The problem is it does not go away by a simple delete.
I'm new to linux so any help will be appreciated. Thanks



By the way, could this be related to file permissions or something?



hmm@hmmm~$ ls -l
total 0
-rw-r--r-- 1 root root 0 2012-06-04 21:01 hardcore_porn_xxx

More From » cron

 Answers
7

It does not matter what permissions are on that file. You need to have write permissions on the directory that contains the file.



(You can even remove files not owned by you if you have write permission for the directory. A confirmation question will appear and by answering with yes, the file will go away.)



So while impersonating the root user will remove the file, you could do that by your own if you could write to the file's parent directory.



Could you list the permissions + owner for that?



On the reappearing problem:



Please execute sudo crontab -l to see if there are any cron jobs for root, and include the output in your question.



Update 2



Your response was:




found this: * * * * * touch /home/chimp/Desktop/hardcore_porn_xxx




Your output states it is a cron job.



Now please execute sudo crontab -e, pick your editor (e.g. mcedit) and delete the whole line containing touch.... Exit the editor, remove the file with any method and wait. It should not reappear anymore.


[#37878] Tuesday, April 4, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
overine

Total Points: 20
Total Questions: 109
Total Answers: 98

Location: Aruba
Member since Fri, Jun 24, 2022
2 Years ago
overine questions
Tue, Jul 12, 22, 00:27, 2 Years ago
Wed, Jan 11, 23, 02:15, 1 Year ago
Tue, Aug 10, 21, 01:39, 3 Years ago
;