關於 linux user 轉換的問題 - Linux
By Iris
at 2020-10-21T09:40
at 2020-10-21T09:40
Table of Contents
各位好,我是一個 Linux 自學的新手,
想問一個有關於 Linux 中在 BASH 作 user 轉換的實際意義,
假設使用 centOS 系統中,
有三個 users (root , alice , bob)
其中 alice 在 wheel group 中 (意即 alice 可以使用 sudo 指令)
當 alice 登入系統,取得自己的 BASH shell 之後,
就可以使用轉換 user 指令
$ sudo su - bob
然後 alice 輸入自己密碼,就可以轉換 user 變成 bob
就可以用 bob 的角色做事情,
這邊就是我最搞不懂的部分
1. 爲什麼 Linux 系統會允許 user A 可以不需要 user B 的允許,
就讓 user A 自己轉換爲 user B 去做事情?
這樣跟帳號盜用的差別在那裡?
2. 爲什麼 Linux 系統在 user A 轉換成 user B 時,要輸入的是 user A 的密碼,
而不是 user B 的密碼?
3. Linux 系統如此設計的意義是在哪裏呢?
同樣的東西在 windows,alice 則必須要在 logout 之後,
重新以 bob 的賬號登入,並且是以 bob 的密碼登入,
我一直搞不懂 Linux 爲什麼轉換成別人的 user account 是用自己的密碼
希望有熟悉 Linux 系統意義的前輩可以幫忙解惑,
謝謝
--
Tags:
Linux
All Comments
By Elvira
at 2020-10-22T13:44
at 2020-10-22T13:44
By Dora
at 2020-10-25T21:22
at 2020-10-25T21:22
By Jake
at 2020-10-27T16:49
at 2020-10-27T16:49
By Regina
at 2020-10-28T03:14
at 2020-10-28T03:14
By Emma
at 2020-10-28T15:10
at 2020-10-28T15:10
By Anthony
at 2020-10-29T05:57
at 2020-10-29T05:57
By Gilbert
at 2020-11-02T12:04
at 2020-11-02T12:04
By Kyle
at 2020-11-05T15:07
at 2020-11-05T15:07
By Emily
at 2020-11-05T17:50
at 2020-11-05T17:50
By Lily
at 2020-11-07T09:41
at 2020-11-07T09:41
By Dorothy
at 2020-11-11T22:25
at 2020-11-11T22:25
By Tom
at 2020-11-12T17:57
at 2020-11-12T17:57
By Mia
at 2020-11-13T14:42
at 2020-11-13T14:42
By Eden
at 2020-11-14T12:26
at 2020-11-14T12:26
By Brianna
at 2020-11-15T06:01
at 2020-11-15T06:01
By Agnes
at 2020-11-15T22:19
at 2020-11-15T22:19
By Sarah
at 2020-11-16T05:04
at 2020-11-16T05:04
By Delia
at 2020-11-16T15:16
at 2020-11-16T15:16
By Ida
at 2020-11-20T10:54
at 2020-11-20T10:54
By Connor
at 2020-11-24T05:28
at 2020-11-24T05:28
By Hamiltion
at 2020-11-24T21:18
at 2020-11-24T21:18
By Hamiltion
at 2020-11-25T07:29
at 2020-11-25T07:29
By Iris
at 2020-11-29T00:07
at 2020-11-29T00:07
By Liam
at 2020-12-03T11:00
at 2020-12-03T11:00
By Edward Lewis
at 2020-12-04T23:55
at 2020-12-04T23:55
By Madame
at 2020-12-08T22:23
at 2020-12-08T22:23
Related Posts
將系統打包成可安裝的iso檔
By Harry
at 2020-10-16T16:47
at 2020-10-16T16:47
關於pigz指令問題
By Steve
at 2020-10-15T10:43
at 2020-10-15T10:43
怪怪的nvme ssd 分割問題
By Carolina Franco
at 2020-10-13T13:56
at 2020-10-13T13:56
CentOS 7 政府單位可以免費使用嗎?
By William
at 2020-10-13T11:48
at 2020-10-13T11:48
請問 qemu 最多能掛幾個 hd image
By Ursula
at 2020-10-13T08:07
at 2020-10-13T08:07