Link to home
Start Free TrialLog in
Avatar of ictb
ictb

asked on

How do I delete a file with special characters in Linux that has been created by SAMBA?

I use Samba for my fileserver. Files created from Windows with spaces and special characters create problems. From Windows I can delete or rename the files, but not from the command prompt on the server. I need to be able to delete or rename the files from Linux, not just from Windows.

Server: RHEL 5

"Filsystem med kun lesetilgang" is Norwegian and means "Filesystem with only read access".
[root@mymachine div]# ll
totalt 128
-rwxr-x--- 1 hans felles 41483 jun 17  2007 Bilde 016.jpg
-rwxr-x--- 1 hans felles 33008 jun 17  2007 div 2 ?r 001.jpg
-rwxr-x--- 1 hans felles 33008 jun 17  2007 div 2 ?r 001.jpg
[root@mymachine div]# 
 
 
[root@mymachine div]# rm -f *
rm: cannot remove «Bilde 016.jpg»: Filsystem med kun lesetilgang
rm: cannot remove «div 2 \345r 001.jpg»: Filsystem med kun lesetilgang
rm: cannot remove «div 2 \206r 001.jpg»: Filsystem med kun lesetilgang
[root@mymachine div]#

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of chiragypatil
chiragypatil

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial