ユーザー名を指定してログイン

Linux Mintのインストールと起動に関する質問

ユーザー名を指定してログイン

投稿記事by y-sassa » 2014年1月18日(土) 23:36

Linux Mint 16 "Petra" Xfce版を導入しました。

ldapクライアントの設定を行い、ターミナルから
> su ldapユーザー名
でログインできることが確認できました。
しかし、ログイン時に現れる画面(デフォルトのMDM)ではインストールの
ときに設定した管理者ユーザーしか表示されません。

ログイン画面で、ユーザー名を指定してログインする方法か、
LDAPクライアントのユーザー名を表示する方法か、
どちらかご存知でしたら教えてください。
y-sassa
前相撲
 
記事: 2
登録日時: 2014年1月18日(土) 23:28

Re: ユーザー名を指定してログイン

投稿記事by ban » 2014年1月19日(日) 09:51

y-sassaさん

先ず GUI でも CUI でもログインできる条件として以下があります。

・/etc/passwd に実行できるログインシェルが記載されていること。
・パスワードが設定されていること。

ログインできないユーザをログインできるようにするには以下のように行います。
コード: 全て選択
# sudo usermod -s /bin/bash 【ユーザー名】
# sudo passwd 【ユーザー名】
Changing password for user 【ユーザー名】.
New password: 【パスワード】
Retype new password: 【パスワード】
passwd: all authentication tokens updated successfully.

しかし su コマンドを使ってldapユーザ名でログインできたということは、これはおそらくパスしているのでしょう。


次に、MDM(ログイン画面) からログインできる条件として以下があります。

・ユーザIDが1000以上であること。
・Exclude リストに記載されていないこと。

この設定ファイルは /usr/share/mdm/defaults.conf です。
この中に以下のような記述があります。
[greeter]# The default picture in the browser.
DefaultFace=/usr/share/pixmaps/nobody.png
# User ID's less than the MinimalUID value will not be included in the face
# browser or in the mdmselection list for Automatic/Timed login. They will not
# be displayed regardless of the settings for Include and Exclude.
MinimalUID=1000
# Users listed in Include will be included in the face browser and in the
# mdmsetup selection list for Automatic/Timed login. Users should be separated
# by commas.
#Include=
# Users listed in Exclude are excluded from the face browser and from the
# mdmsetup selection list for Automatic/Timed login. Excluded users will still
# be able to log in, but will have to type their username. Users should be
# separated by commas.
Exclude=nobody
# By default, an empty include list means display no users. By setting
# IncludeAll to true, the password file will be scanned and all users will be
# displayed except users excluded via the Exclude setting and user ID's less
# than MinimalUID. Scanning the password file can be slow on systems with
# large numbers of users and this feature should not be used in such
# environments. The setting of IncludeAll does nothing if Include is set to a
# non-empty value.
IncludeAll=true

ここの MinimalUID, Include などを編集すれば、ログイン画面からログインできるようになると思います。

ただし、これで本当にログインできるようになるのか、他にも条件があるのか、その辺あまり自信はありません。
特にデフォルトのログイン画面はユーザ選択式になっていて、選択できなければログインできません。
ですので、ユーザ選択式のログイン画面ではなく、ユーザ名入力式のログイン画面に変えたほうがより確実だと思います。
ユーザ名入力式のログイン画面に変えるには、メニューの中から「ログイン画面」というアイコンを探してください。
そこで「スタイル」を HTML からGDM に変更すると、その中にユーザ名入力式のログイン画面のデザインが含まれています。

参考になれば幸いです。
Hiroaki Ban
Linux Mint 16 Perta KDE 64bit
端末入力を楽にする3つの小技
http://forums.linuxmint-jp.net/viewtopic.php?f=10&t=1178
ban
幕下
 
記事: 75
登録日時: 2013年11月04日(月) 01:41

Re: ユーザー名を指定してログイン

投稿記事by y-sassa » 2014年1月19日(日) 16:07

banさん

GDMでユーザ名を入力するスタイルのものを選んで、
ログイン画面を出すことができ、無事ログインすることができました。
設定ファイルを編集することはしなくても大丈夫でした。

ありがとうございました。
y-sassa
前相撲
 
記事: 2
登録日時: 2014年1月18日(土) 23:28


Return to インストールと起動

オンラインデータ

このフォーラムを閲覧中のユーザー: なし & ゲスト[9人]

cron