sudo for users

Hello gurus,

Is there a flag or switch that you can added to sudoers file to always have users type 'sudo' prior to running a command?

I don't fully understand what you are asking for but I will give this a guess...

The sudoers file is only referenced when someone runs the sudo command. If you want all commands to run as root then you can sudo to root with 'sudo su -'.

If this does not answer your question please provide more information.

so basically i have users running certain commands, not as root, but other user, but when they sudo su - username i want them to be able to still type sudo when they need to execute a cmd as that user.

Example:
$: sudo su - control
control$: sudo somecmd

instead of -
control$: somecmd

Then you need to add the "control" user to sudo and give your users the "control" account password. If they need to sudo commands as the "control" user and you want a sudo shell then just sudo to root [or use Solaris profiles].

In short: no, what you're asking is not possible as requested.

that's what i thought.

thanks, seg!

I guess thats RBAC can help you
There cheat sheet , or docs.sun.com