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