Solved

CentOS is changing all file names to lowercase

Posted on 2009-07-15
9
326 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
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…
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.

760 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

20 Experts available now in Live!

Get 1:1 Help Now