Override prompt when deleting a file
robert at webtent.com
Fri Nov 18 19:12:41 GMT 2005
On Fri, 2005-11-18 at 10:34 -0800, Micah wrote:
> > I'm sure I can make it happen. My problem is the rsync backup everynight
> > fails to delete this and other files like it saying 'Permission denied'.
> > So, I am assuming it is because of this issue. The rsync script logs in
> > as admin. How can I resolve this?
> > --
> > Robert
> If you clear the immutable bit (as root), rsync (as admin) should be
> able to remove the file as normal. You'll just have to figure out why
> the files are immutable in the first place. You may just be able to
> clear the immutable bit on all the files and make the problem go away or
> you may need a more complex solution.
Yeah, I don't know, the rsync script has been running for over a year
and all of sudden it can't delete files. But I don't think the files are
immutable. Did my previous post with the listing show this? But I tried
-bash-2.05b$ ls -lo massage.xls
-rw-r--r-- 1 admin admin - 4463104 Aug 29 17:25 massage.xls
esmtp# chflags -R noschg ./
-bash-2.05b$ rm massage.xls
override rw-r--r-- admin/admin for massage.xls?
More information about the freebsd-questions