Solved

CentOS is changing all file names to lowercase

Posted on 2009-07-15
9
327 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
  • 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
 
LVL 16

Expert Comment

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

/etc/init.d/smb reload
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 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

17 Experts available now in Live!

Get 1:1 Help Now