diff options
| author | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 17:47:16 +0000 |
|---|---|---|
| committer | Bruno Ribas <brunoribas@gmail.com> | 2016-11-04 17:47:16 +0000 |
| commit | e38f8a6f6483bb2bdc85bfcc04021429e5f18b4b (patch) | |
| tree | e0a31be2750e00ccf34f2cea66a4a7531ce53b3a /tools | |
| parent | c45196dfe0007882404246665137e3f96b64d445 (diff) | |
| download | boca-e38f8a6f6483bb2bdc85bfcc04021429e5f18b4b.tar.gz boca-e38f8a6f6483bb2bdc85bfcc04021429e5f18b4b.zip | |
createbocajail.sh: Properly disable bocajail user login
Disable bocajailuser login properly, following ubuntu guidelines.
Thanks to Roberto and Carlos.
Reported-by: Roberto Abreu <rcabreu@gmail.com>
Acked-by: Carlos Joa <carlosjoa@gmail.com>
Signed-off-by: Bruno Ribas <brunoribas@gmail.com>
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/etc/icpc/createbocajail.sh | 10 |
1 files changed, 4 insertions, 6 deletions
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 <<EOF > /var/lib/AccountsService/users/bocajail +[User] +SystemAccount=true +EOF sleep 1 else echo "user bocajail already exists" |