Alte Einhängepunkte zusätzlich herstellen

Hi zusammen,

mir gefällt es am Linuxclient7 nicht so gut, dass aktuell die persönlichen Verzeichnisse nicht mehr mit den Standardordnern »Dokumente«, »Downloads« usw. verknüpft sind. Ich muss zugeben, ich bin noch recht neu im Geschäft und daher könnte der nachfolgende Versuch etwas naiv und deletantisch daher kommen …

Ich hatte mir überlegt, dass ich im Verzeichnis /etc/linuxmuster-linuxclient7/onSessionStarted.d einfach ein Skript erstelle, das die eingehängten Verzeichnisse dann mit ln -s in die entsprechenden Standardverzeichnisse verknüpft. Allerdings bin ich mir nicht mal sicher, ob das die richtige Stelle ist und welcher Benutzer dieses Skript ausführt, sodass die Variable $USER vermutlich gar nicht die richtige Information enthält. Anyway, hier mal das Skript von dem ich hoffe, dass es halbwegs in die richtige Richtung geht (die ausgenommenen Bentuzernamen sind lokale Benutzer):

if [ "$USER" != "lokal" ] && [ "$USER" != "linuxadmin" ]; then
  # Lösche die standardverzeichnisse im Homedirectory
  rm -R /home/$USER/Bilder
  rm -R /home/$USER/Dokumente
  rm -R /home/$USER/Downloads
  rm -R /home/$USER/Musik
  rm -R /home/$USER/Schreibtisch
  rm -R /home/$USER/Video
  rm -R /home/$USER/Vorlagen

  # Erstelle Netzwerkverzeichnisse fals sie fehlen
  if [ ! -d /home/$USER/media/$USER/Bilder ] then
    mkdir /home/$USER/media/$USER/Bilder
  fi
  if [ ! -d /home/$USER/media/$USER/Dokumente ] then
    mkdir /home/$USER/media/$USER/Dokumente
  fi
  if [ ! -d /home/$USER/media/$USER/Downloads ] then
    mkdir /home/$USER/media/$USER/Downloads
  fi
  if [ ! -d /home/$USER/media/$USER/Musik ] then
    mkdir /home/$USER/media/$USER/Musik
  fi
  if [ ! -d /home/$USER/media/$USER/Schreibtisch ] then
    mkdir /home/$USER/media/$USER/Schreibtisch
  fi
  if [ ! -d /home/$USER/media/$USER/Video ] then
    mkdir /home/$USER/media/$USER/Video
  fi
  if [ ! -d /home/$USER/media/$USER/Vorlagen ] then
    mkdir /home/$USER/media/$USER/Vorlagen
  fi

  # Linke das Netzwerklaufwerk in die persönlichen Verzeichnisse
  ln -s /home/$USER/media/$USER/Bilder /home/$USER/Bilder
  ln -s /home/$USER/media/$USER/Dokumente /home/$USER/Dokumente
  ln -s /home/$USER/media/$USER/Downloads /home/$USER/Downloads
  ln -s /home/$USER/media/$USER/Musik /home/$USER/Musik
  ln -s /home/$USER/media/$USER/Schreibtisch /home/$USER/Schreibtisch
  ln -s /home/$USER/media/$USER/Video /home/$USER/Video
  ln -s /home/$USER/media/$USER/Vorlagen /home/$USER/Vorlagen

  # Linke die Tauschverzeichnisse
  ln -s /home/$USER/media/$USER /home/$USER/_HomeAufServer_
  ln -s /home/$USER/media/Tauschen\ \(T\:\) /home/$USER/_TauschAufServer_
fi

Ich bitte um eure Unterstützung :slight_smile:
Wie gesagt, Ziel soll es sein, dass im Persönlichen Ordner unter Dokumente wieder das Serververzeichnis des Benutzers erscheint. Selbiges gilt für die übrigen Verzeichnisse.

Danke vorab!
Liebe Grüße
Patrick

Hi,

Ich benutze das hier: (im onLogin.d)

for dir in Dokumente Musik Bilder Videos Downloads
do
  rmdir $HOME/$dir 2> /dev/null
  mkdir "$SERVERHOME/$dir" 2> /dev/null
  ln -sfn "$SERVERHOME/$dir" "$HOME/$dir"
done

VG, Dorian

Hi,
ich werds heute Abend ausprobieren, danke! Wenn ich das richtig überblicke fehlen so noch die Ordner __HomeAufServer__ und __TauschAufServer__. __HomeAufServer__ sollte kein Problem sein mit den Zeilen

rmdir $HOME/__HomeAufServer__ 2> /dev/null
ln -sfn "$SERVERHOME" "$HOME/__HomeAufServer__ "

am Ende, oder? Aber für __TauschAufServer__ bräuchte ich ne andere Servervariable, oder? Gibt es sowas wie $SERVERTAUSCH? Dann ginge sowas in der Art:

rmdir $HOME/__TauschAufServer__ 2> /dev/null
ln -sfn "$SERVERTAUSCH" "$HOME/__TauschAufServer__ "

Danke schonmal!
Liebe Grüße
Patrick

Hallo Patrick,

Tausch_Auf_Server war ein gemurkstes Konstrukt, das sowohl Klassen als auch Projektlaufwerke enthalten hat. Alle Tauschlaufwerke (Projekte, Klassen, …) werden nach $HOME/media gemounted und sind dadurch in Nautilus in der linken sidebar sichtbar. Ähnlich wie bei Windows. Wofür brauchst du den zusätzlichen Link?

VG, Dorian

Hi Dorian,
ehrlich gesagt fand ich das „Gemurkse“ gar nicht so verkehrt, alles an einem Ort zu haben. Meine Liebe für Windows hält sich in Grenzen… Und ja, ich hab die schon gefunden, aber einige Skripte arbeiten mit den alten Pfaden und ich dachte, es wär leichter die da hinzumounten wo sie waren, anstatt die Skripte zu ändern. Außerdem müssten sich dann unsere Kolleg*innen nicht umstellen.
LG Patrick

