|
From: Leif M. <le...@ta...> - 2005-12-08 05:44:10
|
Nick, nic...@uk... wrote: > Do you want me to do that? > I can do it and email it in a moment... > I actually have been working on it. I decided to change the way the setting of the user is handled completely so the script now recursively calls itself if the user has been set and needs to be changed. This simplifies the script and makes it easier to guarantee that everything is set up correctly. Neale, thanks for bringing up your thread from last year. It was useful to go back and see what I had been thinking at the time. From reading my response, it looks like I had thought it all out but had not been taking into account the possibility of running as a user which had a password from a non-root user. That should be handled correctly now. Here is a link to that thread: http://sourceforge.net/mailarchive/message.php?msg_id=8899364 Could you guys take a look at the new script that I have attached and give it a try? If there are any requested changes, now is the time to put them in. The only thing I don't like about it as is is that you will be prompted for a password even if the script will do nothing other than show its usage. Fixing that is possible, but it would complicate the script. Not really sure if it matters. Cheers, Leif |