From e38f8a6f6483bb2bdc85bfcc04021429e5f18b4b Mon Sep 17 00:00:00 2001 From: Bruno Ribas Date: Fri, 4 Nov 2016 15:47:16 -0200 Subject: createbocajail.sh: Properly disable bocajail user login Disable bocajailuser login properly, following ubuntu guidelines. Thanks to Roberto and Carlos. Reported-by: Roberto Abreu Acked-by: Carlos Joa Signed-off-by: Bruno Ribas --- tools/etc/icpc/createbocajail.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tools') diff --git a/tools/etc/icpc/createbocajail.sh b/tools/etc/icpc/createbocajail.sh index 5ea336c..c5deb7b 100755 --- a/tools/etc/icpc/createbocajail.sh +++ b/tools/etc/icpc/createbocajail.sh @@ -44,12 +44,10 @@ fi id -u bocajail >/dev/null 2>/dev/null if [ $? != 0 ]; then useradd -m -s /bin/bash -d $homejail -g users bocajail - if [ -d /etc/gdm ]; then - echo -e "[greeter]\nExclude=bocajail,nobody\n" >> /etc/gdm/custom.conf - fi - if [ -d /etc/lightdm ]; then - echo "hidden-users=nobody nobody4 noaccess bocajail" >> /etc/lightdm/lightdm.conf - fi + cat < /var/lib/AccountsService/users/bocajail +[User] +SystemAccount=true +EOF sleep 1 else echo "user bocajail already exists" -- cgit v1.2.3