On Thu, Nov 4, 2010 at 7:15 AM, Girish Venkatachalam <
[email protected]> wrote:

> $ su -c staff bin -c 'makewhatis /usr/local/man'


This invocation is wrong. Unless of course there is a username called _bin_
and you supply its password! Did you try this command before posting?

Only sudo takes login-class as argument for -c switch. In case of su the
argument accompanying -c will be the command that will be passed to shell
with -c switch. OP's question is not wrong. Read the man pages carefully.

-- 
*அகிலன்* (Akilan R)
(http://www.coding-aviator.blogspot.com)
*I should have no use for a paradise in which I should be deprived of the
right to prefer hell.*
  --Jean Rostand
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to