Hi,
ich probiere schon tagelang rum und bekomme es nicht gebacken, deshalb brauche ich jetzt professionelle Hilfe.
Ich habe 2 Raspis:
- raspi1: Raspberry Pi B
- raspi2: Raspberry Pi 2B
Die Konfiguration von raspi2 habe ich als Clone von raspi1 erstellt und für die andere CPU upgedatet gemäß Anleitung in RaspberryPi-Geek. Das lief auch immer perfekt - incl. Samba. Aber seit ein paar Wochen geht der Sambazugriff von Windows auf raspi2 nicht mehr.
- Auf //raspi1/root incl. Unterverzeichnisse kann ich vom Windows-Explorer per Netzlaufwerk zugreifen,
- auf //raspi2/root komme ich zwar, aber von da an nicht weiter in die Unterverzeichnisse (ging aber vorher monatelang).
Versuche mit anderen Verzeichnissen verlaufen durchweg positiv, nur root klemmt.
Ich logge mich jeweils als User pi ein, der auch Root-Rechte hat.
Die smb.conf beider Rechner ist identisch. Und weil es ja ein Clone ist, sind auch Zugriffsrechte auf Dateien und Verzeichnisse identisch.
Auch sudo smbpasswd -a pi habe ich schon hinter mir.
Ich weiß, dass es aus Sicherheitsgründen nicht toll ist, das root-Verzeichnis freizugeben. Es geht mir hier letztlich auch nur noch um den sportlichen Ehrgeiz, das Problem zu lösen. Anschließend werde ich punktuell freigeben, was ich wirklich brauche.
Ich habe inzwischen auch schon /etc/passwd, shadow und group beider Rechner verglichen und angepasst. Das Problem bleibt.
Die smb.conf sieht so aus (um die vielen Kommentare und auskommentierten Zeilen gekürzt):
[global]
workgroup = Msheimnetz
server string = %h server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[homes]
comment = Home Directories
browseable = no
read only = yes
create mask = 0700
directory mask = 0700
valid users = %S
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[root]
path = /
writeable = yes
guest ok = no
Display More
Und hier das Root-Verzeichnis:
pi@raspi2 / $ ll
insgesamt 1164
drwxr-xr-x 25 root root 4096 Jan 29 20:22 .
drwxr-xr-x 25 root root 4096 Jan 29 20:22 ..
drwxr-xr-x 2 root root 4096 Okt 26 22:51 bin
drwxr-xr-x 3 root root 16384 Jan 1 1970 boot
drwxr-xr-x 2 root root 4096 Jan 1 1970 boot.bak
-rw-r----- 1 root root 1073152 Jan 16 12:59 core
drwxr-xr-x 12 root root 3220 Jan 31 18:16 dev
drwxr-xr-x 109 root root 12288 Jan 31 18:13 etc
drwxrwxrwx 3 root root 4096 Jan 27 22:06 home
drwxr-xr-x 14 root root 4096 Jan 23 12:35 lib
drwxr----- 2 root root 16384 Feb 9 2013 lost+found
drwxr-xr-x 2 root root 4096 Feb 9 2013 media
drwxrwxr-x 6 nobody pi 65536 Jan 31 18:42 mnt
drwxrwxr-x 9 99 pi 65536 Jan 10 22:15 mnt2
drwxr-xr-x 4 root root 4096 Feb 24 2014 opt
drwxr-xr-x 5 root root 4096 Feb 21 2015 pi
dr-xr-xr-x 135 root root 0 Jan 1 1970 proc
-rw------- 1 root nogroup 1024 Okt 29 12:26 .rnd
drwxr----- 9 root root 4096 Jan 31 04:14 root
drwxr-xr-x 20 root root 900 Jan 31 18:16 run
drwxr-xr-x 2 root root 4096 Jan 26 23:10 sbin
drwxr-xr-x 2 root root 4096 Jun 20 2012 selinux
drwxr-xr-x 2 root root 4096 Feb 9 2013 srv
dr-xr-xr-x 12 root root 0 Jan 1 1970 sys
drwxrwxrwx 5 pi pi 4096 Jan 31 19:30 tmp
drwxr-xr-x 10 root root 4096 Feb 9 2013 usr
drwxr-xr-x 12 root root 4096 Okt 28 19:09 var
pi@raspi2 / $
Display More
Selbst in das Verzeichnis /tmp komme ich nicht, obwohl es pi gehört
.
Wer kann mir helfen? Schon mal im Voraus besten Dank dafür.
Gruß
Willy