chandra
August 6th, 2007, 09:27 AM
Folks,
I wish to invoke sudo with the -u option and want to use the UID rather than the username. The man page says (among other things):
sudo [-u username|#uid]
However, when I invoke sudo with, say UID 1000, as:
sudo -u 1000 <some command>
I get
sudo: no passwd entry for 1000!
If I try
sudo -u #1000 <some command>
I only get the help text.
Can anyone shed some light on this behaviour and help out, please?
Thank you.
I wish to invoke sudo with the -u option and want to use the UID rather than the username. The man page says (among other things):
sudo [-u username|#uid]
However, when I invoke sudo with, say UID 1000, as:
sudo -u 1000 <some command>
I get
sudo: no passwd entry for 1000!
If I try
sudo -u #1000 <some command>
I only get the help text.
Can anyone shed some light on this behaviour and help out, please?
Thank you.