]> git.pld-linux.org Git - packages/open-vm-tools.git/commitdiff
add usable pam config
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 4 Sep 2018 09:02:35 +0000 (12:02 +0300)
committerElan Ruusamäe <glen@pld-linux.org>
Tue, 4 Sep 2018 09:04:55 +0000 (12:04 +0300)
there's no pam_unix_acct.so or pam_unix_auth.so in pld. so just use include from system auth.

Sep  4 11:03:36 cemetery VGAuth[1357]: PAM unable to dlopen(/lib64/security/pam_unix_auth.so): /lib64/security/pam_unix_auth.so: cannot open shared object file: No such file or directory
Sep  4 11:03:36 cemetery VGAuth[1357]: PAM adding faulty module: /lib64/security/pam_unix_auth.so
Sep  4 11:03:36 cemetery VGAuth[1357]: PAM unable to dlopen(/lib64/security/pam_unix_acct.so): /lib64/security/pam_unix_acct.so: cannot open shared object file: No such file or directory
Sep  4 11:03:36 cemetery VGAuth[1357]: PAM adding faulty module: /lib64/security/pam_unix_acct.so
Sep  4 11:03:36 cemetery VGAuth[1357]: pam_unix(vmtoolsd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost=  user=xxx

open-vm-tools.spec
vmtoolsd.pamd [new file with mode: 0644]

index 643a71c338d0d228f1b2ee7f5163aae94aac4ecf..4758df5f30c76bd3d6930d5ac41f646a807cbb17 100644 (file)
@@ -7,7 +7,7 @@ Summary:        VMWare guest utilities
 Summary(pl.UTF-8):     Narzędzia dla systemu-gościa dla VMware
 Name:          open-vm-tools
 Version:       10.3.0
-Release:       1
+Release:       2
 Epoch:         1
 License:       GPL
 Group:         Applications/System
@@ -18,6 +18,7 @@ Source2:      %{name}-modprobe.d
 Source3:       %{name}-init
 Source4:       %{name}-vmware-user.desktop
 Source5:       vmware-vmblock-fuse.service
+Source6:       vmtoolsd.pamd
 Patch0:                %{name}-dnd.patch
 Patch1:                %{name}-configure.patch
 URL:           https://github.com/vmware/open-vm-tools
@@ -175,6 +176,7 @@ install -d $RPM_BUILD_ROOT/etc/{modprobe.d,rc.d/init.d,xdg/autostart}
 cp %{SOURCE2} $RPM_BUILD_ROOT/etc/modprobe.d/%{name}.conf
 cp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 cp %{SOURCE4} $RPM_BUILD_ROOT/etc/xdg/autostart/vmware-user.desktop
+cp %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/vmtoolsd
 
 install -d $RPM_BUILD_ROOT%{systemdunitdir}
 cp %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}
diff --git a/vmtoolsd.pamd b/vmtoolsd.pamd
new file mode 100644 (file)
index 0000000..a1ac6b1
--- /dev/null
@@ -0,0 +1,4 @@
+#%PAM-1.0
+
+auth       include      system-auth
+account    include      system-auth
This page took 0.257789 seconds and 4 git commands to generate.