1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

lightdmのlogin screenに特定のユーザを表示させない設定

1
Last updated at Posted at 2019-11-07

lightdmのlogin screenに特定のユーザを表示させない設定

lightdmのlogin screenに特定のユーザを表示させたくない方を対象に、
AccountsServiceの設定方法を記載する。

背景

slurm-wlnをインストールすると、slurmユーザがuid 64030で作成されるためUbuntu MATE 18.04などのデスクトップ環境の場合、ログインスクリーンにslurmユーザが表示されて嬉しくない。

そこで/etc/lightdm/users.confで非表示ユーザにslurmを追加したが、設定が無効であった。users.confAccountsServiceがインストールされている場合はusers.confの設定は無視されると書かれていた。

以下にAccountsServiceの設定方法を記載する。

AccountServiceの設定

ユーザ名slurmのユーザを隠したい場合は、同名のファイルを以下の場所に作成する。

touch /var/lib/AccountsService/users/slurm

次に、先程作成したファイルに以下の内容を追記する

[User]
SystemAccount=true

上の作業を纏めると、、

touch /var/lib/AccountsService/users/slurm
cat << EOS >> /var/lib/AccountsService/users/slurm
[User]
SystemAccount=true
EOS

以上で設定は終わり

参考資料

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?