When do su and also sudo make use of various passwords?

I have the ability to run anything making use of sudo; my password is approved. Yet whenever I attempt to do su from a covering, it falls short with:

su: wrong password

What can the trouble be?

2019-05-07 01:28:59
Source Share
Answers: 2

The su command without alternatives, will certainly fail to permit you to come to be the origin customer. It isn't requesting for your password, yet the origin password.

The sudo command constantly requests for your password.

2019-05-08 23:01:06

su suggests replacement customer and also if it is called with no debates you will certainly come to be the superuser. Consequently you need to enter the origin password.

This is some sort of unhandy if many individuals require to make use of commands for the system management or comparable things with extensive customer civil liberties. You simply do not desire that individuals have endless civil liberties by sharing just the same origin password.

The remedy for this sort of troubles is sudo (" replacement customer do "). This will certainly permit you to define the commands a person can invoke and also specify the approvals. For sudo you do not need to enter the origin password, yet the password of the customer that attempts to invoke a sudo command.

Some circulations have the origin customer impaired for protection factors. This can be one description why you aren't able to make use of su. Because instance, to get a covering with origin advantages make use of sudo -s ; -)

2019-05-08 21:10:14