Web Hosting Talk







View Full Version : deleting files which have a symlink


Omair Haroon
11-21-2001, 03:00 PM
Hello,

I have a file which have a symlink created in /usr/adm/sm.bin. The file name is .procmailrc and when ever I try to delete that file, I get error.


[admin@www admin]$ rm -f /home/sites/site48/users/bot/.procmailrc
rm: cannot unlink `/home/sites/site48/users/bot/.procmailrc': Permission denied


Any idea how am I gonna delete the file or unlink it and then delete it ?



-Omair

ffeingol
11-21-2001, 04:19 PM
Howdy Omair,

It's prob. just an ownership problem. You are logged in as admn, but admin prob. does not own the file. If you do a "ls -l" you can see what user owns the file.

You can always just rm the file as root.

Frank

Omair Haroon
11-21-2001, 10:06 PM
I realized that I am logged in as admin soon as I made this thread. I was able to remove the file once I logged in root.

Thanks ffeingol again :D





-Omair