Hi Patrick,

Wenn du unbedingt die alte Struktur haben willst, kannst du dir auch dafür ein Script schreiben, das einfach entsprechende Symlinks erstellt. So in der Richtung:

  1. Ordner Tausch_auf_Server im Home erstellen
  2. Für alle Ordner in Projekte (P:) einen Symlink erstellenn
  3. Für alle Ordner in Shares (T:)/classes einen Symlink erstellen

VG,
Dorian

1 Like

Hi Dorian,

ich habe das hier getestet:

leider ohne Erfolg. Die Datei heißt /etc/linuxmuster-linuxclient7/onLogin.d/01_verzeichnismount.sh mit den Rechten 755. Sollte eigentlich passen, oder?

Muss bei rmdir noch ein -r rein?

Genau das, was du vorschlägst hatte ich ja mit dem Skript oben ja vor, nur mir fehlt der Pfad für das Verzeichnis Projekte (P:) bzw. Tauschen (T:), denn das liegt ja in home/$USER/media... und beim mounten ist die Variable $USER ja nicht derjenige, der sich angemeldet hat.

Ich hatte ja n paar Tage Zeit drüber nachzudenken und find es jetzt doch ganz in Ordnung, dass Tauschen und Projekte als „Laufwerke“ eingebunden sind. Von daher reichts mir auch, wenn die persönlichen Ordner direkt verknüpft werden, aber das geht leider auch noch nicht :frowning:

Tut mir leid, dass ich dich/euch damit nochmal belästigen muss…

LG Patrick

Hi nochmal!

Irgendwas klemmt da noch. Wenn ich dieses Skript manuell ausführe

/etc/linuxmuster-linuxclient7/onLogin.d/dasSkriptVonOben.sh

dann funktioniert es wunderbar. Aber leider passiert es nicht automatisch beim Login. Was mach ich falsch?

LG Patrick

Hi Patrick,

Meldest du dich als AD-Nutzer an? Bei der Anmeldung als linuxadmin (bzw. lokaler Nutzer) werden die Scripte nicht ausgeführt.
Falls ja, was sagt sudo linuxmuster-linuxclient7 print-logs -c?

VG, Dorian

Hi Dorian,

ja ich habs schon als AD-Nutzer gemacht :slight_smile: Den Befehl hab ich dann aber wieder als linuxadmin ausgeführt - sudo geht ja bei AD-Nutzern nicht.

Jedenfalls kommen da fast 4000 Zeilen Text raus, ich hab dir mal das Ende hier angehängt. Ich hoffe, das ist der richtige Teil. Teil2 kommt im nächsten Post…

linuxmuster-linuxclient7: [INFO] ====== onBoot started ======
linuxmuster-linuxclient7: [INFO] Patching /etc/krb5.keytab
linuxmuster-linuxclient7: [DEBUG] N117BIB-PCL03$ was changed to N117BIB-PCL03$
linuxmuster-linuxclient7: message repeated 2 times: [ [DEBUG] N117BIB-PCL03$ was changed to N117BIB-PCL03$]
linuxmuster-linuxclient7: [DEBUG] N117BIB-PCL03 was changed to N117BIB-PCL03
linuxmuster-linuxclient7: message repeated 2 times: [ [DEBUG] N117BIB-PCL03 was changed to N117BIB-PCL03]
linuxmuster-linuxclient7: [DEBUG] n117bib-pcl03.linuxmuster.lan was changed to n117bib-pcl03.linuxmuster.lan
systemd[1]: Started Samba SMB Daemon.
smbd[1220]: [2021/08/17 21:10:47.855138,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
smbd[1220]:   daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
linuxmuster-linuxclient7: [DEBUG] n117bib-pcl03.linuxmuster.lan was changed to n117bib-pcl03.linuxmuster.lan
linuxmuster-linuxclient7: [DEBUG] n117bib-pcl03.linuxmuster.lan was changed to n117bib-pcl03.linuxmuster.lan
linuxmuster-linuxclient7: [DEBUG] N117BIB-PCL03 was changed to N117BIB-PCL03
linuxmuster-linuxclient7: message repeated 2 times: [ [DEBUG] N117BIB-PCL03 was changed to N117BIB-PCL03]
linuxmuster-linuxclient7: [DEBUG] n117bib-pcl03.linuxmuster.lan was changed to n117bib-pcl03.linuxmuster.lan
linuxmuster-linuxclient7: message repeated 2 times: [ [DEBUG] n117bib-pcl03.linuxmuster.lan was changed to n117bib-pcl03.linuxmuster.lan]
linuxmuster-linuxclient7: [INFO] Trying to overwrite /etc/krb5.keytab
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [WARNING] Uid could not be found! Continuing anyway!
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/N117BIB-PCL03$/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * Executing /usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=N117BIB-PCL03$,domain=LINUXMUSTER.LAN //server.linuxmuster.lan/sysvol /srv/samba/N117BIB-PCL03$/sysvol 
linuxmuster-linuxclient7: [DEBUG] * Trying to mount...
kernel: [   12.903507] FS-Cache: Loaded
kernel: [   12.935549] FS-Cache: Netfs 'cifs' registered for caching
kernel: [   12.938765] Key type cifs.spnego registered
kernel: [   12.938778] Key type cifs.idmap registered
kernel: [   12.939758] CIFS: Attempting to mount \\server.linuxmuster.lan\sysvol
cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=server.linuxmuster.lan;ip4=10.0.0.1;sec=krb5;uid=0x0;creduid=0x0;user=N117BIB-PCL03$;pid=0x4e3
cifs.upcall: ver=2
cifs.upcall: host=server.linuxmuster.lan
cifs.upcall: ip=10.0.0.1
cifs.upcall: sec=1
cifs.upcall: uid=0
cifs.upcall: creduid=0
cifs.upcall: user=N117BIB-PCL03$
cifs.upcall: pid=1251
cifs.upcall: get_cachename_from_process_env: pid == 0
cifs.upcall: get_existing_cc: default ccache is FILE:/tmp/krb5cc_0
cifs.upcall: handle_krb5_mech: getting service ticket for server.linuxmuster.lan
cifs.upcall: handle_krb5_mech: obtained service ticket
cifs.upcall: Exit status 0
linuxmuster-linuxclient7: [DEBUG] * Success!
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [INFO] === Running local hook onBoot ===
onBoot[1281]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
onBoot[1283]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
onBoot[1285]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
linuxmuster-linuxclient7: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onBoot.d/00_example.sh ==
onBoot[1288]: onBoot.d Hook called with env:
onBoot[1288]: Sysvol: /srv/samba/N117BIB-PCL03$/sysvol
onBoot[1288]: Domain: linuxmuster.lan
onBoot[1288]: Server hostname: server.linuxmuster.lan
onBoot[1288]: Room: n117bib
onBoot[1288]: Hardware group: ubuntu__setup
linuxmuster-linuxclient7: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onBoot.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running local hook onBoot ===
linuxmuster-linuxclient7: [INFO] === Running remote hook onBoot ===
onBoot[1299]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
onBoot[1301]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [WARNING] Uid could not be found! Continuing anyway!
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/N117BIB-PCL03$/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
onBoot[1310]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
onBoot[1312]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
onBoot[1314]: id: »N117BIB-PCL03$“: Einen solchen Benutzer gibt es nicht
linuxmuster-linuxclient7: [WARNING] Exception when querying groups of user N117BIB-PCL03$, it probaply does not exist
linuxmuster-linuxclient7: [INFO] == Executing script /srv/samba/N117BIB-PCL03$/sysvol/linuxmuster.lan/scripts/default-school/lmn/linux/sysstart.sh ==
linuxmuster-linuxclient7: [INFO] ==> Script /srv/samba/N117BIB-PCL03$/sysvol/linuxmuster.lan/scripts/default-school/lmn/linux/sysstart.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] == Executing script /srv/samba/N117BIB-PCL03$/sysvol/linuxmuster.lan/scripts/default-school/custom/linux/sysstart.sh ==
linuxmuster-linuxclient7: [INFO] ==> Script /srv/samba/N117BIB-PCL03$/sysvol/linuxmuster.lan/scripts/default-school/custom/linux/sysstart.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running remote hook onBoot ===
linuxmuster-linuxclient7: [INFO] ======> onBoot end ======


