Can't delete read-only files on Linux

Dragon drag0n2 at yahoo.com
Fri Oct 15 19:16:04 GMT 1999


Hi,

I am mounting an NT share from a linux(RH6.0) box using smbmount (samba
v2.05a).
smbmount //machine/cvsrepository /home/user/cvsrepository -U user

I am trying to delete a read-only file in the mounted directory. The directory 
has proper write permissions:

cd /home/user/cvsrepository
mkdir blah
cd blah
chmod +w .
touch test
chmod -w test
rm test
rm: remove write-protected file `test'? y
rm: cannot unlink `test': Permission Denied
chmod +w test
rm test   (this succeeds).

And, I can remove the same file if I "net use" the share on some other NT
machine.

I need to be able to delete the read-only file in the writable directory.
Please help.

Thanks

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com


More information about the samba mailing list