sudo permission doesn't time out durring apt-get upgrade

j0h

Consider this: You type $sudo apt-get upgrade and get a list of things that need upgrading with a "Y\n" confirmation. before you can read the list, and type "Y" or "n", the phone rings, or your boss comes in, or you do some thing else. You come back an hour later, and hit Y to install updates.

you are not prompted again for a password. presumably, any more sudo commands in the shell will execute, because the timer has been on hold waiting for the user input. Or a user can kill the update process and do something like sudo -i and simply stay in root indefinitely.

I am using ubuntu mate 14.04

is this a noteworthy security exception? Should I try to report it some place? If so, where?

saiarcot895

You aren't prompted for a password because sudo has done it's job and started apt-get as root. While it's in the prompt, the apt-get process is still running, and so since it's still running as root, there's no need to enter your password again.

In other words, as long as a sudo'ed process is running, you won't be asked to enter your password again for that process; sudo doesn't interrupt the process every 15 minutes (the default timeout) and ask for your password.

Now, if you were to open another terminal and try to run another process under sudo, then you will be prompted for your password.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

'sudo apt-get upgrade'수행 중 문제

분류에서Dev

sudo apt-get upgrade results in 404 errors for everything

분류에서Dev

"sudo apt-get upgrade"오류 (Ubuntu 14.04)

분류에서Dev

선택적 sudo apt-get dist-upgrade

분류에서Dev

How to fix error while sudo apt-get upgrade

분류에서Dev

Can't run apt-get upgrade ubuntu 14.04 gnome

분류에서Dev

sudo apt-get upgrade를 할 때 오류가 발생합니다.

분류에서Dev

"sudo apt-get upgrade"가 작동하지 않음

분류에서Dev

Parrot OS에서 "sudo apt-get upgrade"에서 멈춤

분류에서Dev

sudo apt-get upgrade 및 상단 빨간색 빼기 기호

분류에서Dev

sudo apt-get upgrade ubuntu 17.4의 403 금지 오류

분류에서Dev

Ubuntu sudo apt-get upgrade와 sudo apt-get install의 차이점은 무엇입니까?

분류에서Dev

관리 디렉토리를 잠글 수 없습니다 (sudo apt-get upgrade && apt-get update)

분류에서Dev

sudo apt-get dist-upgrade를 사용한 후 터미널이 정지됨

분류에서Dev

apt-get doesn't work correctly in Ubuntu 18.04

분류에서Dev

sudo apt upgrade command is not working for ubuntu 16.04 LTS

분류에서Dev

Can't add applications using sudo apt-get and unofficial ppa: unable to lock directory

분류에서Dev

sudo apt-get update throwing error

분류에서Dev

'apt-get upgrade'가 멈춤

분류에서Dev

Disable changelog for apt-get upgrade?

분류에서Dev

sudo apt-get upgrade 결과 모든 것에 대해 404 오류가 발생합니다.

분류에서Dev

sudo apt-get upgrade-sublime-text 패키지를 다시 설치해야합니까?

분류에서Dev

소프트웨어 업데이터는 sudo apt-get upgrade와 동일합니까?

분류에서Dev

'sudo apt-get'과 'sudo -E apt-get'의 차이점

분류에서Dev

'sudo apt-get'과 'sudo -E apt-get'의 차이점

분류에서Dev

sudo apt-get curl and sudo apt-get wget gives "Invalid operation"

분류에서Dev

sudo apt-get install & sudo apt-get -f install returning error

분류에서Dev

내 ssh 사용자에게`apt-get update` 및`apt-get upgrade`에 대해 비밀번호없는 sudo를 제공하는 것이 안전합니까?

분류에서Dev

Apt get install php7.1-dev extension doesn't work

Related 관련 기사

  1. 1

    'sudo apt-get upgrade'수행 중 문제

  2. 2

    sudo apt-get upgrade results in 404 errors for everything

  3. 3

    "sudo apt-get upgrade"오류 (Ubuntu 14.04)

  4. 4

    선택적 sudo apt-get dist-upgrade

  5. 5

    How to fix error while sudo apt-get upgrade

  6. 6

    Can't run apt-get upgrade ubuntu 14.04 gnome

  7. 7

    sudo apt-get upgrade를 할 때 오류가 발생합니다.

  8. 8

    "sudo apt-get upgrade"가 작동하지 않음

  9. 9

    Parrot OS에서 "sudo apt-get upgrade"에서 멈춤

  10. 10

    sudo apt-get upgrade 및 상단 빨간색 빼기 기호

  11. 11

    sudo apt-get upgrade ubuntu 17.4의 403 금지 오류

  12. 12

    Ubuntu sudo apt-get upgrade와 sudo apt-get install의 차이점은 무엇입니까?

  13. 13

    관리 디렉토리를 잠글 수 없습니다 (sudo apt-get upgrade && apt-get update)

  14. 14

    sudo apt-get dist-upgrade를 사용한 후 터미널이 정지됨

  15. 15

    apt-get doesn't work correctly in Ubuntu 18.04

  16. 16

    sudo apt upgrade command is not working for ubuntu 16.04 LTS

  17. 17

    Can't add applications using sudo apt-get and unofficial ppa: unable to lock directory

  18. 18

    sudo apt-get update throwing error

  19. 19

    'apt-get upgrade'가 멈춤

  20. 20

    Disable changelog for apt-get upgrade?

  21. 21

    sudo apt-get upgrade 결과 모든 것에 대해 404 오류가 발생합니다.

  22. 22

    sudo apt-get upgrade-sublime-text 패키지를 다시 설치해야합니까?

  23. 23

    소프트웨어 업데이터는 sudo apt-get upgrade와 동일합니까?

  24. 24

    'sudo apt-get'과 'sudo -E apt-get'의 차이점

  25. 25

    'sudo apt-get'과 'sudo -E apt-get'의 차이점

  26. 26

    sudo apt-get curl and sudo apt-get wget gives "Invalid operation"

  27. 27

    sudo apt-get install & sudo apt-get -f install returning error

  28. 28

    내 ssh 사용자에게`apt-get update` 및`apt-get upgrade`에 대해 비밀번호없는 sudo를 제공하는 것이 안전합니까?

  29. 29

    Apt get install php7.1-dev extension doesn't work

뜨겁다태그

보관