Today's Topics:I have tried doing everything i've gathered from the net; from changing the attributes, to using stat and getting necessary info about the file.
1. Re: can't delete a file (Sacha Chua)
2. Re: can't delete a file (Gerald Timothy Quimpo)
Message: 1
To: [EMAIL PROTECTED]
Subject: Re: [plug] can't delete a file
From: Sacha Chua <[EMAIL PROTECTED]>
Date: Mon, 02 Dec 2002 21:44:46 +0000
Reply-To: [EMAIL PROTECTED]
[EMAIL PROTECTED] writes:
This is a result of the file being marked as immutable (chattr +i /var/log/messages).[mylinuxbox]# rm -f /var/log/messages rm: cannot unlink `/var/log/messages': Operation not permitted Help,
You can remove the immutable flag with chattr -i /var/log/messages
although you usually don't want to remove /var/log/messages. If it's getting too big, simply
echo > /var/log/messages
--
Sacha Chua <[EMAIL PROTECTED]> - 4 BS CS Ateneo geekette
interests: emacs, linux, wearables, teaching compsci
This was due to the fact that i had created a link of /var/log/messages file. I did this in line with the testing/evaluation i am doing with an application called jail chroot project.
I tried giving normal users(not su/root) the authority to view the said logfile. i have place a symbolic link and that was it.
I just noticed that the file grew larger and larger and i wanted to get rid of it. I have just uninstall the application.
--__--__--exactly! This is the question!
Message: 2
From: Gerald Timothy Quimpo <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [plug] can't delete a file
Date: Mon, 2 Dec 2002 13:22:05 -0500
Reply-To: [EMAIL PROTECTED]
on the other hand, the original question had to do with identifying
where the original file is after an ln (i don't know why that would be,
is there some program in linux (or unix, generally) that will list allDid this already but to no avail.
the filenames that are linked to the same file? the best i can find for now is: get the inode of one of the hard links (with a little program that calls
stat and prints the inode), then:
find -inum <inodenumber>
tigerNope. /var was mounted rw.
Message: 4
Date: Mon, 2 Dec 2002 12:31:06 -0800
To: [EMAIL PROTECTED]
Subject: Re: [plug] can't delete a file
From: Rick Moen <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
[mylinuxbox]# rm -f /var/log/messagesAs Sacha says, this could be because somebody has set the immutable bit
rm: cannot unlink `/var/log/messages': Operation not permitted
for that file (or it got set accidentally as a result of filesystem
damage). Alternatively, is it possible that /var is mounted read-only
for some reason? Or that permissions on /var/log/messages have been set very peculiarly?
--
Cheers, kill -9 them all. Rick Moen Let init sort it out. [EMAIL PROTECTED]
--__--__--
--__--__--
_______________________________________________
plug mailing list
[EMAIL PROTECTED]
http://lists.q-linux.com/mailman/listinfo/plug
End of plug Digest
=================
"TRUST is very important. When trust is
broken, it is the END. LACK OF TRUST leads to
SUSPICION, suspicion generates ANGER,
anger causes ENMITY
and enmity may result in SEPARATION."
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
