Solved

CentOS is changing all file names to lowercase

Posted on 2009-07-15
9
333 Views
Last Modified: 2013-11-08
I built a new Linux server with CentOS to replace an ancient RedHat server.  I'm copying over a bunch of directories and a few web apps are not working.  It turns out that CentOS is changing all file names to all lowercase.  Is this normal and how can I stop that from happening so that all the files can be accessed as they should be (case sensitive)??  Thanks.
0
Comment
Question by:tenover
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 16

Expert Comment

by:medvedd
ID: 24863070
How are you copying files from RH to Centos?
0
 

Author Comment

by:tenover
ID: 24863135
Well, I'm copying these directories over to a Windows box FROM the windows box via Samba, and the file names retain their casees just fine.  I then use Samba to connect to the new CentOS box and as soon as I drag and drop to that box, everything goes to lower case...
0
 
LVL 16

Accepted Solution

by:
medvedd earned 500 total points
ID: 24863189
If it's impossible to copy files from RH to Centos directly, you should add two lines to smb.conf global section on Centos:


preserve case = yes
short preserve case = yes
0
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

 
LVL 16

Expert Comment

by:medvedd
ID: 24863206
P.S. Don't forget to re-read smb.conf:

/etc/init.d/smb reload
0
 

Author Comment

by:tenover
ID: 24863284
Looks like that did it.  Thanks very much.  One more question, what would be the preferred way to copy from one linux server to the other?  I can telnet into the old one, but once there, would I just somehow ssh or telnet into the new server from a terminal and copy that way?
0
 
LVL 16

Expert Comment

by:medvedd
ID: 24863326
Best way to copy from one unix box to another is rsync. It'll work over ssh connection, so it's secure too.
0
 

Author Comment

by:tenover
ID: 24863452
Would you be so kind as to tell me how to use rsync or where I can find documentation on it?
0
 

Author Comment

by:tenover
ID: 24863525
So I think I found the documentation, however the old server is RedHat 7.2....Not sure if it even has rsync.  Is there a very simple way to copy from the old server to the new?  I need to copy some very large directories over and would like to do it the proper way.
0
 
LVL 16

Expert Comment

by:medvedd
ID: 24869216
You can download and compile rsync from sources:

http://www.samba.org/rsync/
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

688 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