Hallo Community, ich habe mir einen Samba Server als Standalone server installiert. In smb.conf habe ich einige Freigaben definiert. Mit meinem Ubuntu Desktop PC (22.04) kann ich per smbclient auf den Server zugreifen aber kein Kommando wie ls ausführen:
smbclient -U demouser //ocean/demo Password for [WORKGROUP\demouser]: Try "help" to get a list of possible commands. smb: \> ls NT_STATUS_ACCESS_DENIED listing \* smb: \>
Die Ausgabe oben erscheint nachdem ich das Beispiel von vom Samba-Wiki durchgegangen bin: //wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server#Testing_the_Share_Access:. demouser ist hier und im Beispiel Mitglied der Gruppe demogroup.
Meine smb.conf hat mehrere Freigaben, die bei der Anmeldung mit smbclient die gleiche Meldung produzieren. testparm liefert folgendes:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
# Global parameters
[global]
log file = /var/log/samba/log.%m
logging = file
map to guest = Bad User
max log size = 1000
obey pam restrictions = Yes
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *>
passwd program = /usr/bin/passwd %u
server role = standalone server
server string = %h server (Samba, Ubuntu)
unix password sync = Yes
usershare allow guests = Yes
idmap config * : backend = tdb
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[finanzen]
comment = Freigabe auf Ubuntu File Server
force create mode = 0770
force directory mode = 02770
path = /mnt/daten/01_finanzen
read only = No
[oeffentlichkeitsarbeit]
comment = Freigane auf Ubuntu File Server
force create mode = 0770
force directory mode = 02770
path = /mnt/daten/02_oeffentlichkeitsarbeit
read only = No
[personal]
comment = Freigabe auf Ubuntu File Server
force create mode = 0770
force directory mode = 02770
path = /mnt/daten/03_personal
read only = No
[projekt]
comment = Freigabe auf Ubuntu File Server
path = /mnt/daten/04_projekt
read only = No
[schriftverkehr]
comment = Freigabe auf Ubuntu File Server
path = /mnt/daten/05_schriftverkehr
read only = No
[vereinsorganisation]
comment = Freigabe auf Ubuntu File Server
path = /mnt/daten/06_vereinsorganisation
read only = No
[wissensdatenbank]
comment = Freigabe auf Ubuntu File Server
path = /mnt/daten/07_wissensdatenbank
read only = No
[austausch]
comment = Freigabe auf Ubuntu File Server
path = /mnt/daten/08_austausch
read only = No
[guest]
comment = ohne authentifizierung
guest ok = Yes
guest only = Yes
path = /mnt/daten/guest/
read only = No
[demo]
comment = authentifizierung erforderlich
path = /mnt/daten/demo/
read only = No
Das Verzeichnisauflistung sieht wie folgt aus:
root@ocean:/mnt/daten# ll total 68 drwxrwx--- 14 root root 4096 Mär 18 19:41 ./ drwxr-xr-x 3 root root 4096 Feb 25 09:32 ../ drwxrws--- 2 root finanzen 4096 Mär 7 13:45 01_finanzen/ drwxrws--- 2 root oeffentlichkeitsarbeit 4096 Mär 18 18:02 02_oeffentlichkeitsabeit/ drwxrws--- 2 root personal 4096 Mär 2 09:04 03_personal/ drwxrws--- 2 root projekt 4096 Mär 7 13:59 04_projekt/ drwxrws--- 2 root schriftverkehr 4096 Mär 2 09:05 05_schriftverkehr/ drwxrws--- 2 root vereinsorganisation 4096 Mär 2 09:05 06_vereinsorganisation/ drwxrws--- 2 root wissensdatenbank 4096 Mär 2 09:05 07_wissensdatenbank/ drwsrws--T 2 root austausch 4096 Mär 2 09:05 08_austausch/ drwxrws--- 2 root demogroup 4096 Mär 18 19:47 demo/ drwxrws--- 2 nobody nogroup 4096 Mär 18 19:41 guest/ drwx------ 2 root root 16384 Feb 25 09:38 lost+found/ root@ocean:/mnt/daten#
Hat jemand eine Idee wo der Fehler liegt? Vielen Dank.