[sudo-users] sudo -u #uid on Kubuntu Feisty

Matthew Stier Matthew.Stier at us.fujitsu.com
Mon Aug 6 10:35:25 EDT 2007


The problem you were encountering, is that in most shells, the 
octothorpe (#) is a begin of comments character.

You displayed on means of escaping the character from interpretation.  
Another is single quoting. (Typically the entire token.)

ie:  sudo -u '#1000' .....

R (Chandra) Chandrasekhar wrote:
> Wesley Schwengle wrote:
>
>   
>> 15:17 pts/2 1 wesleys at eniac:/home/wesleys$ sudo -u \#1000 find . -name 
>> \*.tgz
>> ./Desktop/logger.tgz
>>     
>
> Thank you for pointing out that the # is indeed necessary but needs to be 
> escaped by a \ to give \#. That solved the problem and also explained why I was 
> getting the help text with a plain # :-)
>
> Chandra
> 06 Aug 07
> ____________________________________________________________ 
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>   


More information about the sudo-users mailing list