LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to delete file logged on as root? (https://www.linuxquestions.org/questions/mandriva-30/how-to-delete-file-logged-on-as-root-694821/)

markw10 01-04-2009 02:08 AM

How to delete file logged on as root?
 
I use KPowerSave with KDE 3.5 on an MSI Wind using Mandriva 2009 PowerPack. I just set it up to Suspend to RAM when the lid is closed. The only problem is it gives an error when it comes out of sleep mode. I was told on another forum that I can simply ignore this and select okay but to get rid of this error message I need to get rid of the file, /usr/lib/pm-utils/sleep.d/06mysql.
The problem is I have to be logged in as root so I have been unable to do it from Konquerer. Also, I tried doing it from Konsole and log in as Super User but when I get into the directory with the file I use the rm command but it won't find the file. Any idea how I can delete this file. Also, would it cause any problems if I delete this file?

Simon Bridge 01-04-2009 02:18 AM

cd /usr/lib/pm-utils/sleep.d/
ls -l

if it's not there you cannot delete it.

ernie 01-05-2009 09:37 AM

Open a terminal window (konsole in KDE) and become the root user (su + root password). At the command prompr enter the following command:

konqueror -profile 'File Management'

This should start the konqueror file manager as the root user. You should now be able to navigate to the file you want to delete and remove it.

HTH,


All times are GMT -5. The time now is 01:31 AM.