Contents
Can You Sudo su-user2 from user1?
But the other thing that i would like also to do, is to be able to sudo su – user2 from user1, by using the ssh keys, so i can avoid the password prompting. but still i am not able to do it. I also tried what i found on the internet regarding agent forwarding, but nothing. Can anyone help me on how to do this or point me to the right direction?
How to authenticate with su without a password?
/path/to/script has the permissions 755 (rwxr-xr-x) and the following content: the user to authenticate is martin-test. This might be the possible best way. su is not meant to do that — sudo is. This means: whenever user-a executes sudo -u user-b, let him go without asking for the password.
How to get sudo to work passwordless to another user?
To get sudo to work passwordless to another user these are the changes required (perform them with super user access): The examples above in the config shows the user first then by group – you only need 1 of the two – usermod -a -G group2 user1 usermod -a -G group2 user2 etc.. Thanks for contributing an answer to Stack Overflow!
How to fix root-su authentication failure after setting new?
Hence I did the following on my newly compiled system: and set a new root password. Then I logged in as root. However I get the error message su-Authentication failure. How do I solve this problem? Has this to do with the /usr/bin file permissions? What setting should I change to be able to login as root?
Can you create a private SSH key for another user?
You could do that with ssh-keygen, however, remember that the private key is meant to be private to the user so you should be very careful to keep it safe- as safe as the user’s password. Or even safer, as the user is not likely to be required to change it upon first login.
Can you use sudo instead of Su SSH?
Task was to take data from smartctl (which requires root credentials), from server with disabled ssh-root and disabled sudo. This will of course also work with sudo instead of su. here is the full workable code in Python with Paramiko implementation.
How to make Su ssh login as user?
Perhaps somewhat off topic but this could be achieved with Python and the paramiko module: