archy
Anmeldungsdatum: 24. November 2009
Beiträge: 1920
|
hallo, also ich habe mal zum Testen Lubuntu 20.4 in eine VirtualBox installiert - gleich beim 1. Start wird dann der Total-Upgrade angeboten. Das habe ich gemacht und dabei festgestellt, dass Lubuntu als Standard Samba gar nicht richtig und vollständig installiert. Also mach da als Erstes mal folgendes in der Konsole: sudo apt-get install samba samba-common cifs-utils winbind smbclient je nach dem was schon auf deinem Lubuntu-System ist wird er meckern, das eines der Pakete schon installiert ist, - also wiederholst du den Befehl ohne dieses Paket bis er durchläuft. danach editierst du /etc/samba/smb.conf und kontrollierst die Angaben. als nächstes führst du aus sudo smbpasswd -a username passwort Das Passwort will er insgesamt 3 mal, erst 1 mal für sudo und dann für 2 mal für den user. Und dann machst du nochmal einen Neustart des Laptops. Nochmals zur Erinnerung: Auf der NAS müssen alle User die zugreifen sollen angelegt sein und zwar mit absolut identischen Namen und Passwort. Ebenso müssen dort die Freigaben für alle diese User konfiguriert sein. Bei mir hat es auf Anhieb geklappt, ohne dass ich /etc/hosts auf Lubuntu editieren musste. gruß archy
|
Stabsgefreiter
(Themenstarter)
Anmeldungsdatum: 27. Juli 2008
Beiträge: 744
Wohnort: Berlin
|
was geanu soll ich in der smb.con editieren? hier mal die smb.conf #
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
# - When such options are commented with ";", the proposed setting
# differs from the default Samba behaviour
# - When commented with "#", the proposed setting is the default
# behaviour of Samba but the option is considered important
# enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
# client min protocol = CORE
# client lanman auth = yes
# ntlm auth = yes
# protocol = SMB3
client min protocol = NT1
# client max protocol = NT1
server min protocol = NT1
# ntlm auth = ntlmv1-permitted
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
max log size = 1000
# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
logging = file
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
server role = standalone server
obey pam restrictions = yes
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes
# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user
########## Domains ###########
#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set
#
# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
; logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
# logon path = \\%N\%U\profile
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
; logon drive = H:
# logon home = \\%N\%U
# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
; logon script = logon.cmd
# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe. The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g
############ Misc ############
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m
# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; idmap config * : backend = tdb
; idmap config * : range = 3000-7999
; idmap config YOURDOMAINHERE : backend = tdb
; idmap config YOURDOMAINHERE : range = 100000-999999
; template shell = /bin/bash
# Setup usershare options to enable non-root users to share folders
# with the net usershare command.
# Maximum number of usershare. 0 means that usershare is disabled.
# usershare max shares = 100
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
; comment = Home Directories
; browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
; read only = yes
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
; valid users = %S
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
hab ich so gemacht, leider keinen Zugriff
|
archy
Anmeldungsdatum: 24. November 2009
Beiträge: 1920
|
hallo, also mit "Editieren" war natürlich das öffnen der Datei /etc/samba/smb.conf gemeint und dann die Angaben / Einstellungen nocchmals zu kontrollieren. Soweit ich sehen kann hat deine "smb.conf" keine Fehler. Der Befehl testparm in der Konsole würde die dir aufzeigen. Ich gehe mal davon aus, dass du als Dateimanager auch "PCManFM-Qt" benutzt. Was passiert, wenn du die Adresszeile editierst und dort manuell smb://192.168.178.64 eingibst und mit "ENTER" abschickst ?? Kannst du mal den Laptop mit einem Ethernetkabel mit deinem Netzwerk / Router verbinden - den kannst du ja notfalls direkt daneben stellen. Ich habe nämlich den Verdacht, dass nicht SAMBA sondern irgendwelche Einstellungen in deinem Netzwerk / Router / NAS den Zugriff über WLAN verhindern. gruß archy
|
Stabsgefreiter
(Themenstarter)
Anmeldungsdatum: 27. Juli 2008
Beiträge: 744
Wohnort: Berlin
|
Notebook, Deskop Pc und NSA sind im lan über die Fritzbox miteinander verbundeb. hier mal madmax@aspire8930:~$ testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
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 *password\supdated\ssuccessfully* .
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
madmax@aspire8930:~$
ich benutze den pcmanfm als Datemaager, wo kann ich da eine Adresszeile editieren?
|
archy
Anmeldungsdatum: 24. November 2009
Beiträge: 1920
|
hallo, die Ausgabe von "testparm" sieht für mich gut aus, da kann ich keine Fehler entdecken. Also kann es nur an der User-Authentifizierung liegen, daher nochmals die Frage hast du auf der NAS alle ( ALLE !! ) User mit gleichem Namen und gleichem Passwort wie auf den einzelnen Computern angelegt ?? Hast du auf allen Computern die User die Samba benutzen sollen mit dem Befehl sudo smbpasswd -a username passwort angelegt ?? Sind die Samba-Freigaben auf der NAS auch für alle diese Benutzer freigegeben ?? Anbei ein paar Bildchen wie das in Pacman aussieht wenn man über Samba auf ein Netzwerk zugreift ( DATA2, ARCHIV und BACKUP sind NAS-Geräte ).
Auch wo man die Pfadleiste in Pacman zur manuellen Eingabe freischaltet habe ich für dich aufgenommen. gruß archy
- Bilder
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1576
|
Es liegt nicht an den Benutzern. Die Freigabeliste kann nicht empfangen werden, weil etwas anderes den entsprechenden Port blockiert. Selbst wenn client min protocol und server min protocol in der smb.conf auf NT1 gesetzt sind, scheitert das Empfangen der Freigabeliste. Da auch smbclient sich nicht mit dem Server verbinden kann, kann es nicht an den Protokollversionen liegen. Da aber nach wie vor Ausgaben fehlen, kann man nicht zielgerichtet helfen. Fakt ist: Um einfach nur auf eine Freigabe zuzugreifen, braucht man nicht den Serverdienst Samba zu installieren.
|
kB
Supporter, Wikiteam
Anmeldungsdatum: 4. Oktober 2007
Beiträge: 7572
Wohnort: Münster
|
chr123 schrieb: […] Die Freigabeliste kann nicht empfangen werden, weil etwas anderes den entsprechenden Port blockiert.
Das könnte z.B. auch die Firewall des Notebooks sein. Kontrolliere die Ports udp/135,137,138 und tcp/139,445.
|
Stabsgefreiter
(Themenstarter)
Anmeldungsdatum: 27. Juli 2008
Beiträge: 744
Wohnort: Berlin
|
welche Ausgaben sind denn genau gemeint?
Eine Firewall habe ich gar nicht eingerichtet. hat Lubuntu denn überhaupt eine?
|
archy
Anmeldungsdatum: 24. November 2009
Beiträge: 1920
|
@chr123
Fakt ist: Um einfach nur auf eine Freigabe zuzugreifen, braucht man nicht den Serverdienst Samba zu installieren.
wenn ich mit Windows und Linux zugreifen will, dann schon - insbesondere weil zumindest bei meinen NAS-Geräten die Freigaben immer an ein bestimmtes Protokoll gebunden sind. @kB
Das könnte z.B. auch die Firewall des Notebooks sein. Kontrolliere die Ports udp/135,137,138 und tcp/139,445.
Das könnte sehr gut sein. Was ich schon bei einem HP-ZBook erlebt habe ist, dass durch Einstecken des Ethernet-Kabels, plötzlich beide Zugängen WLAN und Ethernet blockiert waren und ich das Netzwerk an dem Gerät komplett neu aufsetzen musste um wieder auf Inter- und Intranet zugreifen zu können.
Aufgefallen ist mir bei der Testinstallation von Lubuntu dass "Kabelverbindung" und "WLAN" beides aktiviert waren, obwohl die VM natürlich keinen WLAN-Adapter besitzt. Da er aber mit der Kiste ins Internet kommt und nur nicht auf seine NAS, weis ich im Moment auch keinen weiteren Rat als die Portfreigaben zu prüfen am Besten auch auf der FritBox. gruß archy
|
kB
Supporter, Wikiteam
Anmeldungsdatum: 4. Oktober 2007
Beiträge: 7572
Wohnort: Münster
|
Stabsgefreiter schrieb: welche Ausgaben sind denn genau gemeint?
Eine Firewall habe ich gar nicht eingerichtet.
Zeig doch einfach, was Sache ist:
sudo iptables -S
sudo iptables -S -t nat
sudo iptables -S -t raw
|
archy
Anmeldungsdatum: 24. November 2009
Beiträge: 1920
|
hallo Stabsgefreiter, ich habe mal zum Testen an meiner Kubuntu-Maschine den smbclient-Befehl eingegeben. Das funktioniert ohne Fehlermeldungen. Dabei ist mir aufgefallen, dass in deiner Ausgabe
madmax@lenovo3000n200:~$ smbclient -d 3 -L 192.168.178.64 -m NT1
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
added interface wlan0 ip=2003:ec:2f10:700:7410:21dd:df7a:a657 bcast= netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=2003:ec:2f10:700:f054:3f55:c329:d9e8 bcast= netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.178.25 bcast=192.168.178.255 netmask=255.255.255.0
Client started (version 4.11.6-Ubuntu).
Connecting to 192.168.178.64 at port 445
Connecting to 192.168.178.64 at port 139
protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX
madmax@lenovo3000n200:~$
wie ist das nun, hast du Kabel oder WLAN aktiviert ?? gruß archy
|
Stabsgefreiter
(Themenstarter)
Anmeldungsdatum: 27. Juli 2008
Beiträge: 744
Wohnort: Berlin
|
es ist ist der Tat so dass lubuntu wlan und lan gleichzeitig aktviert. ich hab jetzt mal das wlan abgeschaltet und bin nur mit dem lan verbunden madmax@aspire8930:~$ testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
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 *password\supdated\ssuccessfully* .
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
madmax@aspire8930:~$
madmax@aspire8930:~$ smbclient -d 3 -L 192.168.178.64 -m NT1
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[global]"
added interface enp2s0 ip=2003:ec:2f09:5100:143f:af23:689e:68f bcast= netmask=ffff:ffff:ffff:ffff::
added interface enp2s0 ip=192.168.178.10 bcast=192.168.178.255 netmask=255.255.255.0
Client started (version 4.11.6-Ubuntu).
Connecting to 192.168.178.64 at port 445
Connecting to 192.168.178.64 at port 139
protocol negotiation failed: NT_STATUS_INVALID_PARAMETER_MIX
madmax@aspire8930:~$
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1576
|
Stabsgefreiter schrieb: welche Ausgaben sind denn genau gemeint?
Siehe hier und hier. Beide jeweils komplett von Prompt zu Prompt.
|
Stabsgefreiter
(Themenstarter)
Anmeldungsdatum: 27. Juli 2008
Beiträge: 744
Wohnort: Berlin
|
madmax@aspire8930:~$ sudo iptables -S
[sudo] Passwort für madmax:
-P INPUT ACCEPT
-P FORWARD ACCEPT
-P OUTPUT ACCEPT
madmax@aspire8930:~$ sudo iptables -S -t nat
-P PREROUTING ACCEPT
-P INPUT ACCEPT
-P OUTPUT ACCEPT
-P POSTROUTING ACCEPT
madmax@aspire8930:~$ sudo iptables -S -t raw
-P PREROUTING ACCEPT
-P OUTPUT ACCEPT
madmax@aspire8930:~$
|
Stabsgefreiter
(Themenstarter)
Anmeldungsdatum: 27. Juli 2008
Beiträge: 744
Wohnort: Berlin
|
hier mal alle Ausgaben madmax@aspire8930:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
madmax@aspire8930:~$ ls -hal /etc/samba/smb.conf
-rw-r--r-- 1 root root 8,8K Aug 14 14:41 /etc/samba/smb.conf
madmax@aspire8930:~$ cat /etc/samba/smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
# - When such options are commented with ";", the proposed setting
# differs from the default Samba behaviour
# - When commented with "#", the proposed setting is the default
# behaviour of Samba but the option is considered important
# enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic
# errors.
#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)
#### Networking ####
# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
; interfaces = 127.0.0.0/8 eth0
# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself. However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
; bind interfaces only = yes
#### Debugging/Accounting ####
# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
max log size = 1000
# We want Samba to only log to /var/log/samba/log.{smbd,nmbd}.
# Append syslog@1 if you want important messages to be sent to syslog too.
logging = file
# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
####### Authentication #######
# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller".
#
# Most people will want "standalone server" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
server role = standalone server
obey pam restrictions = yes
# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
unix password sync = yes
# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
pam password change = yes
# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user
########## Domains ###########
#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or 'domain logons' is set
#
# It specifies the location of the user's
# profile directory from the client point of view) The following
# required a [profiles] share to be setup on the samba server (see
# below)
; logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
# logon path = \\%N\%U\profile
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
; logon drive = H:
# logon home = \\%N\%U
# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
; logon script = logon.cmd
# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe. The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a "machines" group exists on the system
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup --force-badname %g
############ Misc ############
# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m
# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
; idmap config * : backend = tdb
; idmap config * : range = 3000-7999
; idmap config YOURDOMAINHERE : backend = tdb
; idmap config YOURDOMAINHERE : range = 100000-999999
; template shell = /bin/bash
# Setup usershare options to enable non-root users to share folders
# with the net usershare command.
# Maximum number of usershare. 0 means that usershare is disabled.
# usershare max shares = 100
# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes
#======================= Share Definitions =======================
# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user's home directory as \\server\username
;[homes]
; comment = Home Directories
; browseable = no
# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
; read only = yes
# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700
# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700
# By default, \\server\username shares can be connected to by anyone
# with access to the samba server.
# Un-comment the following parameter to make sure that only "username"
# can connect to \\server\username
# This might need tweaking when using external authentication schemes
; valid users = %S
# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
madmax@aspire8930:~$ sudo rm /etc/samba/smb.conf
madmax@aspire8930:~$ sudo apt purge samba
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
ibverbs-providers libcdr-0.1-1 libcephfs2 libetonyek-0.1-1 libibverbs1 libjuh-java libjurt-java libmspub-0.1-1 libmwaw-0.3-3 liborcus-0.15-0 librados2
librdmacm1 libreoffice-style-tango libridl-java libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 samba-vfs-modules tdb-tools
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden Pakete werden ENTFERNT:
samba*
0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 16,6 MB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] j
(Lese Datenbank ... 297842 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von samba (2:4.11.6+dfsg-0ubuntu1.10) ...
Trigger für man-db (2.9.1-1) werden verarbeitet ...
Trigger für libc-bin (2.31-0ubuntu9.2) werden verarbeitet ...
(Lese Datenbank ... 297625 Dateien und Verzeichnisse sind derzeit installiert.)
Löschen der Konfigurationsdateien von samba (2:4.11.6+dfsg-0ubuntu1.10) ...
dpkg: Warnung: Während Entfernens von samba ist Verzeichnis »/var/lib/samba/printers/x64« nicht leer, wird daher nicht gelöscht
dpkg: Warnung: Während Entfernens von samba ist Verzeichnis »/var/lib/samba/printers/W32X86« nicht leer, wird daher nicht gelöscht
Trigger für systemd (245.4-4ubuntu3.13) werden verarbeitet ...
Trigger für ufw (0.36-6) werden verarbeitet ...
madmax@aspire8930:~$ sudo apt autoremove --purge
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete werden ENTFERNT:
ibverbs-providers* libcdr-0.1-1* libcephfs2* libetonyek-0.1-1* libibverbs1* libjuh-java* libjurt-java* libmspub-0.1-1* libmwaw-0.3-3* liborcus-0.15-0*
librados2* librdmacm1* libreoffice-style-tango* libridl-java* libvisio-0.1-1* libwpd-0.10-10* libwpg-0.3-3* libwps-0.4-4* samba-vfs-modules* tdb-tools*
0 aktualisiert, 0 neu installiert, 20 zu entfernen und 0 nicht aktualisiert.
Nach dieser Operation werden 37,3 MB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] j
(Lese Datenbank ... 297615 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von ibverbs-providers:amd64 (28.0-1ubuntu1) ...
Entfernen von libcdr-0.1-1:amd64 (0.1.6-1build2) ...
Entfernen von libcephfs2 (15.2.14-0ubuntu0.20.04.1) ...
Entfernen von libetonyek-0.1-1:amd64 (0.1.9-3) ...
Entfernen von librados2 (15.2.14-0ubuntu0.20.04.1) ...
Entfernen von librdmacm1:amd64 (28.0-1ubuntu1) ...
Entfernen von libibverbs1:amd64 (28.0-1ubuntu1) ...
Entfernen von libjuh-java (1:7.1.6~rc2-0ubuntu0.20.04.1~lo1) ...
Entfernen von libjurt-java (1:7.1.6~rc2-0ubuntu0.20.04.1~lo1) ...
Entfernen von libmspub-0.1-1:amd64 (0.1.4-1build3) ...
Entfernen von libmwaw-0.3-3:amd64 (0.3.15-2build1) ...
Entfernen von liborcus-0.15-0:amd64 (0.15.3-3build2) ...
Entfernen von libreoffice-style-tango (1:7.1.6~rc2-0ubuntu0.20.04.1~lo1) ...
Entfernen von libridl-java (1:7.1.6~rc2-0ubuntu0.20.04.1~lo1) ...
Entfernen von libvisio-0.1-1:amd64 (0.1.7-1build2) ...
Entfernen von libwpg-0.3-3:amd64 (0.3.3-1build1) ...
Entfernen von libwpd-0.10-10:amd64 (0.10.3-1build1) ...
Entfernen von libwps-0.4-4:amd64 (0.4.10-1build1) ...
Entfernen von samba-vfs-modules:amd64 (2:4.11.6+dfsg-0ubuntu1.10) ...
Entfernen von tdb-tools (1.4.2-3build1) ...
Trigger für man-db (2.9.1-1) werden verarbeitet ...
Trigger für libc-bin (2.31-0ubuntu9.2) werden verarbeitet ...
(Lese Datenbank ... 297386 Dateien und Verzeichnisse sind derzeit installiert.)
Löschen der Konfigurationsdateien von ibverbs-providers:amd64 (28.0-1ubuntu1) ...
Löschen der Konfigurationsdateien von libreoffice-style-tango (1:7.1.6~rc2-0ubuntu0.20.04.1~lo1) ...
madmax@aspire8930:~$ sudo apt update
Holen:1 http://archive.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
OK:2 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal InRelease
OK:3 http://de.archive.ubuntu.com/ubuntu focal InRelease
Holen:4 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Holen:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Holen:6 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Holen:7 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1.213 kB]
Holen:8 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [866 kB]
Holen:9 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [144 kB]
Holen:10 http://archive.ubuntu.com/ubuntu focal-proposed/main i386 Packages [42,7 kB]
Holen:11 http://archive.ubuntu.com/ubuntu focal-proposed/main Translation-en [37,1 kB]
Holen:12 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 DEP-11 Metadata [10,9 kB]
Holen:13 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata [2.340 B]
Holen:14 http://archive.ubuntu.com/ubuntu focal-proposed/restricted amd64 Packages [101 kB]
Holen:15 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [282 kB]
Holen:16 http://archive.ubuntu.com/ubuntu focal-proposed/restricted Translation-en [14,0 kB]
Holen:17 http://archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages [86,2 kB]
Holen:18 http://archive.ubuntu.com/ubuntu focal-proposed/universe i386 Packages [34,9 kB]
Holen:19 http://de.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [535 kB]
Holen:20 http://archive.ubuntu.com/ubuntu focal-proposed/universe Translation-en [31,3 kB]
Holen:21 http://archive.ubuntu.com/ubuntu focal-proposed/universe amd64 DEP-11 Metadata [18,9 kB]
Holen:22 http://archive.ubuntu.com/ubuntu focal-proposed/universe amd64 c-n-f Metadata [2.800 B]
Holen:23 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [167 kB]
Holen:24 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [27,6 kB]
Holen:25 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [8.684 B]
Holen:26 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [406 kB]
Holen:27 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [58,3 kB]
Holen:28 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [638 kB]
Holen:29 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [507 kB]
Holen:30 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [61,3 kB]
Holen:31 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [12,4 kB]
Holen:32 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2.464 B]
Holen:33 http://de.archive.ubuntu.com/ubuntu focal-updates/main Translation-en [259 kB]
Holen:34 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [283 kB]
Holen:35 http://de.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 48x48 Icons [60,5 kB]
Holen:36 http://de.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 64x64 Icons [95,0 kB]
Holen:37 http://de.archive.ubuntu.com/ubuntu focal-updates/main DEP-11 128x128 Icons [195 kB]
Holen:38 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 c-n-f Metadata [14,2 kB]
Holen:39 http://de.archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [443 kB]
Holen:40 http://de.archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [63,5 kB]
Holen:41 http://de.archive.ubuntu.com/ubuntu focal-updates/universe i386 Packages [633 kB]
Holen:42 http://de.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [855 kB]
Holen:43 http://de.archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [182 kB]
Holen:44 http://de.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [353 kB]
Holen:45 http://de.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 48x48 Icons [215 kB]
Holen:46 http://de.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 64x64 Icons [377 kB]
Holen:47 http://de.archive.ubuntu.com/ubuntu focal-updates/universe DEP-11 128x128 Icons [883 kB]
Holen:48 http://de.archive.ubuntu.com/ubuntu focal-updates/universe amd64 c-n-f Metadata [18,9 kB]
Holen:49 http://de.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [940 B]
Holen:50 http://de.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [10,4 kB]
Es wurden 10,8 MB in 7 s geholt (1.486 kB/s).
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Aktualisierung für 11 Pakete verfügbar. Führen Sie »apt list --upgradable« aus, um sie anzuzeigen.
madmax@aspire8930:~$ apt list --upgradable
Auflistung... Fertig
apport/focal-updates,focal-updates,focal-security,focal-security 2.20.11-0ubuntu27.20 all [aktualisierbar von: 2.20.11-0ubuntu27.18]
git-man/focal-updates,focal-updates,focal-security,focal-security 1:2.25.1-1ubuntu3.2 all [aktualisierbar von: 1:2.25.1-1ubuntu3.1]
git/focal-updates,focal-security 1:2.25.1-1ubuntu3.2 amd64 [aktualisierbar von: 1:2.25.1-1ubuntu3.1]
libcurl3-gnutls/focal-updates,focal-security 7.68.0-1ubuntu2.7 amd64 [aktualisierbar von: 7.68.0-1ubuntu2.6]
libcurl4/focal-updates,focal-security 7.68.0-1ubuntu2.7 amd64 [aktualisierbar von: 7.68.0-1ubuntu2.6]
libprocps8/focal-proposed 2:3.3.16-1ubuntu2.3 amd64 [aktualisierbar von: 2:3.3.16-1ubuntu2.2]
linux-firmware/focal-proposed,focal-proposed 1.187.17 all [aktualisierbar von: 1.187.16]
procps/focal-proposed 2:3.3.16-1ubuntu2.3 amd64 [aktualisierbar von: 2:3.3.16-1ubuntu2.2]
python3-apport/focal-updates,focal-updates,focal-security,focal-security 2.20.11-0ubuntu27.20 all [aktualisierbar von: 2.20.11-0ubuntu27.18]
python3-problem-report/focal-updates,focal-updates,focal-security,focal-security 2.20.11-0ubuntu27.20 all [aktualisierbar von: 2.20.11-0ubuntu27.18]
squashfs-tools/focal-updates,focal-security 1:4.4-1ubuntu0.2 amd64 [aktualisierbar von: 1:4.4-1ubuntu0.1]
madmax@aspire8930:~$ sudo apt full-upgrade
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete werden aktualisiert (Upgrade):
apport git git-man libcurl3-gnutls libcurl4 libprocps8 linux-firmware procps python3-apport python3-problem-report squashfs-tools
11 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
8 standard security updates
Es müssen 116 MB an Archiven heruntergeladen werden.
Nach dieser Operation werden 91,1 kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren? [J/n] j
Holen:1 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-problem-report all 2.20.11-0ubuntu27.20 [9.908 B]
Holen:2 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 libprocps8 amd64 2:3.3.16-1ubuntu2.3 [33,0 kB]
Holen:3 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3-apport all 2.20.11-0ubuntu27.20 [85,4 kB]
Holen:4 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 procps amd64 2:3.3.16-1ubuntu2.3 [233 kB]
Holen:5 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 apport all 2.20.11-0ubuntu27.20 [129 kB]
Holen:6 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.2 [884 kB]
Holen:7 http://archive.ubuntu.com/ubuntu focal-proposed/main amd64 linux-firmware all 1.187.17 [110 MB]
Holen:8 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.7 [232 kB]
Holen:9 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.2 [4.554 kB]
Holen:10 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl4 amd64 7.68.0-1ubuntu2.7 [234 kB]
Holen:11 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 squashfs-tools amd64 1:4.4-1ubuntu0.2 [117 kB]
Es wurden 116 MB in 1 min 5 s geholt (1.781 kB/s).
(Lese Datenbank ... 297370 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../00-libprocps8_2%3a3.3.16-1ubuntu2.3_amd64.deb ...
Entpacken von libprocps8:amd64 (2:3.3.16-1ubuntu2.3) über (2:3.3.16-1ubuntu2.2) ...
Vorbereitung zum Entpacken von .../01-procps_2%3a3.3.16-1ubuntu2.3_amd64.deb ...
Entpacken von procps (2:3.3.16-1ubuntu2.3) über (2:3.3.16-1ubuntu2.2) ...
Vorbereitung zum Entpacken von .../02-python3-problem-report_2.20.11-0ubuntu27.20_all.deb ...
Entpacken von python3-problem-report (2.20.11-0ubuntu27.20) über (2.20.11-0ubuntu27.18) ...
Vorbereitung zum Entpacken von .../03-python3-apport_2.20.11-0ubuntu27.20_all.deb ...
Entpacken von python3-apport (2.20.11-0ubuntu27.20) über (2.20.11-0ubuntu27.18) ...
Vorbereitung zum Entpacken von .../04-apport_2.20.11-0ubuntu27.20_all.deb ...
Entpacken von apport (2.20.11-0ubuntu27.20) über (2.20.11-0ubuntu27.18) ...
Vorbereitung zum Entpacken von .../05-git-man_1%3a2.25.1-1ubuntu3.2_all.deb ...
Entpacken von git-man (1:2.25.1-1ubuntu3.2) über (1:2.25.1-1ubuntu3.1) ...
Vorbereitung zum Entpacken von .../06-libcurl3-gnutls_7.68.0-1ubuntu2.7_amd64.deb ...
Entpacken von libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.7) über (7.68.0-1ubuntu2.6) ...
Vorbereitung zum Entpacken von .../07-git_1%3a2.25.1-1ubuntu3.2_amd64.deb ...
Entpacken von git (1:2.25.1-1ubuntu3.2) über (1:2.25.1-1ubuntu3.1) ...
Vorbereitung zum Entpacken von .../08-libcurl4_7.68.0-1ubuntu2.7_amd64.deb ...
Entpacken von libcurl4:amd64 (7.68.0-1ubuntu2.7) über (7.68.0-1ubuntu2.6) ...
Vorbereitung zum Entpacken von .../09-linux-firmware_1.187.17_all.deb ...
Entpacken von linux-firmware (1.187.17) über (1.187.16) ...
Vorbereitung zum Entpacken von .../10-squashfs-tools_1%3a4.4-1ubuntu0.2_amd64.deb ...
Entpacken von squashfs-tools (1:4.4-1ubuntu0.2) über (1:4.4-1ubuntu0.1) ...
squashfs-tools (1:4.4-1ubuntu0.2) wird eingerichtet ...
linux-firmware (1.187.17) wird eingerichtet ...
update-initramfs: Generating /boot/initrd.img-5.4.0-85-generic
update-initramfs: Generating /boot/initrd.img-5.4.0-84-generic
python3-problem-report (2.20.11-0ubuntu27.20) wird eingerichtet ...
libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.7) wird eingerichtet ...
python3-apport (2.20.11-0ubuntu27.20) wird eingerichtet ...
libcurl4:amd64 (7.68.0-1ubuntu2.7) wird eingerichtet ...
git-man (1:2.25.1-1ubuntu3.2) wird eingerichtet ...
libprocps8:amd64 (2:3.3.16-1ubuntu2.3) wird eingerichtet ...
apport (2.20.11-0ubuntu27.20) wird eingerichtet ...
apport-autoreport.service is a disabled or a static unit, not starting it.
git (1:2.25.1-1ubuntu3.2) wird eingerichtet ...
procps (2:3.3.16-1ubuntu2.3) wird eingerichtet ...
Trigger für libc-bin (2.31-0ubuntu9.2) werden verarbeitet ...
Trigger für systemd (245.4-4ubuntu3.13) werden verarbeitet ...
Trigger für man-db (2.9.1-1) werden verarbeitet ...
Trigger für hicolor-icon-theme (0.17-2) werden verarbeitet ...
madmax@aspire8930:~$ sudo apt install smbclient
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
smbclient ist schon die neueste Version (2:4.11.6+dfsg-0ubuntu1.10).
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
madmax@aspire8930:~$
|