linuxmuster-linuxclient7: [INFO] ====== onLoginLogoutAsRoot started with PAM_TYPE=open_session PAM_RHOST=None PAM_RUSER=None PAM_SERVICE=gdm-launch-environment PAM_TTY=/dev/tty1 PAM_USER=gdm ======
linuxmuster-linuxclient7: [INFO] ==== gdm is not an AD user, exiting ====
linuxmuster-linuxclient7: [INFO] ======> onLoginLogoutAsRoot end ====


linuxmuster-linuxclient7: [INFO] ====== onLoginLogoutAsRoot started with PAM_TYPE=open_session PAM_RHOST=None PAM_RUSER=None PAM_SERVICE=gdm-password PAM_TTY=/dev/tty2 PAM_USER=pwagner ======
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/N117BIB-PCL03$/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [INFO] === Running local hook onLoginAsRoot ===
linuxmuster-linuxclient7: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onLoginAsRoot.d/00_example.sh ==
linuxmuster-linuxclient7: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onLoginAsRoot.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running local hook onLoginAsRoot ===
linuxmuster-linuxclient7: [INFO] === Running remote hook onLoginAsRoot ===
linuxmuster-linuxclient7: [INFO] ===> Finished running remote hook onLoginAsRoot ===
linuxmuster-linuxclient7: [INFO] ======> onLoginLogoutAsRoot end ======


