2017-11-17 3 views
-1

Ich habe Probleme zu verstehen, was hier vorgeht. Unter/var oder ~/oder irgendwo anders im Dateisystem kann ich nicht auf eine Datei zugreifen, außer wenn die Groß-/Kleinschreibung beachtet wird (wie erwartet). Wenn ich jedoch in das Verzeichnis/var/www (oder jedes andere Verzeichnis von dort) gehe, kann ich auf die Datei zugreifen, ohne dabei die Groß-/Kleinschreibung zu beachten.Dateien unter/var/www verhält sich auf Groß- und Kleinschreibung unter Ubuntu 14.04

Ich kann das nicht auf meinen anderen Systemen reproduzieren, also denke ich, dass es eine Konfiguration sein muss, die auf dieser Box gemacht wurde. Ich weiß nur nicht, wo ich danach suchen soll.

Kann mir bitte jemand helfen, herauszufinden, warum das passiert? Hier

[email protected]:/var$ ls -l 
total 48 
drwxr-xr-x 2 root root 4096 Apr 10 2014 backups 
drwxr-xr-x 13 root root 4096 Nov 8 03:20 cache 
drwxr-xr-x 3 root root 4096 Nov 8 03:18 chef 
drwxrwxrwt 2 root root 4096 Nov 6 20:42 crash 
drwxr-xr-x 53 root root 4096 Nov 8 03:20 lib 
drwxrwsr-x 2 root staff 4096 Apr 10 2014 local 
lrwxrwxrwx 1 root root  9 Nov 6 20:40 lock -> /run/lock 
drwxrwxr-x 13 root syslog 4096 Nov 8 12:56 log 
drwxrwsr-x 2 root mail 4096 Nov 6 20:40 mail 
drwxr-xr-x 2 root root 4096 Nov 6 20:40 opt 
lrwxrwxrwx 1 root root  4 Nov 6 20:40 run -> /run 
drwxr-xr-x 5 root root 4096 Nov 6 20:41 spool 
-rw-r--r-- 1 vagrant vagrant 28 Nov 17 13:22 thisIsATestFile.txt 
drwxrwxrwt 2 root root 4096 Nov 6 20:43 tmp 
drwxr-xr-x 1 vagrant vagrant 204 Nov 17 13:22 www 
[email protected]:/var$ cat thisIsATestFile.txt 
Lorem ipsum dolor sit amet. 
[email protected]:/var$ cat THISISATESTFILE.txt 
cat: THISISATESTFILE.txt: No such file or directory 
[email protected]:/var$ cd www 
[email protected]:/var/www$ ls -l 
total 8 
drwxr-xr-x 1 vagrant vagrant 1394 Nov 17 13:08 html 
-rw-r--r-- 1 vagrant vagrant 81 Nov 8 02:28 index.php 
-rw-r--r-- 1 vagrant vagrant 28 Nov 17 13:21 thisIsATestFile.txt 
[email protected]:/var/www$ cat thisIsATestFile.txt 
Lorem ipsum dolor sit amet. 
[email protected]:/var/www$ cat THISISATESTFILE.txt 
Lorem ipsum dolor sit amet. 
[email protected]:/var/www$ 

ist die Verteilung Info:

[email protected]:/var/www$ uname -r 
3.13.0-135-generic 
[email protected]:/var/www$ lsb_release -a 
No LSB modules are available. 
Distributor ID: Ubuntu 
Description: Ubuntu 14.04.5 LTS 
Release: 14.04 
Codename: trusty 
[email protected]:/var/www$ 
+0

ist das ein anderes Dateisystem? (das ist auf/var/www montiert) – OznOg

+0

Ich habe gerade überprüft und ja ist es./var/www ist vboxsf,/var ist ext4. Danke, ich denke, das könnte es erklären. vboxsf muss diese Groß-/Kleinschreibung beachten, richtig? – jks

+0

dann duplizieren von https://stackoverflow.com/questions/38460417/how-to-make-virtualbox-vm-share-case-sensitive – OznOg

Antwort

0

Sie wies darauf hin, dass Sie vboxsf Dateisystem verwenden für /var/www Stellungspunkt.

Dieses Dateisystem unterscheidet standardmäßig nicht zwischen Groß- und Kleinschreibung.

MBYE siehe https://forums.virtualbox.org/viewtopic.php?f=9&t=40423, wenn Sie es in einer Groß-und Kleinschreibung beachten möchten.

Verwandte Themen