[Rich]Ubuntuビジターセッションの無効化
1705 ワード
適用OS
テスト済みシステム
変更前 /etc/lightdm
├── lightdm.conf.d
│ └── guest.conf
└── users.conf
まとめ
方法1
/etc/lightdm/lightdm.conf
ファイルを作成し、次の構成を追加します.[Seat:*]
allow-guest=false
方法2
/etc/lightdm/lightdm.conf.d
のディレクトリの下に任意のを作成する.confの最後のファイル(*.conf).以下の構成を追加します.[Seat:*]
allow-guest=false
無効なメソッド
変更/etc/lightdm/users.confファイル
次の2つの構成を追加する方法はいずれも無効です.#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
[Seat:*]
allow-guest=false
と#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
allow-guest=false
/etc/lightdmディレクトリの下に非lightdmを作成する.confファイル
lightdm.conf
名のファイルを作成して構成を追加するだけで有効で、名前を変更すると失効します.
/etc/lightdm
├── lightdm.conf.d
│ └── guest.conf
└── users.conf
方法1
/etc/lightdm/lightdm.conf
ファイルを作成し、次の構成を追加します.[Seat:*]
allow-guest=false
方法2
/etc/lightdm/lightdm.conf.d
のディレクトリの下に任意のを作成する.confの最後のファイル(*.conf).以下の構成を追加します.[Seat:*]
allow-guest=false
無効なメソッド
変更/etc/lightdm/users.confファイル
次の2つの構成を追加する方法はいずれも無効です.#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
[Seat:*]
allow-guest=false
と#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
allow-guest=false
/etc/lightdmディレクトリの下に非lightdmを作成する.confファイル
lightdm.conf
名のファイルを作成して構成を追加するだけで有効で、名前を変更すると失効します.
#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
[Seat:*]
allow-guest=false
#
# User accounts configuration
#
# NOTE: If you have AccountsService installed on your system, then LightDM will
# use this instead and these settings will be ignored
#
# minimum-uid = Minimum UID required to be shown in greeter
# hidden-users = Users that are not shown to the user
# hidden-shells = Shells that indicate a user cannot login
#
[UserList]
minimum-uid=500
hidden-users=nobody nobody4 noaccess
hidden-shells=/bin/false /usr/sbin/nologin
allow-guest=false