linuxmuster-linuxclient7: [INFO] ====== onLogin started ======
kernel: [  264.004155] kauditd_printk_skb: 12 callbacks suppressed
kernel: [  264.004157] audit: type=1400 audit(1629227698.538:351): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/1992/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
kernel: [  264.008929] audit: type=1400 audit(1629227698.542:352): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/1993/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
linuxmuster-linuxclient7: [INFO] Cleaning linuxadmin gtk bookmarks
kernel: [  264.026902] audit: type=1400 audit(1629227698.558:353): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/1996/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
kernel: [  264.042326] audit: type=1400 audit(1629227698.574:354): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/1998/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
kernel: [  264.101137] audit: type=1400 audit(1629227698.634:355): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2000/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
dbus-daemon[1870]: [session uid=1095202852 pid=1870] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.1' (uid=1095202852 pid=1865 comm="/usr/libexec/tracker-extract " label="unconfined")
systemd[1857]: Starting Virtual filesystem metadata service...
dbus-daemon[1870]: [session uid=1095202852 pid=1870] Successfully activated service 'org.gtk.vfs.Metadata'
systemd[1857]: Started Virtual filesystem metadata service.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/teachers/pwagner
systemd[1]: Starting SSSD PAM Service responder private socket.
systemd[1]: Starting SSSD PAM Service responder socket.
systemd[1]: Starting SSSD Sudo Service responder...
sssd_check_socket_activated_responders[2009]: (Tue Aug 17 21:14:58:703595 2021) [sssd] [main] (0x0010): Misconfiguration found for the pam responder.
sssd_check_socket_activated_responders[2009]: The pam responder has been configured to be socket-activated but it's still mentioned in the services' line in /etc/sssd/sssd.conf.
sssd_check_socket_activated_responders[2009]: Please, consider either adjusting your services' line in /etc/sssd/sssd.conf or disabling the pam's socket by calling:
sssd_check_socket_activated_responders[2009]: "systemctl disable sssd-pam.socket"
chown[2011]: /bin/chown: Zugriff auf '/var/log/sssd/sssd_sudo.log' nicht möglich: Datei oder Verzeichnis nicht gefunden
systemd[1]: sssd-pam-priv.socket: Control process exited, code=exited, status=17/n/a
systemd[1]: sssd-pam-priv.socket: Failed with result 'exit-code'.
systemd[1]: Failed to listen on SSSD PAM Service responder private socket.
systemd[1]: Dependency failed for SSSD PAM Service responder socket.
systemd[1]: sssd-pam.socket: Job sssd-pam.socket/start failed with result 'dependency'.
systemd[1]: Started SSSD Sudo Service responder.
systemd[1]: sssd-pam.socket: Killing process 2010 (systemd) with signal SIGKILL.
systemd[1]: sssd-pam.socket: Control process exited, code=killed, status=9/KILL
systemd[1]: sssd-pam.socket: Failed with result 'signal'.
systemd[1]: Closed SSSD PAM Service responder socket.
sssd_sudo[2012]: Starting up
kernel: [  264.278525] audit: type=1400 audit(1629227698.810:356): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2008/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  264.290941] audit: type=1400 audit(1629227698.822:357): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2008/cmdline" pid=1327 comm="sssd_pam" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/teachers/pwagner
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server/default-school/teachers/pwagner to /home/pwagner/media/pwagner (H:)
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * Executing /usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/teachers/pwagner /home/pwagner/media/pwagner (H:) 
linuxmuster-linuxclient7: [DEBUG] * Trying to mount...
kernel: [  264.432105] audit: type=1400 audit(1629227698.966:358): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2023/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  264.438211] CIFS: Attempting to mount \\server\default-school
cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=server.linuxmuster.lan;ip4=10.0.0.1;sec=krb5;uid=0x41477824;creduid=0x41477824;user=pwagner;pid=0x7e6
cifs.upcall: ver=2
cifs.upcall: host=server.linuxmuster.lan
cifs.upcall: ip=10.0.0.1
cifs.upcall: sec=1
cifs.upcall: uid=1095202852
cifs.upcall: creduid=1095202852
cifs.upcall: user=pwagner
cifs.upcall: pid=2022
cifs.upcall: get_cachename_from_process_env: pathname=/proc/2022/environ
cifs.upcall: get_cachename_from_process_env: cachename = FILE:/tmp/krb5cc_1095202852_mpTJ3K
cifs.upcall: get_existing_cc: default ccache is FILE:/tmp/krb5cc_1095202852_mpTJ3K
cifs.upcall: handle_krb5_mech: getting service ticket for server.linuxmuster.lan
cifs.upcall: handle_krb5_mech: obtained service ticket
cifs.upcall: Exit status 0
linuxmuster-linuxclient7: [DEBUG] * Success!
linuxmuster-linuxclient7: [DEBUG] * hiding parent dir /home/pwagner/media/pwagner (H:)/../../.hidden
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] Calculating mountpoint of //server/default-school/teachers/pwagner
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] Trying to mount '//server/default-school/teachers/pwagner' to '/home/pwagner/media/pwagner (H:)'
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] * Executing '/usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/teachers/pwagner /home/pwagner/media/pwagner (H:)'
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] * Trying to mount...
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] * Success!
/usr/lib/gdm3/gdm-x-session[2014]: [DEBUG] * hiding parent dir /home/pwagner/media/pwagner (H:)/../../.hidden
linuxmuster-linuxclient7: [DEBUG] Saving export SERVERHOME=/home/pwagner/media/pwagner (H:) to tmp file
kernel: [  264.598940] audit: type=1400 audit(1629227699.130:359): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2029/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
kernel: [  264.622139] audit: type=1400 audit(1629227699.154:360): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2032/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/pwagner/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * Executing /usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server.linuxmuster.lan/sysvol /srv/samba/pwagner/sysvol 
linuxmuster-linuxclient7: [DEBUG] * Trying to mount...
kernel: [  264.763968] CIFS: Attempting to mount \\server.linuxmuster.lan\sysvol
kernel: [  264.769513] FS-Cache: Duplicate cookie detected
kernel: [  264.769517] FS-Cache: O-cookie c=000000004a66c40a [p=0000000027eeee53 fl=222 nc=0 na=1]
kernel: [  264.769521] FS-Cache: O-cookie d=00000000a0b76c6e n=00000000d2457f0b
kernel: [  264.769523] FS-Cache: O-key=[6] '737973766f6c'
kernel: [  264.769528] FS-Cache: N-cookie c=00000000e970fc98 [p=0000000027eeee53 fl=2 nc=0 na=1]
kernel: [  264.769530] FS-Cache: N-cookie d=00000000a0b76c6e n=00000000a240cbaa
kernel: [  264.769531] FS-Cache: N-key=[6] '737973766f6c'
linuxmuster-linuxclient7: [DEBUG] * Success!
/usr/lib/gdm3/gdm-x-session[2033]: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
/usr/lib/gdm3/gdm-x-session[2033]: [DEBUG] Trying to mount '//server.linuxmuster.lan/sysvol' to '/srv/samba/pwagner/sysvol'
/usr/lib/gdm3/gdm-x-session[2033]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2033]: [DEBUG] * Executing '/usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server.linuxmuster.lan/sysvol /srv/samba/pwagner/sysvol'
/usr/lib/gdm3/gdm-x-session[2033]: [DEBUG] * Trying to mount...
/usr/lib/gdm3/gdm-x-session[2033]: [DEBUG] * Success!
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Saving export SYSVOL=/srv/samba/pwagner/sysvol to tmp file
linuxmuster-linuxclient7: [INFO] === Parsing policy [CN={12C680AA-3706-4A04-BC37-A7A969EF3C69},CN=Policies,CN=System,DC=linuxmuster,DC=lan;0] ===
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Trying to mount //linuxmuster.lan/sysvol to /srv/samba/pwagner/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * The mountpoint is already mounted.
/usr/lib/gdm3/gdm-x-session[2064]: [DEBUG] Calculating mountpoint of //linuxmuster.lan/sysvol
/usr/lib/gdm3/gdm-x-session[2064]: [DEBUG] Trying to mount '//linuxmuster.lan/sysvol' to '/srv/samba/pwagner/sysvol'
/usr/lib/gdm3/gdm-x-session[2064]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2064]: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [INFO] == Parsing a drive policy! ==
linuxmuster-linuxclient7: [DEBUG] Testing filter: {name: teachers, bool: AND, userContext: 1, type: FilterGroup}
linuxmuster-linuxclient7: [DEBUG] Testing filter: {name: teachers, bool: AND, userContext: 1, type: FilterGroup}
linuxmuster-linuxclient7: [INFO] Found shares:
linuxmuster-linuxclient7: [INFO] * Programme#011#011| K#011| \\server\default-school\program#011| [{name: teachers, bool: AND, userContext: 1, type: FilterGroup}]
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/program
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/program
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server/default-school/program to /home/pwagner/media/Programme (K:)
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * Executing /usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/program /home/pwagner/media/Programme (K:) 
linuxmuster-linuxclient7: [DEBUG] * Trying to mount...
kernel: [  265.322821] CIFS: Attempting to mount \\server\default-school
linuxmuster-linuxclient7: [DEBUG] * Success!
linuxmuster-linuxclient7: [DEBUG] * hiding parent dir /home/pwagner/media/Programme (K:)/../../.hidden
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] Calculating mountpoint of //server/default-school/program
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] Trying to mount '//server/default-school/program' to '/home/pwagner/media/Programme (K:)'
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] * Executing '/usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/program /home/pwagner/media/Programme (K:)'
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] * Trying to mount...
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] * Success!
/usr/lib/gdm3/gdm-x-session[2080]: [DEBUG] * hiding parent dir /home/pwagner/media/Programme (K:)/../../.hidden
linuxmuster-linuxclient7: [INFO] * Schüler#011#011| S#011| \\server\default-school\students#011| [{name: teachers, bool: AND, userContext: 1, type: FilterGroup}]
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/students
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/students
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server/default-school/students to /home/pwagner/media/Schüler (S:)
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * Executing /usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/students /home/pwagner/media/Schüler (S:) 
linuxmuster-linuxclient7: [DEBUG] * Trying to mount...
kernel: [  265.512326] CIFS: Attempting to mount \\server\default-school
linuxmuster-linuxclient7: [DEBUG] * Success!
linuxmuster-linuxclient7: [DEBUG] * hiding parent dir /home/pwagner/media/Schüler (S:)/../../.hidden
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] Calculating mountpoint of //server/default-school/students
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] Trying to mount '//server/default-school/students' to '/home/pwagner/media/Schüler (S:)'
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] * Executing '/usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/students /home/pwagner/media/Schüler (S:)'
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] * Trying to mount...
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] * Success!
/usr/lib/gdm3/gdm-x-session[2094]: [DEBUG] * hiding parent dir /home/pwagner/media/Schüler (S:)/../../.hidden
linuxmuster-linuxclient7: [INFO] * Tauschen#011#011| T#011| \\server\default-school\share#011| []
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/share
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server/default-school/share
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server/default-school/share to /home/pwagner/media/Tauschen (T:)
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * Executing /usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/share /home/pwagner/media/Tauschen (T:) 
linuxmuster-linuxclient7: [DEBUG] * Trying to mount...
kernel: [  265.702579] CIFS: Attempting to mount \\server\default-school
linuxmuster-linuxclient7: [DEBUG] * Success!
linuxmuster-linuxclient7: [DEBUG] * hiding parent dir /home/pwagner/media/Tauschen (T:)/../../.hidden
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] Calculating mountpoint of //server/default-school/share
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] Trying to mount '//server/default-school/share' to '/home/pwagner/media/Tauschen (T:)'
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] * Executing '/usr/sbin/mount.cifs -o file_mode=0700,dir_mode=0700,sec=krb5,nodev,nosuid,mfsymlinks,nobrl,vers=3.0,user=pwagner,domain=LINUXMUSTER.LAN,gid=1095200513,uid=1095202852,cruid=1095202852 //server/default-school/share /home/pwagner/media/Tauschen (T:)'
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] * Trying to mount...
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] * Success!
/usr/lib/gdm3/gdm-x-session[2108]: [DEBUG] * hiding parent dir /home/pwagner/media/Tauschen (T:)/../../.hidden
linuxmuster-linuxclient7: [INFO] ==> Successfully parsed a drive policy! ==
linuxmuster-linuxclient7: [INFO] == Parsing a printer policy! ==
linuxmuster-linuxclient7: [WARNING] ==> XML policy file not found! ==
linuxmuster-linuxclient7: [ERROR] ==> Error while reading Printer policy file, skipping! ==
linuxmuster-linuxclient7: [INFO] ===> Parsed policy [CN={12C680AA-3706-4A04-BC37-A7A969EF3C69},CN=Policies,CN=System,DC=linuxmuster,DC=lan;0] ===
linuxmuster-linuxclient7: [INFO] === Running local hook onLogin ===
linuxmuster-linuxclient7: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onLogin.d/00_example.sh ==
/usr/lib/gdm3/gdm-x-session[2137]: onLogin.d Hook called with env:
/usr/lib/gdm3/gdm-x-session[2137]: Server home: /home/pwagner/media/pwagner (H:)
/usr/lib/gdm3/gdm-x-session[2137]: Sysvol: /srv/samba/pwagner/sysvol
/usr/lib/gdm3/gdm-x-session[2137]: Domain: linuxmuster.lan
/usr/lib/gdm3/gdm-x-session[2137]: Server hostname: server.linuxmuster.lan
/usr/lib/gdm3/gdm-x-session[2137]: School: default-school
/usr/lib/gdm3/gdm-x-session[2137]: Username: pwagner
/usr/lib/gdm3/gdm-x-session[2137]: Room: n117bib
/usr/lib/gdm3/gdm-x-session[2137]: Hardware group: ubuntu__setup
linuxmuster-linuxclient7: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onLogin.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running local hook onLogin ===
linuxmuster-linuxclient7: [INFO] === Running remote hook onLogin ===
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/pwagner/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * The mountpoint is already mounted.
/usr/lib/gdm3/gdm-x-session[2156]: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
/usr/lib/gdm3/gdm-x-session[2156]: [DEBUG] Trying to mount '//server.linuxmuster.lan/sysvol' to '/srv/samba/pwagner/sysvol'
/usr/lib/gdm3/gdm-x-session[2156]: [DEBUG] * Creating directory...
/usr/lib/gdm3/gdm-x-session[2156]: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [INFO] == Executing script /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/lmn/linux/logon.sh ==
linuxmuster-linuxclient7: [INFO] ==> Script /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/lmn/linux/logon.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] == Executing script /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/custom/linux/logon.sh ==
linuxmuster-linuxclient7: [DEBUG] Saving export no_proxy=127.0.0.0/8,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12,localhost,.local,.linuxmuster.lan to tmp file
/usr/lib/gdm3/gdm-x-session[2178]: [DEBUG] Saving export 'no_proxy=127.0.0.0/8,10.0.0.0/8,192.168.0.0/16,172.16.0.0/12,localhost,.local,.linuxmuster.lan' to tmp file
linuxmuster-linuxclient7: [DEBUG] Saving export http_proxy=10.0.0.254:3128 to tmp file
/usr/lib/gdm3/gdm-x-session[2182]: [DEBUG] Saving export 'http_proxy=10.0.0.254:3128' to tmp file
linuxmuster-linuxclient7: [DEBUG] Saving export ftp_proxy==10.0.0.254:3128 to tmp file
/usr/lib/gdm3/gdm-x-session[2186]: [DEBUG] Saving export 'ftp_proxy==10.0.0.254:3128' to tmp file
linuxmuster-linuxclient7: [DEBUG] Saving export https_proxy==10.0.0.254:3128 to tmp file
/usr/lib/gdm3/gdm-x-session[2190]: [DEBUG] Saving export 'https_proxy==10.0.0.254:3128' to tmp file
dbus-daemon[1870]: [session uid=1095202852 pid=1870] Activating service name='ca.desrt.dconf' requested by ':1.18' (uid=1095202852 pid=2195 comm="gsettings set org.gnome.system.proxy ignore-hosts " label="unconfined")
dbus-daemon[1870]: [session uid=1095202852 pid=1870] Successfully activated service 'ca.desrt.dconf'
linuxmuster-linuxclient7: [INFO] ==> Script /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/custom/linux/logon.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running remote hook onLogin ===
linuxmuster-linuxclient7: [INFO] ======> onLogin end ======

