On Jan 11, 2008 7:38 PM, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Fri, Jan 11, 2008 at 04:56:57PM -0500, Philip Ganchev wrote: > > Ideally, you should not have to type "sudo". If a command requires > > privileges, the user should be able to type the command and be asked > > for the password. If she does not give the right password, the > > command is not executed. > > not a good idea. > most programs do something useful both with and without root privileges. > > eg: rm. > in most cases you do not need root access to remove a file, > in most other cases where removing fails you do not want to switch to > root to remove the file, but you just want to leave the file alone. > only in a very few cases you really want to remove the file with root > permissions.
I was not suggesting that the command should execute with root permissions all the time. It should execute with the least permissions it can to do the job, but ask for a password only if it needs more permissions. For example if the user executes "rm myfile" but "myfile" is owned by root, only then ask for a password and execute as root. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
