From e78c5af7cffa813e1560db3e14818f4d2337af82e2c41e78cbe4ec6bc289fd57 Mon Sep 17 00:00:00 2001 From: Kristyna Streitova Date: Thu, 20 Feb 2020 12:13:13 +0000 Subject: [PATCH] Accepting request 776277 from home:kstreitova:branches:Base:System - change login shell for at user from /bin/bash to /bin/false as it shouldn't need a valid login shell OBS-URL: https://build.opensuse.org/request/show/776277 OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=112 --- at.changes | 6 ++++++ at.spec | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/at.changes b/at.changes index 96560fa..6742870 100644 --- a/at.changes +++ b/at.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 19 10:54:34 UTC 2020 - Kristyna Streitova + +- change login shell for at user from /bin/bash to /bin/false as it + shouldn't need a valid login shell + ------------------------------------------------------------------- Thu Oct 17 13:48:04 UTC 2019 - Richard Brown diff --git a/at.spec b/at.spec index 0fcf3e7..4334c49 100644 --- a/at.spec +++ b/at.spec @@ -1,7 +1,7 @@ # # spec file for package at # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ Version: 3.1.23 Release: 0 Summary: A Job Manager License: GPL-2.0-or-later -Url: http://ftp.debian.org/debian/pool/main/a/at +URL: http://ftp.debian.org/debian/pool/main/a/at Source: http://ftp.debian.org/debian/pool/main/a/at/%{name}_%{version}.orig.tar.gz Source2: atd.pamd Source3: sysconfig.atd @@ -131,7 +131,7 @@ install -m644 %{SOURCE3} %{buildroot}%{_fillupdir} %pre %{_sbindir}/groupadd -g 25 -o -r at 2> /dev/null || : -%{_sbindir}/useradd -r -o -g at -u 25 -s /bin/bash -c "Batch jobs daemon" -d %{_localstatedir}/spool/atjobs at 2> /dev/null || : +%{_sbindir}/useradd -r -o -g at -u 25 -s /bin/false -c "Batch jobs daemon" -d %{_localstatedir}/spool/atjobs at 2> /dev/null || : %service_add_pre atd.service %preun