LG und Danke für deine Hilfe!
Patrick

linuxmuster-linuxclient7: [INFO] ====== onSessionStarted started ======
dbus-daemon[1870]: [session uid=1095202852 pid=1870] Successfully activated service 'org.freedesktop.FileManager1'
kernel: [  269.736992] kauditd_printk_skb: 42 callbacks suppressed
kernel: [  269.736995] audit: type=1400 audit(1629227704.270:403): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2680/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
systemd[1857]: Started GNOME XSettings.
systemd[1857]: Reached target GNOME XSettings.
systemd[1857]: Reached target GNOME Session.
systemd[1857]: Reached target GNOME X11 Session (session: ubuntu).
systemd[1857]: Reached target Current graphical user session.
systemd[1857]: Condition check resulted in GNOME Initial Setup being skipped.
systemd[1857]: Condition check resulted in GNOME Welcome Tour being skipped.
kernel: [  269.865392] audit: type=1400 audit(1629227704.398:404): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2682/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
systemd[1]: tmp-snap.rootfs_9nKZrO.mount: Succeeded.
systemd[1396]: tmp-snap.rootfs_9nKZrO.mount: Succeeded.
kernel: [  269.899590] audit: type=1400 audit(1629227704.434:405): apparmor="DENIED" operation="capable" profile="/snap/snapd/12704/usr/lib/snapd/snap-confine" pid=2640 comm="snap-confine" capability=4  capname="fsetid"
systemd[1857]: tmp-snap.rootfs_9nKZrO.mount: Succeeded.
linuxmuster-linuxclient7: [INFO] === Running local hook onSessionStarted ===
kernel: [  270.257317] audit: type=1400 audit(1629227704.790:406): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2688/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
NetworkManager[773]: <info>  [1629227704.8978] agent-manager: agent[15dd13bfb10a44c1,:1.100/org.gnome.Shell.NetworkAgent/1095202852]: agent registered
gnome-shell[1474]: Failed to set CRTC gamma: drmModeCrtcSetGamma on CRTC 51 failed: Keine Berechtigung
kernel: [  270.527581] audit: type=1400 audit(1629227705.062:407): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2692/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
kernel: [  270.755936] audit: type=1400 audit(1629227705.290:408): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2699/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
kernel: [  270.819377] audit: type=1400 audit(1629227705.354:409): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2701/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
kernel: [  270.895928] audit: type=1400 audit(1629227705.430:410): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2703/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
linuxmuster-linuxclient7: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onSessionStarted.d/00_example.sh ==
linuxmuster-linuxclient7-autostart.desktop[2706]: onSessionStarted.d Hook called with env:
linuxmuster-linuxclient7-autostart.desktop[2706]: Server home: /home/pwagner/media/pwagner (H:)
linuxmuster-linuxclient7-autostart.desktop[2706]: Sysvol: /srv/samba/pwagner/sysvol
linuxmuster-linuxclient7-autostart.desktop[2706]: Domain: linuxmuster.lan
linuxmuster-linuxclient7-autostart.desktop[2706]: Server hostname: server.linuxmuster.lan
linuxmuster-linuxclient7-autostart.desktop[2706]: School: default-school
linuxmuster-linuxclient7-autostart.desktop[2706]: Username: pwagner
linuxmuster-linuxclient7-autostart.desktop[2706]: Room: n117bib
linuxmuster-linuxclient7-autostart.desktop[2706]: Hardware group: ubuntu__setup
linuxmuster-linuxclient7: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onSessionStarted.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running local hook onSessionStarted ===
linuxmuster-linuxclient7: [INFO] === Running remote hook onSessionStarted ===
kernel: [  271.033967] audit: type=1400 audit(1629227705.566:411): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2718/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
classicmenu-ind[2545]: Failed to load module "appmenu-gtk-module"
kernel: [  271.084261] audit: type=1400 audit(1629227705.618:412): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2735/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=1095202852
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
colord[1726]: failed to get session [pid 2491]: Keine Daten verfügbar
gnome-shell[1474]: Failed to set CRTC gamma: drmModeCrtcSetGamma on CRTC 51 failed: Keine Berechtigung
classicmenu-ind[2545]: Theme directory 32@2x/devices of theme Vimix-Black has no size field
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/pwagner/sysvol
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 31 with keysym 31 (keycode a).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 32 with keysym 32 (keycode b).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 33 with keysym 33 (keycode c).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 34 with keysym 34 (keycode d).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 35 with keysym 35 (keycode e).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 38 with keysym 38 (keycode 11).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 39 with keysym 39 (keycode 12).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 36 with keysym 36 (keycode f).
gnome-shell[2374]: Window manager warning: Overwriting existing binding of keysym 37 with keysym 37 (keycode 10).
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7-autostart.desktop[2751]: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7-autostart.desktop[2751]: [DEBUG] Trying to mount '//server.linuxmuster.lan/sysvol' to '/srv/samba/pwagner/sysvol'
linuxmuster-linuxclient7-autostart.desktop[2751]: [DEBUG] * Creating directory...
linuxmuster-linuxclient7-autostart.desktop[2751]: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
ubuntu-software-service.desktop[2769]: /snap/snap-store/547/snap/command-chain/desktop-launch: line 50: /.config/user-dirs.dirs: No such file or directory
gnome-shell[2374]: Theme directory 32@2x/devices of theme Vimix-Black has no size field
linuxmuster-linuxclient7: [WARNING] * File /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/lmn/linux/sessionstart.sh should be executed as hook but does not exist!
linuxmuster-linuxclient7: [WARNING] * File /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/custom/linux/sessionstart.sh should be executed as hook but does not exist!
linuxmuster-linuxclient7: [INFO] ===> Finished running remote hook onSessionStarted ===
linuxmuster-linuxclient7: [INFO] ======> onSessionStarted end ======


linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] ====== onSessionStarted started ======
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] === Running local hook onSessionStarted ===
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onSessionStarted.d/00_example.sh ==
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onSessionStarted.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] ===> Finished running local hook onSessionStarted ===
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] === Running remote hook onSessionStarted ===
linuxmuster-linuxclient7-autostart.desktop[2527]: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7-autostart.desktop[2527]: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7-autostart.desktop[2527]: [WARNING] * File /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/lmn/linux/sessionstart.sh should be executed as hook but does not exist!
linuxmuster-linuxclient7-autostart.desktop[2527]: [WARNING] * File /srv/samba/pwagner/sysvol/linuxmuster.lan/scripts/default-school/custom/linux/sessionstart.sh should be executed as hook but does not exist!
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] ===> Finished running remote hook onSessionStarted ===
linuxmuster-linuxclient7-autostart.desktop[2527]: [INFO] ======> onSessionStarted end ======


linuxmuster-linuxclient7: [INFO] ====== onLoginLogoutAsRoot started with PAM_TYPE=close_session PAM_RHOST=None PAM_RUSER=None PAM_SERVICE=gdm-launch-environment PAM_TTY=/dev/tty1 PAM_USER=gdm ======
linuxmuster-linuxclient7: [INFO] ==== gdm is not an AD user, exiting ====
linuxmuster-linuxclient7: [INFO] ======> onLoginLogoutAsRoot end ====


linuxmuster-linuxclient7: [INFO] ====== onLoginLogoutAsRoot started with PAM_TYPE=close_session PAM_RHOST=None PAM_RUSER=None PAM_SERVICE=gdm-password PAM_TTY=/dev/tty2 PAM_USER=pwagner ======
kernel: [  401.847309] audit: type=1400 audit(1629227836.382:439): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3738/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  401.853792] audit: type=1400 audit(1629227836.386:440): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3739/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
kernel: [  401.874321] audit: type=1400 audit(1629227836.406:441): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3736/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
linuxmuster-linuxclient7: [DEBUG] Trying to mount //server.linuxmuster.lan/sysvol to /srv/samba/N117BIB-PCL03$/sysvol
linuxmuster-linuxclient7: [DEBUG] * Creating directory...
linuxmuster-linuxclient7: [DEBUG] * The mountpoint is already mounted.
linuxmuster-linuxclient7: [DEBUG] Calculating mountpoint of //server.linuxmuster.lan/sysvol
linuxmuster-linuxclient7: [INFO] === Trying to unmount all shares of user pwagner ===
linuxmuster-linuxclient7: [INFO] * Trying to unmount /home/pwagner/media/pwagner (H:)...
linuxmuster-linuxclient7: [INFO] * Deleting /home/pwagner/media/pwagner (H:)...
systemd[1857]: home-pwagner-media-pwagner\x20\x28H:\x29.mount: Succeeded.
systemd[1]: home-pwagner-media-pwagner\x20\x28H:\x29.mount: Succeeded.
linuxmuster-linuxclient7: [INFO] * Trying to unmount /home/pwagner/media/Tauschen (T:)...
systemd[1]: home-pwagner-media-Tauschen\x20\x28T:\x29.mount: Succeeded.
systemd[1857]: home-pwagner-media-Tauschen\x20\x28T:\x29.mount: Succeeded.
linuxmuster-linuxclient7: [INFO] * Deleting /home/pwagner/media/Tauschen (T:)...
linuxmuster-linuxclient7: [INFO] * Trying to unmount /home/pwagner/media/Schüler (S:)...
systemd[1]: home-pwagner-media-Sch\xc3\xbcler\x20\x28S:\x29.mount: Succeeded.
systemd[1857]: home-pwagner-media-Sch\xc3\xbcler\x20\x28S:\x29.mount: Succeeded.
linuxmuster-linuxclient7: [INFO] * Deleting /home/pwagner/media/Schüler (S:)...
linuxmuster-linuxclient7: [INFO] * Trying to unmount /home/pwagner/media/Programme (K:)...
systemd[1857]: home-pwagner-media-Programme\x20\x28K:\x29.mount: Succeeded.
systemd[1]: home-pwagner-media-Programme\x20\x28K:\x29.mount: Succeeded.
linuxmuster-linuxclient7: [INFO] * Deleting /home/pwagner/media/Programme (K:)...
linuxmuster-linuxclient7: [INFO] Deleting /home/pwagner/media...
linuxmuster-linuxclient7: [INFO] * Trying to unmount /srv/samba/pwagner/sysvol...
systemd[1]: srv-samba-pwagner-sysvol.mount: Succeeded.
systemd[1857]: srv-samba-pwagner-sysvol.mount: Succeeded.
linuxmuster-linuxclient7: [INFO] * Deleting /srv/samba/pwagner/sysvol...
linuxmuster-linuxclient7: [INFO] Deleting /srv/samba/pwagner...
linuxmuster-linuxclient7: [INFO] ===> Finished unmounting all shares of user pwagner ===
linuxmuster-linuxclient7: [INFO] Uninstalling all printers of pwagner
linuxmuster-linuxclient7: [INFO] Getting installed printers of pwagner
linuxmuster-linuxclient7: [INFO] No Printers installed.
linuxmuster-linuxclient7: [INFO] === Running local hook onLogoutAsRoot ===
kernel: [  402.065337] audit: type=1400 audit(1629227836.598:442): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3772/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  402.102787] audit: type=1400 audit(1629227836.638:443): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3774/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  402.173231] audit: type=1400 audit(1629227836.706:444): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3776/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  402.226760] audit: type=1400 audit(1629227836.762:445): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3778/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
kernel: [  402.249262] audit: type=1400 audit(1629227836.782:446): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3780/cmdline" pid=1326 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
linuxmuster-linuxclient7: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onLogoutAsRoot.d/00_example.sh ==
linuxmuster-linuxclient7: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onLogoutAsRoot.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running local hook onLogoutAsRoot ===
linuxmuster-linuxclient7: [INFO] === Running remote hook onLogoutAsRoot ===
linuxmuster-linuxclient7: [INFO] ===> Finished running remote hook onLogoutAsRoot ===
linuxmuster-linuxclient7: [INFO] ======> onLoginLogoutAsRoot end ======

