[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: To run a program under another user.



Sthu Deus wrote:
> Thank You for Your time and answer, Nicholas:
> 
>> /etc/sudoers
>> user ALL = NOPASSWD:ALL
> 
> But I want security (password).
> 
> 

See 'man sudoers' for details:

  Defaults	authenticate

This is in /etc/sudoers, you will need root privilege to run visudo
command.  Requiring authentication should be the compiled in default, so
this may not actually be needed.  Putting it in should cause no problems.

The password required is that of the user running 'sudo', not the user
being sudo'd to, unlike 'su' which requires the target user's password.

You can change it to work like 'su', see the man page for details.

-- 
Bob McGowan


Reply to: