Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Hey, just a quick question, hopefully... I have a file on a CIFS shared drive that is showing up, but if I try to rm or mv it or anything else it says it doesn't exist. I can't copy over it with something else either. It's not a permissions problem, because I've tried as root as well with the same results.
Wondering if anyone else has has this problem and/or knows how to fix it.
Does the filename contain evil characters? You could use a wild card after the first few characters, or use autocompletion to finish the name. If you use wildcards, use the ls command first to make sure that other files wouldn't be deleted also. Since this is a shared partition, you could have permission problems if you aren't the root on that machine, but if it was a permission problem, the error would indicate that.
Could you try deleting it in a graphical file manager instead?
Does the filename contain evil characters? You could use a wild card after the first few characters, or use autocompletion to finish the name. If you use wildcards, use the ls command first to make sure that other files wouldn't be deleted also. Since this is a shared partition, you could have permission problems if you aren't the root on that machine, but if it was a permission problem, the error would indicate that.
Could you try deleting it in a graphical file manager instead?
No bad characters... the filename is CURRENTscripts.tgz
it will autocomplete to finish... and I can ls it
-rwxrwSrwt 1 root fMRI 7466754 Mar 15 11:13 CURRENTscripts.tgz
but rm or mv or tar -xzf all fail saying it doesn't exist.
It's shared, but I have full read/write access to the drive for any other file, which are set with the same permissions, user, and group
tried deleting it in Windows where I have the shared drive mounted, but Windows gives me pretty much the same thing (though there it says file is in use, but if I try to open it there I just get an empty zip file that it asks if I want to add any files to)
Not really sure... I didn't set up the CIFS mount unfortunately... the IT guys here did it, and they know less than they should about computers... especially linux... already had a bunch of other problems with the drive randomly becoming inaccessible or even cifsd hanging the whole computer.
right... but I was just reading a website that said since it shares space with the x execute it has to distinguish... so s is Suid AND execute, and S is Suid without execute.. which doesn't make a lot of sense... same with the t... t is sticky bit AND execute, but T would be sticky bit without execute...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.