Hallo Patrick,

Das sieht so aus, als ob er dein Script nicht finden würde.

linuxmuster-linuxclient7: [INFO] === Running local hook onLogin ===
linuxmuster-linuxclient7: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onLogin.d/00_example.sh ==
/usr/lib/gdm3/gdm-x-session[2137]: onLogin.d Hook called with env:
/usr/lib/gdm3/gdm-x-session[2137]: Server home: /home/pwagner/media/pwagner (H:)
/usr/lib/gdm3/gdm-x-session[2137]: Sysvol: /srv/samba/pwagner/sysvol
/usr/lib/gdm3/gdm-x-session[2137]: Domain: linuxmuster.lan
/usr/lib/gdm3/gdm-x-session[2137]: Server hostname: server.linuxmuster.lan
/usr/lib/gdm3/gdm-x-session[2137]: School: default-school
/usr/lib/gdm3/gdm-x-session[2137]: Username: pwagner
/usr/lib/gdm3/gdm-x-session[2137]: Room: n117bib
/usr/lib/gdm3/gdm-x-session[2137]: Hardware group: ubuntu__setup
linuxmuster-linuxclient7: [INFO] ==> Script /etc/linuxmuster-linuxclient7/onLogin.d/00_example.sh finished with exit code 0 ==
linuxmuster-linuxclient7: [INFO] ===> Finished running local hook onLogin ===
li

Hier sieht man, dass er das 00_example.sh ausführt ubd dann aufhört. Das heißt, er findet dein Script nicht. Bist du sicher, dass es an der richtigen Stelle liegt? Bei falschen Berechtigungen würde nämlich an dieser Szelle eine Warnung auftauchen.

VG, Dorian

Hi Dorian,
ich habs nochmal gelöscht und neu erstellt. Das Problem ist dasselbe, allerdings taucht es jetzt im Log auf:

...
/usr/lib/gdm3/gdm-x-session[17492]: [INFO] === Running local hook onLogin ===
/usr/lib/gdm3/gdm-x-session[17492]: [INFO] == Executing script /etc/linuxmuster-linuxclient7/onLogin.d/01_verzeichnismount.sh ==
/usr/lib/gdm3/gdm-x-session[17492]: [ERROR] === An exception occurred ===
/usr/lib/gdm3/gdm-x-session[17492]: [ERROR] [Errno 8] Exec format error: '/etc/linuxmuster-linuxclient7/onLogin.d/01_verzeichnismount.sh'
/usr/lib/gdm3/gdm-x-session[17492]: [ERROR] === end exception ===
/usr/lib/gdm3/gdm-x-session[17651]: localuser:pwagner being added to access control list
...

Hier noch ein Bild vom Verzeichnis und der Datei:

LG Patrick

Blöder Anfängerfehler!!
Hab natürlich die erste Zeile vergessen …

Oben drüber muss natürlich noch #!/bin/bash! :man_facepalming:

So funktionierts:

#!/bin/bash

for dir in Bilder Dokumente Downloads Musik Öffentlich Schreibtisch Videos Vorlagen
do
  rmdir $HOME/$dir 2> /dev/null
  mkdir "$SERVERHOME/$dir" 2> /dev/null
  ln -sfn "$SERVERHOME/$dir" "$HOME/$dir"
done

Danke für deine Geduld!!

2 Like

Top! Freut mich :slight_smile: