[Samba] Can not delete file
Søren O'Neill
soren at oneill.dk
Tue Jul 20 04:00:05 MDT 2010
I have a backup folder on a network NAS drive (Verbatim running smb)
There's a mozilla-thunderbird lock-file there, which I can not delete.
The file is a (broken) link.
Thunderbird is not running. ps -A | grep moz yields nothing.. besides
which it's only a backup file
I (accidentally) created to more link files linking to the original
file.
ls -la gives me:
$ ls -l
total 8
lrwxrwxrwx 1 soon users 77 2010-07-17 17:27 Link to Link to lock
-> /home/soon/NASdrive/soon/UDISK_BACKUP/UDISK/.mozilla-thunderbird/Link
to lock
lrwxrwxrwx 1 soon users 69 2010-07-17 17:27 Link to lock
-> /home/soon/NASdrive/soon/UDISK_BACKUP/UDISK/.mozilla-thunderbird/lock
lrwxrwxrwx 1 soon users 15 2010-07-17 13:47 lock -> 127.0.1.1:+2620
if I then try to delete with rm:
$ sudo rm -fv ./*
[sudo] password for soon:
removed `./Link to Link to lock'
removed `./Link to lock'
removed `./lock'
so it seems successful, but alas, ls -la still lists:
ls -l
total 8
lrwxrwxrwx 1 soon users 77 2010-07-17 17:27 Link to Link to lock
-> /home/soon/NASdrive/soon/UDISK_BACKUP/UDISK/.mozilla-thunderbird/Link
to lock
lrwxrwxrwx 1 soon users 69 2010-07-17 17:27 Link to lock
-> /home/soon/NASdrive/soon/UDISK_BACKUP/UDISK/.mozilla-thunderbird/lock
lrwxrwxrwx 1 soon users 15 2010-07-17 13:47 lock -> 127.0.1.1:+2620
... i.e no change.
Furthermore, I'm unable to delete the parent folder (not empty).
Funny thing is, if I look at the folder from a windows box, the
link-files are not there, but I'm still not able to delete the parent
folder (no errors).
This is how the NAS drive is mounted (fstab):
//192.168.1.20/soon /home/soon/NASdrive/soon/ cifs
username=soon,password=****************,uid=soon,_netdev
Any ideas, what may be wrong?
Soren - Denmark
More information about the samba
mailing list