sebigbos
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
Hi, das ist schon das 3te mal, daß ich versuche einen Ubuntu-Computer in ein Heim-Netzwerk einzubinden und wie immer stehe ich da wie der sprichwörtliche Ox vorm Berg. Ich will Ordner freigeben, so daß ich von einem xp-Rechner auf einen Kubuntu-Rechner und umgekehrt zugreifen kann. Ordner-Freigabe in Kubuntu 20.04: Ich klicke in Dolphin mit rechts auf einen Ordner, dann auf Freigabe. Dort hake ich "diesen Ordner im lokalen Netzwerk freigeben" und "Gastanmeldung" und stelle volle Lese- und Schreibrechte für jedermann ein. Dann mache ich Dolphin zu und dann wieder auf, schaue nach und der Ordner ist nicht freigegeben. Das wär das erste Problem. Was mach ich verkehrt?
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
Mit der Freigabe von Kubuntu kenne ich mich nicht aus, aber das (veraltete) Wiki dazu kennst du? Falls nicht: Link. Ansonsten würde ich empfehlen, die Freigabe direkt in der smb.conf zu hinterlegen. Siehe Beispiele.
|
sebigbos
(Themenstarter)
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
im wiki steht, daß man samba in den neueren kde-versionen nicht mehr in den Systemeinstellungen konfigurieren kann, sondern daß man die Freigaben mit Dolphin machen soll, aber das geht ja genau nicht. Ich hab jetzt mal versucht, das in der smb.conf zu machen:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | [Temp]
# Pfad zu Verzeichnis
path = /media/sebigbos/F/Temp/
# Auch Gäste dürfen auf die Freigabe zugreifen.
guest ok = yes
public = yes
map to guest = bad user
guest account = nobody
# Angemeldete Benutzer dürfen auch schreiben.
writeable = yes
# Freigabe ist direkt sichtbar (Default)
browseable = yes
# Rechte bei neuen Dateien/Verzeichnissen beschränken ("maskieren")
create mask = 0777
directory mask = 0777
# Benutzer und Gruppenzugehörigkeit (nur wirksam bei "unix extensions = no")
# Egal mit welchen Daten sich ein Benutzer am Server anmeldet,
# die Daten werden lokal mit diesen Dateizugehörigkeiten abgelegt.
force user = user
force group = users
|
Aber da passiert auch nichts, der Ordner ist laut Dolphin immer noch nicht freigegeben. In Dolphin gibt es einen link, der heißt "Netzwerk". Klick ich da, erhält man im Fenster u.a. einen Punkt "freigegebene Ordner (smb)". Klick ich da drauf, bekomme ich die Fehlermeldung: "Die Datei oder der Ordner smb://oy.local/ existiert nicht". oy ist der Computername. Heißt das was? Ich fisch vollkommen im Trüben.
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
Grundsätzlich: nach jeder Änderung an der smb.conf immer
testparm -s
ausführen und Fehler in der Syntax korrigieren. Also du hast jetzt eine Freigabe in der smb.conf erstellt. Soweit ok. Als nächstes würde ich schauen, welche Freigabn überhaupt erreichbar sind. Evtl. hast du net usershare schon Freigaben eingerichtet. Dazu
sudo apt install smbclient
smbclient -L localhost -U guest -N
|
Calimero2
Anmeldungsdatum: 4. Mai 2019
Beiträge: 17
|
Ich habe Samba unter folgender Anleitung plus dem zitierten Post ans Laufen gebracht: 1. Installation: sudo apt-get install samba smba-common cifa-utils gvfs-backends danach sudo nano /etc/samba/smb.conf unter [Global] WORKGROUP = Deine Netzwerkgruppe –> anpassen und dann folgende Zeilen eintragen client min protocol = NT1
server min protocol = NT1
ntlm auth = ntlmv1-permitted (muss für alle Linux Rechner eingerichten werden) danach noch das Password und Username Jetzt Lnux neu starten oder Sudo smbpasswd -a username Das Paswort wird 2x abgefragt und man sieht nicht was man tippt! Jetzt Lnux neu starten oder sudo systemctl stop nmbd.service
sudo systemctl stop smbd.service
sudo systemctl start nmbd.service
sudo systemctl start smbd.service Kurze Zeit warten und dann sollte es laufen.
|
sebigbos
(Themenstarter)
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
Calimero2: das hab ich schon hinter mir, danke. chr123: keine syntaxfehler in der smb.conf. smbclient gibt aus:
smbXcli_negprot_smb1_done: No compatible protocol selected by server.
protocol negotiation failed: NT_STATUS_INVALID_NETWORK_RESPONSE Was heißt hier: kein kompatibles Protokoll??
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
Diese Fehlermeldung habe ich noch nie gesehen. Läuft denn überhaupt Samba? Gehen wir noch mal Schritt für Schritt durch (bitte sämtliche Ein- und Ausgaben zeigen): 1. System aktualisieren:
| sudo apt update && sudo apt full-upgrade
|
2. smb.conf zeigen:
3. Status des Samba Dienstes abfragen:
| systemctl status smbd.service
|
4. Prüfen, ob das Share Verzeichnis vorhanden ist:
| getfacl /media/sebigbos/F/Temp/
getfacl /media/sebigbos/F/
getfacl /media/sebigbos/
getfacl /media/
|
5. Prüfen, ob Freigaben mit net usershare vorhanden sind:
|
sebigbos
(Themenstarter)
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
wird aber ein langer post....😉 1.
sudo apt update && sudo apt full-upgrade
[sudo] Passwort für sebigbos:
OK:1 http://de.archive.ubuntu.com/ubuntu focal InRelease
OK:2 http://security.ubuntu.com/ubuntu focal-security InRelease
OK:3 http://ppa.launchpad.net/teejee2008/ppa/ubuntu focal InRelease
OK:4 http://ppa.launchpad.net/ubuntustudio-ppa/backports/ubuntu focal InRelease
OK:5 https://brave-browser-apt-release.s3.brave.com stable InRelease
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Alle Pakete sind aktuell.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Paketaktualisierung (Upgrade) wird berechnet... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
deluge-common gir1.2-appindicator3-0.1 gir1.2-rsvg-2.0 ktorrent-data libboost-python1.71.0 libkf5plotting5 libkf5syndication5abi1
libkf5torrent6 libkf5webkit5 libktorrent-l10n libmikmod3 libsdl-mixer1.2 libsdl-ttf2.0-0 linux-headers-5.11.0-38-generic
linux-headers-5.4.0-89 linux-headers-5.4.0-89-lowlatency linux-hwe-5.11-headers-5.11.0-38 linux-image-5.11.0-38-generic
linux-image-5.4.0-89-lowlatency linux-modules-5.11.0-38-generic linux-modules-5.4.0-89-lowlatency
linux-modules-extra-5.11.0-38-generic mc-data openastro.org-data python3-geoip python3-libtorrent python3-mako python3-markupsafe
python3-pygame python3-rencode python3-setproctitle python3-swisseph qml-module-qt-labs-platform
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. 2.
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 = HG_66
client min protocol = NT1
client max protocol = NT1
client min protocol = NT1
client max 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 = yes
; browseable = yes
; create mask = 0600
; directory mask = 0700
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
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 = yes
# 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
[Temp]
# Pfad zu Verzeichnis
path = /media/sebigbos/F/Temp/
# Auch Gäste dürfen auf die Freigabe zugreifen.
guest ok = yes
public = yes
map to guest = bad user
guest account = nobody
# Angemeldete Benutzer dürfen auch schreiben.
writeable = yes
# Freigabe ist direkt sichtbar (Default)
browseable = yes
# Rechte bei neuen Dateien/Verzeichnissen beschränken ("maskieren")
create mask = 0777
directory mask = 0777
# Benutzer und Gruppenzugehörigkeit (nur wirksam bei "unix extensions = no")
# Egal mit welchen Daten sich ein Benutzer am Server anmeldet,
# die Daten werden lokal mit diesen Dateizugehörigkeiten abgelegt.
force user = user
force group = users 3.
systemctl status smbd.service
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2022-01-10 08:38:58 CET; 5h 19min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1418 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Main PID: 1422 (smbd)
Status: "smbd: ready to serve connections..."
Tasks: 4 (limit: 9363)
Memory: 18.5M
CGroup: /system.slice/smbd.service
├─1422 /usr/sbin/smbd --foreground --no-process-group
├─1436 /usr/sbin/smbd --foreground --no-process-group
├─1437 /usr/sbin/smbd --foreground --no-process-group
└─1441 /usr/sbin/smbd --foreground --no-process-group
Jan 10 08:38:56 oy systemd[1]: Starting Samba SMB Daemon...
Jan 10 08:38:58 oy systemd[1]: Started Samba SMB Daemon. 4.
getfacl /media/sebigbos/F/Temp/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/sebigbos/F/Temp/
# owner: sebigbos
# group: sambashare
user::rwx
group::rwx
other::rwx
sebigbos@oy:~$ getfacl /media/sebigbos/F/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/sebigbos/F/
# owner: root
# group: root
user::rwx
group::rwx
other::rwx
sebigbos@oy:~$ getfacl /media/sebigbos/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/sebigbos/
# owner: root
# group: root
user::rwx
user:sebigbos:r-x
group::---
mask::r-x
other::---
sebigbos@oy:~$ getfacl /media/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x 5.
net usershare info Letzteres gab keinen output, aber auch keine Fehlermeldung.
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
Ok, soweit so gut. Grundsätzlich würde ich die nicht mehr relevanten Pakete entfernen:
| sudo apt autoremove --purge
|
Zum Problem: deine smb.conf hat ein paar Fehler. Ändere mal folgende Sachen: # Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = HG_66 # Passt die Workgroup?
client min protocol = NT1 # Eintrag ist ok!
client max protocol = NT1 # Eintrag löschen!
client min protocol = NT1 # Eintrag ändern in server min protocol = NT1
client max protocol = NT1 # Eintrag löschen!
ntlm auth = ntlmv1-permitted # Eintrag löschen! Kontrolle mit:
| testparm -vs | egrep 'protocol|ntlm'
|
Zum Share in der smb.conf. Den kompletten Eintrag hier löschen:
[Temp]
# Pfad zu Verzeichnis
path = /media/sebigbos/F/Temp/
# Auch Gäste dürfen auf die Freigabe zugreifen.
guest ok = yes
public = yes
map to guest = bad user
guest account = nobody
# Angemeldete Benutzer dürfen auch schreiben.
writeable = yes
# Freigabe ist direkt sichtbar (Default)
browseable = yes
# Rechte bei neuen Dateien/Verzeichnissen beschränken ("maskieren")
create mask = 0777
directory mask = 0777
# Benutzer und Gruppenzugehörigkeit (nur wirksam bei "unix extensions = no")
# Egal mit welchen Daten sich ein Benutzer am Server anmeldet,
# die Daten werden lokal mit diesen Dateizugehörigkeiten abgelegt.
force user = user
force group = users ... und durch das folgende Minimalbeispiel ersetzen:
[Temp]
path = /media/sebigbos/F/Temp/
guest ok = yes
guest only = yes Danach Kontrolle via:
| smbclient -L localhost -U guest -N
|
Hinweis:
sebigbos@oy:~$ getfacl /media/sebigbos/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/sebigbos/
# owner: root
# group: root
user::rwx
user:sebigbos:r-x
group::---
mask::r-x
other::---
Ich denke, dass Dritte (others) keine lokalen Rechte haben. Insofern dürfte smbclient zwar funktionieren, aber für den eigentlichen Zugriff fehlen die Rechte. Darüber kümmern wir uns aber später. Erstmal muss die Freigabe soweit funktionieren und in deinem Netzwerk erreichbar sein.
|
sebigbos
(Themenstarter)
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
HG_66 stimmt, kennst du die berühmte Heilig-Geist-WG in Rosenheim nicht??? 😉 nach den [global] Änderungen bekomme ich:
testparm -vs | egrep 'protocol|ntlm'
Load smb config files from /etc/samba/smb.conf
Global parameter map to guest found in service section!
Global parameter guest account found in service section!
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
client ipc max protocol = default
client ipc min protocol = default
client max protocol = default
client min protocol = NT1
ntlm auth = ntlmv2-only
server max protocol = SMB3
server min protocol = NT1
und nach der Änderung von [Temp]:
smbclient -L localhost -U guest -N
Sharename Type Comment
--------- ---- -------
print$ Disk Printer Drivers
Temp Disk
IPC$ IPC IPC Service (oy server (Samba, Ubuntu))
HP-LaserJet-CP1525N Printer Hewlett-Packard HP LaserJet CP1525N
HP-LaserJet-1200 Printer Hewlett-Packard HP LaserJet 1200
Reconnecting with SMB1 for workgroup listing.
Server Comment
--------- -------
Workgroup Master
--------- -------
HG_66 OY /media/sebigbos/F/Temp erscheint in Dolphin immer noch als nicht freigegeben. Unter Netzwerk bekomme ich den Ordner aber jetzt angezeigt, bloß komme ich nicht rein.
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
sebigbos schrieb: HG_66 stimmt, kennst du die berühmte Heilig-Geist-WG in Rosenheim nicht??? 😉
Neee 😎
Unter Netzwerk bekomme ich den Ordner aber jetzt angezeigt, bloß komme ich nicht rein.
OK, das mit dem nicht reinkommen wird an den lokalen Rechten liegen, wo others keinen Zugriff hat. Was genau ist das für ein Verzeichnis? Wird da eine externe Festplatte oder vergleichbar gemountet? Unter /media/$USERNAME wirken immer ACLs. D. h. Hier etwas dauerhaft zu ändern, kann etwas kompliziert sein. Alternativ kann man natürlich den Benutzer sebigbos als SMB Benutzer mit einem gesonderten Passwort anlegen und die Freigabe nur für diesen Benutzer freigeben.
|
sebigbos
(Themenstarter)
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
Dieses Rechte-Zeug ist schwer begreiflich. Wenn es da eine Möglichkeit gäbe, linux ein bißchen lässiger zu machen..... So oder so: ich bin nicht "others". Ich bin ich. Mir gehört der Laden. Ich will auf meine eigenen Ordner zugreifen, das sollte doch ohne Spagat möglich sein. Momentan läut hier standardmäßig nur eine Festplatte mit 4 Partitionen, "F" ist eine davon, über fstab fix gemountet, und Temp ist einfach ein Ordner.
Unter /media/$USERNAME wirken immer ACLs. D. h. Hier etwas dauerhaft zu ändern, kann etwas kompliziert sein.
Wo soll ich denn das hinmounten, damit das einfach ist?
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
sebigbos schrieb: So oder so: ich bin nicht "others". Ich bin ich. Mir gehört der Laden. Ich will auf meine eigenen Ordner zugreifen, das sollte doch ohne Spagat möglich sein.
Sehr gut. Das kriegen wir hin.
Momentan läut hier standardmäßig nur eine Festplatte mit 4 Partitionen, "F" ist eine davon, über fstab fix gemountet, und Temp ist einfach ein Ordner.
Kannst du bitte deinen fstab Eintrag zeigen?
Wo soll ich denn das hinmounten, damit das einfach ist?
Die ACLs wirken immer nur ab Ordner /media/$USERNAME: sebigbos@oy:~$ getfacl /media/sebigbos/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/sebigbos/
# owner: root
# group: root
user::rwx
user:sebigbos:r-x
group::---
mask::r-x
other::---
sebigbos@oy:~$ getfacl /media/
getfacl: Entferne führende '/' von absoluten Pfadnamen
# file: media/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x Wenn du z. B. nach /media/ablage mountest, wirken keine ACL. Z. B.
| sudo mkdir /media/ablage
sudo chown $USER:$USER /media/ablage
toch /media/ablage/test123
# Kontrolle
getfacl /media/ablage
getfacl /media/ablage/test123
|
|
sebigbos
(Themenstarter)
Anmeldungsdatum: 12. Mai 2020
Beiträge: 102
|
Ich hab das so gemacht (/media/sebigbos/F), weil ich dachte, das gehört so. Ich bin ja der einzige user auf dem Rechner. Ich könnte also einfach auch auf /media/F mounten? Wenn das die Dinge unkomplizierter macht, mach ich das sofort. cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sdb1 during installation
UUID=999ba884-5f05-4774-b216-4e899f92fd44 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb2 during installation
UUID=f6a715cf-2687-4677-9844-753263c1d462 /home ext4 defaults 0 2
/swapfile none swap sw 0 0
#nict-ext-partitionen:
UUID=e4197790-81e0-d701-8000-779081e0d701 /media/sebigbos/E ext4 defaults 0 0
UUID=3b293189-b625-47c6-94ef-bfe3e572e0ed /media/sebigbos/F ext4 defaults 0 0 Übrigens ist das Ziel der ganzen Aktion ja, daß ich von meinen anderen beiden Rechnern (xp und Ubuntu) aus auf Drucker und ausgewählte Verzeichnisse des Haupt-PCs zugreifen kann. Und ich kann jetzt schon die Drucker sehen im windows-Netzwerk und das F/Temp-Verzeichnis auch, wobei ich ins Verzeichnis nicht reinkomme. Wird schon besser....😉
|
chr123
Anmeldungsdatum: 19. Juli 2018
Beiträge: 1632
|
Alles klar. Dann wäre mein Vorschlag: Die Ordner E und F direkt unter /media anlegen und Rechte korrigieren.
| sudo mkdir /media/E
sudo chown $USER:$USER /media/E
sudo mkdir /media/F
sudo chown $USER:$USER /media/F
|
Den Eintrag in der fstab korrigieren:
UUID=e4197790-81e0-d701-8000-779081e0d701 /media/E ext4 defaults 0 0
UUID=3b293189-b625-47c6-94ef-bfe3e572e0ed /media/F ext4 defaults 0 0 Zum Schluss noch den Eintrag in der smb.conf korrigieren:
[Temp]
path = /media/F/Temp
guest ok = yes
|