?
Solved

CentOS is changing all file names to lowercase

Posted on 2009-07-15
9
Medium Priority
?
334 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 2000 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
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
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…
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 12 hours left to enroll

764 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