Re: Exploring the possibilities of cron

2000-08-24 Thread kmself
On Wed, Aug 23, 2000 at 09:17:48PM -0500, Brent Harding wrote: > If the script makes the file, say for example > #!/bin/sh > echo enter a username to create > read $USER > echo enter user's password > read $PASSWORD > echo $USER:$PASSWORD >>/etc/requested.users > Then on the hour in cron have it

Re: Exploring the possibilities of cron

2000-08-23 Thread Mike Werner
kmself@ix.netcom.com wrote: > On Tue, Aug 22, 2000 at 09:37:05PM -0400, Mike Werner wrote: > > Brent Harding wrote: > > > How would cron do something such as, emailing a file once and awhile, > > > make > > > the file empty, and wait until the next run, but not mail anything if it's > > > empt

Re: Exploring the possibilities of cron

2000-08-23 Thread Brent Harding
If the script makes the file, say for example #!/bin/sh echo enter a username to create read $USER echo enter user's password read $PASSWORD echo $USER:$PASSWORD >>/etc/requested.users Then on the hour in cron have it mail to me the file with a subject of requested users, or piped the file to that

Re: Exploring the possibilities of cron

2000-08-23 Thread kmself
On Wed, Aug 23, 2000 at 07:18:00PM -0500, Brent Harding wrote: > > > >> deleting would be something tricky, wouldn't want him deleting what I > >> create. > > > >What are you deleting here? I'm confused. > If he got access to userdel, he could delete users he shouldn't delete, > just like, if he

Re: Exploring the possibilities of cron

2000-08-23 Thread Brent Harding
> >> deleting would be something tricky, wouldn't want him deleting what I >> create. > >What are you deleting here? I'm confused. If he got access to userdel, he could delete users he shouldn't delete, just like, if he wants mail on his domain, he could add and delete his own stuff only. I suppo

Re: Exploring the possibilities of cron

2000-08-23 Thread kmself
The problem is that email itself is insecure and unauthenticated, unless you're using GPG or similar signing methods. On Wed, Aug 23, 2000 at 11:17:57AM -0500, Brent Harding wrote: > Actually, I think it's going to email me the users to add, I would do it > with making a requestusers group, changi

Re: Exploring the possibilities of cron

2000-08-23 Thread kmself
On Wed, Aug 23, 2000 at 11:14:01AM -0500, Brent Harding wrote: > Doesn't he have to have access to /etc/shadow though? For what? If you provide sudo access to use the useradd or adduser commands, the commands run *as root*. Updating of /etc/passwd and /etc/shadow are transparent. > The delay

Re: Exploring the possibilities of cron

2000-08-23 Thread kmself
On Tue, Aug 22, 2000 at 09:37:05PM -0400, Mike Werner wrote: > Brent Harding wrote: > > How would cron do something such as, emailing a file once and awhile, > > make > > the file empty, and wait until the next run, but not mail anything if it's > > empty. I've never done much with emailing

Re: Exploring the possibilities of cron

2000-08-23 Thread kmself
On Tue, Aug 22, 2000 at 07:21:01PM -0500, Brent Harding wrote: > How would cron do something such as, emailing a file once and awhile, > make > the file empty, and wait until the next run, but not mail anything if it's > empty. I've never done much with emailing besides piping echo to mail

Re: Exploring the possibilities of cron

2000-08-22 Thread Mike Werner
Brent Harding wrote: > How would cron do something such as, emailing a file once and awhile, > make > the file empty, and wait until the next run, but not mail anything if it's > empty. I've never done much with emailing besides piping echo to mail, but > it's limited to one line. What I

Exploring the possibilities of cron

2000-08-22 Thread Brent Harding
How would cron do something such as, emailing a file once and awhile, make the file empty, and wait until the next run, but not mail anything if it's empty. I've never done much with emailing besides piping echo to mail, but it's limited to one line. Supposing every hour I want it to email me all