UJP - 技術情報2 : RapsberryPi3/003/UserAddUserDel をテンプレートにして作成
Life is fun and easy!
不正IP報告数
Okan Sensor
Home
Information
Service
Tech(Free)
Tech(Member)
Blog
FAQ
メイン
ホーム
お知らせ
技術新着情報
組織
サービス
技術情報2
新規ページ作成
最新ページ一覧
全ページ一覧
ヘルプ
技術情報1
技術情報
ブログ
RSSサイト更新
旧ブログ
FAQ
画像ファイル管理
ログイン
ユーザー名:
パスワード:
パスワード再発行手続き
|
無料会員入会手続へ...
ブログ カテゴリ一覧
雑記
(223)
投資で凍死
(168)
時事
(464)
テレビ・ドラマ
(406)
映画
(895)
007シリーズ
(33)
刑事コロンボ
(62)
災害
(207)
スキルチャージ
(42)
放送大学
(23)
Python
(10)
検定・試験
(32)
セキュリティ
(5)
ニュース・徒然
(317)
ツール
(123)
脆弱性情報/注意喚起
(109)
事故・事件
(103)
スパム・フィッシング
(519)
攻撃/ブルートフォース
(23)
文献・統計・参考資料
(125)
ベンダ・サービス
(3)
事故被害者記録
(44)
あとで確認
(1)
サイト構築
(74)
システム障害事故
(55)
Apple
(17)
Mac Pro 2013
(8)
MacBook Pro
(0)
2011 13inch
(30)
2007 15inch
(1)
2015 15inch
(5)
2008 17inch
(22)
Apple Watch
(71)
mac mini
(0)
2011 server
(4)
2010 server
(5)
2014
(14)
2010
(36)
2005
(8)
MacBook Air
(0)
2013 13inch/US
(5)
2011 13inch
(8)
2011 13inch/BCP
(9)
2011 11inch
(31)
MacBook
(0)
2017 12inch
(8)
2008 13inch 2
(26)
2008 13inch 1
(15)
Macソフト
(131)
Mac周辺機器
(35)
PowerBook
(5)
iPod touch/iOS
(57)
iPhone
(163)
iPad
(75)
ガジェット
(129)
fire tv
(1)
HUAWEI Watch FIT
(10)
カメラ/デジカメ
(40)
タイムラプス
(6)
ネットワーク機器
(17)
ネットワークケーブル
(4)
ネットワークその他
(6)
ネットワークスピード
(13)
YAMAHA/ヤマハ
(1)
FWX120
(2)
RTX1200
(14)
RTX1100/RTX1000
(10)
RT107e
(2)
NETGEAR WAC510
(11)
NERGEAR Orbi
(1)
Panasonic MNOseries
(3)
マウス&キーボード
(57)
AV機器・レグザ
(99)
ハウツー
(105)
GPS/地図
(69)
ビジネス
(169)
新規ビジネス
(18)
お仕事
(63)
ケータイビジネス
(41)
PC
(11)
EndeavorTN40
(4)
DynabookPT45
(8)
CF-RZ6
(7)
PN-ZP30
(5)
CF-LX4
(9)
Raspberry Pi
(58)
ML110 G5
(20)
LIFEBOOK
(11)
Surface
(50)
ThinkPad R61
(5)
モバイル
(16)
スマホアプリ
(73)
ケータイスマホ機種
(34)
データ通信・契約
(79)
EMONSTER
(5)
IDEOS
(12)
Galaxy Note
(38)
Windows Phone
(20)
Nexus
(22)
コンピュータ
(10)
Windows
(90)
サーバソフト
(32)
Db2
(16)
クライアントソフト
(73)
インターネット
(66)
Google
(111)
ネットサービス
(157)
ハードウェア
(19)
ディスプレイ
(11)
ストレージ
(5)
プリンタ
(8)
情報システム
(95)
趣味
(3)
ポケモンGO
(627)
寝台特急カシオペア/カシオペア紀行
(34)
TOKYO2020
(85)
食べた
(207)
たべた(駅弁)
(30)
飲んだ
(33)
調理した
(21)
ラーメン・麺類
(202)
鉄道
(234)
農園
(158)
アクアリウム
(159)
ホテル・旅館
(42)
書評
(37)
演劇
(21)
車・バイク
(73)
自然・星
(35)
散策・近代建築
(18)
神社・寺
(50)
高層ビル
(24)
現代建築
(15)
建築物
(6)
観光・名所
(87)
イベント
(72)
散策:城
(33)
ディズニー
(24)
鳥
(9)
モーターショー
(16)
美術館
(28)
コンサート/ライブ
(64)
船
(3)
スポーツ
(118)
音楽
(73)
Nゲージダイキャスト
(8)
サマリ
(6)
ピンバッチ
(3)
Nゲージ
(0)
ミニカー
(4)
サイト運営
(39)
人生
(53)
監視/防犯/みまもり/遠隔
(48)
体・病気
(116)
お金の話
(89)
相続・土地売買
(11)
コンテンツ更新情報
(2)
Rapsberry Pi3のRaspbianでユーザの追加と削除を行う
をテンプレートにして作成
技術情報2
RapsberryPi3/003/UserAddUserDel をテンプレートにして作成
開始行:
*Rapsberry Pi3のRaspbianでユーザの追加と削除を行う
**はじめに
Raspbianにはpiユーザがデフォルトで作成されているが,そ...
pi@commet:~ $ su - root
パスワード:
root@commet:~#
root@commet:~# cat /etc/passwd|grep -v false|grep -v nol...
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
pi:x:1000:1000:,,,:/home/pi:/bin/bash
root@commet:~#
root@commet:~# userdel -r pi
userdel: user pi is currently used by process 756
root@commet:~#
root@commet:~# adduser ujpadmin
ユーザ `ujpadmin' を追加しています...
新しいグループ `ujpadmin' (1001) を追加しています...
新しいユーザ `ujpadmin' (1001) をグループ `ujpadmin' と...
ホームディレクトリ `/home/ujpadmin' を作成しています...
`/etc/skel' からファイルをコピーしています...
新しい UNIX パスワードを入力してください:
新しい UNIX パスワードを再入力してください:
passwd: パスワードは正しく更新されました
ujpadmin のユーザ情報を変更中
新しい値を入力してください。標準設定値を使うならリターン...
フルネーム []: UJP admin
部屋番号 []:
職場電話番号 []:
自宅電話番号 []:
その他 []:
以上で正しいですか? [Y/n] y
root@commet:~#
root@commet:~# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as ...
#
# Please consider adding local content in /etc/sudoers.d...
# directly modifying this file.
#
# See the man page for details on how to write a sudoers...
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/us...
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" dire...
#includedir /etc/sudoers.d
pi ALL=(ALL) NOPASSWD: ALL
root@commet:~#
root@commet:~# echo 'ujpadmin ALL=(ALL) NOPASSWD: ALL' >...
root@commet:~#
root@commet:~# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as ...
#
# Please consider adding local content in /etc/sudoers.d...
# directly modifying this file.
#
# See the man page for details on how to write a sudoers...
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/us...
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" dire...
#includedir /etc/sudoers.d
pi ALL=(ALL) NOPASSWD: ALL
ujpadmin ALL=(ALL) NOPASSWD: ALL
root@commet:~#
ujpadmin@commet:~ $ sudo su -
root@commet:~#
root@commet:~# cat /etc/passwd|grep -v false|grep -v nol...
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
pi:x:1000:1000:,,,:/home/pi:/bin/bash
ujpadmin:x:1001:1001:UJP admin,,,:/home/ujpadmin:/bin/bash
root@commet:~#
root@commet:~# cat /etc/passwd|grep -v false|grep -v nol...
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
#pi:x:1000:1000:,,,:/home/pi:/bin/bash
ujpadmin:x:1001:1001:UJP admin,,,:/home/ujpadmin:/bin/bash
root@commet:~#
root@commet:~# sudo su - pi
ユーザ 'pi' のパスワードエントリがありません
root@commet:~#
終了行:
*Rapsberry Pi3のRaspbianでユーザの追加と削除を行う
**はじめに
Raspbianにはpiユーザがデフォルトで作成されているが,そ...
pi@commet:~ $ su - root
パスワード:
root@commet:~#
root@commet:~# cat /etc/passwd|grep -v false|grep -v nol...
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
pi:x:1000:1000:,,,:/home/pi:/bin/bash
root@commet:~#
root@commet:~# userdel -r pi
userdel: user pi is currently used by process 756
root@commet:~#
root@commet:~# adduser ujpadmin
ユーザ `ujpadmin' を追加しています...
新しいグループ `ujpadmin' (1001) を追加しています...
新しいユーザ `ujpadmin' (1001) をグループ `ujpadmin' と...
ホームディレクトリ `/home/ujpadmin' を作成しています...
`/etc/skel' からファイルをコピーしています...
新しい UNIX パスワードを入力してください:
新しい UNIX パスワードを再入力してください:
passwd: パスワードは正しく更新されました
ujpadmin のユーザ情報を変更中
新しい値を入力してください。標準設定値を使うならリターン...
フルネーム []: UJP admin
部屋番号 []:
職場電話番号 []:
自宅電話番号 []:
その他 []:
以上で正しいですか? [Y/n] y
root@commet:~#
root@commet:~# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as ...
#
# Please consider adding local content in /etc/sudoers.d...
# directly modifying this file.
#
# See the man page for details on how to write a sudoers...
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/us...
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" dire...
#includedir /etc/sudoers.d
pi ALL=(ALL) NOPASSWD: ALL
root@commet:~#
root@commet:~# echo 'ujpadmin ALL=(ALL) NOPASSWD: ALL' >...
root@commet:~#
root@commet:~# cat /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as ...
#
# Please consider adding local content in /etc/sudoers.d...
# directly modifying this file.
#
# See the man page for details on how to write a sudoers...
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/us...
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" dire...
#includedir /etc/sudoers.d
pi ALL=(ALL) NOPASSWD: ALL
ujpadmin ALL=(ALL) NOPASSWD: ALL
root@commet:~#
ujpadmin@commet:~ $ sudo su -
root@commet:~#
root@commet:~# cat /etc/passwd|grep -v false|grep -v nol...
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
pi:x:1000:1000:,,,:/home/pi:/bin/bash
ujpadmin:x:1001:1001:UJP admin,,,:/home/ujpadmin:/bin/bash
root@commet:~#
root@commet:~# cat /etc/passwd|grep -v false|grep -v nol...
root:x:0:0:root:/root:/bin/bash
sync:x:4:65534:sync:/bin:/bin/sync
#pi:x:1000:1000:,,,:/home/pi:/bin/bash
ujpadmin:x:1001:1001:UJP admin,,,:/home/ujpadmin:/bin/bash
root@commet:~#
root@commet:~# sudo su - pi
ユーザ 'pi' のパスワードエントリがありません
root@commet:~#
ページ名:
Counter: 0, today: 0, yesterday: 0
広告スペース
検索用語を入力
検索フォームを送信
Web
www.ujp.jp