Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Question About Switching UIDs

__/ [ Chris F.A. Johnson ] on Sunday 14 May 2006 11:19 \__

> On 2006-05-14, Roy Schestowitz wrote:
>>
>> While it's fresh in my mind, I use:
>>
>> ,----[ Command ]
>>| sudo crontab cronfile -u roy
>> `----
>>
>> I don't have the -u option on my SuSE 8.1 box. I have just come to realise
>> it.
> 
>    Are you sure it doesn't have it, or does it not use the GNU
>    capability of placing options anywhere on the commandline?
> 
>    Did you try:
> 
> sudo -u roy crontab cronfile
> 
>    And, if you are doing this as roy, why did you not just do:
> 
> crontab cronfile
> 
>> < snip self />

Well, good question. At the time, if I recall correctly, I was assigning
these tasks to both root and roy, so I quickly ran:

 ,----[ Command ]
| sudo crontab cronfile -u root
| sudo crontab cronfile -u roy
 `----

The latter was only 3 keystrokes, plus ENTER. I then ran, having had the
superuser password in memory:

 ,----[ Command ]
| sudo crontab -u root -l
| sudo crontab -u roy -l
 `----

Just to double-check. But your point is nonetheless a good one and it puts me
a position of embarrassment and humility. *smile*

Best wishes,

Roy

-- 
Roy S. Schestowitz      |    Useless fact: 21978 x 4 = 21978 backwards
http://Schestowitz.com  |  GNU is Not UNIX  ¦     PGP-Key: 0x74572E8E
 11:50am  up 16 days 18:47,  12 users,  load average: 0.08, 0.31, 0.48
      http://iuron.com - proposing a non-profit search engine

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index