Change user with "su" locally without password for specific user [closed]

StackOverflow https://stackoverflow.com/questions/21442390

  •  04-10-2022
  •  | 
  •  

문제

i have a Server with 4 users: a, b, c, admin
I have the plan to enable user a and b to change
to user admin with the command su (without sudo! [Because screen program]) without a password promt.

I had read something about the /etc/sudoers file but nothing which match really with my Problem.

With regards, Tim

Solved :: Bad Idea

Don't create an Account without an password.
It can enable workarounds for users ...

도움이 되었습니까?

해결책

You cannot do this with su. It requires a password, and it should. There is likely another approach you need to take if sudo is not an option. Otherwise they could always sudo -c 'su - admin' sort of thing.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top