Solved

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

Posted on 2009-04-09
1
328 Views
Last Modified: 2013-12-16
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

0
Comment
Question by:ictb
1 Comment
 

Accepted Solution

by:
chiragypatil earned 125 total points
ID: 24105401
The error message says
rm: cannot remove «Bilde 016.jpg»:
which means the file name is being read as a whole. The problem here ,i think, is read access.
Try to unmount the file system and then mount the file system again with read and write permissions for the root user.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now