Re: [newbie] logging off

2005-02-23 Thread Anne Wilson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 23 Feb 2005 08:34, Rosemary McGillicuddy wrote:
 This just an idle question really ...

 Over the years people have told me how stable their linux set ups are,
 and that there is no need to log off, or shut down each day.  How valid
 is this?  In Windows I always used to shut down at end of the day.
 WinXP wasn't so bad, but both 95 and 98 required lots of reboots.  I did
 have mandrake going all night last night as I had been to the easyurpmi
 site and it took forever to update the data base.

 Is it good for the computer to leave it on all the time?

As far as hardware is concerned you'll find strong arguments on both sides.  
As far as Mandrake is concerned, housekeeping has to be done sometime.  By 
default it is done in the middle of the night.  If you switch off at night 
you are heading for trouble unless you make other provision for housekeeping.  
This is done by installing anacron, which makes sure that any housekeeping 
that has not been done overnight gets done when you boot up.  HTH

Anne
- -- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCHFLfkFAvMr/nNX8RAnkTAJ4rAq5ZNJUHFjlXvM3/XFlhjw5lFwCfWwFZ
gMXx+gbkcWLiiBtjurKphOU=
=mHpq
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Rob Blomquist
On Wednesday 23 February 2005 12:34 am, Rosemary McGillicuddy wrote:
 This just an idle question really ...

 Over the years people have told me how stable their linux set ups are,
 and that there is no need to log off, or shut down each day.  How valid
 is this?  In Windows I always used to shut down at end of the day.
 WinXP wasn't so bad, but both 95 and 98 required lots of reboots.  I did
 have mandrake going all night last night as I had been to the easyurpmi
 site and it took forever to update the data base.

 Is it good for the computer to leave it on all the time?

My monitor is turned off in 20 minutes. My computer stays up for days on end. 
Right now uptime is saying:
uptime
 02:16:54 up 8 days,  2:43,  1 user,  load average: 2.40, 2.27, 2.11

Shut down the screen, leave the computer on, and run something like [EMAIL 
PROTECTED] 
for it to do on its down time.

Rob

-- 
Linux User #183693
http://counter.li.org/


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Duncan Anderson
Rosemary McGillicuddy wrote:
Is it good for the computer to leave it on all the time?
I always leave my UNIX and Linux boxes on all the time (between power 
outages), and they love it!

It's OK to switch the display off, if it doesn't do so automatically.
If you prefer downing the box at the end of the day, that's also fine. :-)
If you use modem communications and you live in an area where lightning 
storms are common, it's a good idea to disconnect the phone jack from 
your modem when you are not using it, but it's not really necessary to 
shut down the machine.

cheers
Duncan


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread riccardo
On Wednesday 23 February 2005 08:34 am, Rosemary McGillicuddy wrote:
 Is it good for the computer to leave it on all the time?


 ~ maybe, it is stopping  starting that puts most wear on PC

 . . . best leave puter on 24/7

 [ sometimes have puter running for a month without a shutdown ]

 - just unplug the monitor power at night.

 ~ during spare-time perhaps you might like to do a bit of 
[EMAIL PROTECTED] , [EMAIL PROTECTED], or something like that?

best rgds
___




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Rosemary McGillicuddy


As far as hardware is concerned you'll find strong arguments on both 
sides.  
As far as Mandrake is concerned, housekeeping has to be done 
sometime.  By
default it is done in the middle of the night.  If you switch off at 
night
you are heading for trouble unless you make other provision for 
housekeeping.  
This is done by installing anacron, which makes sure that any 
housekeeping
that has not been done overnight gets done when you boot up.  HTH

Anne

The housekeeping gets done automatically, or do I need to set something up?
Thanks
Rosemary
-

Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Rosemary McGillicuddy
riccardo wrote:
On Wednesday 23 February 2005 08:34 am, Rosemary McGillicuddy wrote:
 

Is it good for the computer to leave it on all the time?
   


~ maybe, it is stopping  starting that puts most wear on PC
. . . best leave puter on 24/7
[ sometimes have puter running for a month without a shutdown ]
- just unplug the monitor power at night.
~ during spare-time perhaps you might like to do a bit of 
[EMAIL PROTECTED] , [EMAIL PROTECTED], or something like that?

best rgds
___

 

I'm not keen to have computer connected to Internet for long periods as 
I don't have a firewall or any other security set up yet in Mandrake.
Fine about leaving it on though.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com

 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Anne Wilson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 23 Feb 2005 14:51, Rosemary McGillicuddy wrote:

 The housekeeping gets done automatically, or do I need to set something up?

By default it happens during the night in cron jobs.  Anacron does something 
similar if you can't leave it on, and just installing is all you need to do.

Anne
- -- 
Registered Linux User No.293302 (http://counter.li.org/)
Have you visited http://twiki.mdklinuxfaq.org yet?  Mandrake at all levels
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFCHJ1FkFAvMr/nNX8RAnmvAJ9xPEKNExtB1pu0a+uo4x9WbjVOeQCfQ4C1
j/2EoTGGVl7NAEtBgsNkoGg=
=EpvP
-END PGP SIGNATURE-


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Mikkel L. Ellertson
Rosemary McGillicuddy wrote:
This just an idle question really ...
Over the years people have told me how stable their linux set ups are, 
and that there is no need to log off, or shut down each day.  How valid 
is this?  In Windows I always used to shut down at end of the day.  
WinXP wasn't so bad, but both 95 and 98 required lots of reboots.  I did 
have mandrake going all night last night as I had been to the easyurpmi 
site and it took forever to update the data base.
Is it good for the computer to leave it on all the time?

Thanks
Rosemary
I like to tinker too much, so the bast I have managed is to have a 
system up and runniing for about 300 days. This was a firewall/mail 
gateway/web server connected to the Internet 24/7. The only time it was 
unhappy was when a car hit the power poll down the street. The UPS ran 
out of power before they restored power to my house. Its harder to get 
that kind of uptimes if you are running cutting edge, and connected 
directly to the internet - you end up having to update the kernel more 
often then that now days. If it were not for kernel updates, a Linux box 
on a good UPS would go for years without a reboot.

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Derek Jennings
On Wednesday 23 February 2005 14:54, Rosemary McGillicuddy wrote:
 riccardo wrote:
 On Wednesday 23 February 2005 08:34 am, Rosemary McGillicuddy wrote:
 Is it good for the computer to leave it on all the time?
 
 
 
  ~ maybe, it is stopping  starting that puts most wear on PC
 
  . . . best leave puter on 24/7
 
  [ sometimes have puter running for a month without a shutdown ]
 
  - just unplug the monitor power at night.
 
  ~ during spare-time perhaps you might like to do a bit of
 [EMAIL PROTECTED] , [EMAIL PROTECTED], or something like that?
 
 best rgds
 ___

 I'm not keen to have computer connected to Internet for long periods as
 I don't have a firewall or any other security set up yet in Mandrake.
 Fine about leaving it on though.

Well it is only a few clicks in MandrakeControlCentreSecurityFirewall to 
turn the firewall on.  But even without a firewall your Linux computer is 
remarkably safe compared to a Windows machine.
I forget the web address, but sometime  ago a security analysis site put a 
Mandrake computer with default settings on the web without a firewall, and 
invited all comers to try to crack it. It took over 6 months before anyone 
managed to find a way in.

And before you ask, No you do not need any anti virus software in Linux.
Effectively there are no Linux viruses. You are not going to get infected.
The only time you need anti virus software is if you act as a mail server for 
Windows clients and want to protect Windows users from infection.

derek

-- 
www.jennings.homelinux.net
http://twiki.mdklinuxfaq.org


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Mikkel L. Ellertson
Mikkel L. Ellertson wrote:
Rosemary McGillicuddy wrote:
This just an idle question really ...
Over the years people have told me how stable their linux set ups are, 
and that there is no need to log off, or shut down each day.  How 
valid is this?  In Windows I always used to shut down at end of the 
day.  WinXP wasn't so bad, but both 95 and 98 required lots of 
reboots.  I did have mandrake going all night last night as I had been 
to the easyurpmi site and it took forever to update the data base.
Is it good for the computer to leave it on all the time?

Thanks
Rosemary
I like to tinker too much, so the bast I have managed is to have a 
system up and runniing for about 300 days. This was a firewall/mail 
gateway/web server connected to the Internet 24/7. The only time it was 
unhappy was when a car hit the power poll down the street. The UPS ran 
out of power before they restored power to my house. Its harder to get 
that kind of uptimes if you are running cutting edge, and connected 
directly to the internet - you end up having to update the kernel more 
often then that now days. If it were not for kernel updates, a Linux box 
on a good UPS would go for years without a reboot.

Mikkel

I forgot part of this. Logging off is probably a good idea. It depends 
on the physical security of your system. Do you have to worry about 
someone being able to walk up to your system, and accessing you files? 
Do you have files that you don't want your 
boyfriend/husband/kids/sister/girlfriend/etc to be able to read/delete? 
If you live alone, don't have to worry about visitors accessing the 
computer, and don't have any sensitive information on your computer, 
then you don't have to log off.

Personally, I consider logging off in the same class as not leaving my 
checkbook or bank statement laying out. I don't really want to share 
that information.

The other consideration about logging out is that some people like to 
play practical jokes on other people's computers. While it takes more 
knowledge to do it on a Linux system, there are still some nasty tricks 
you can play on a person. I can think of some interesting programs to 
launch in place of the normal window manager... (Grinning about an old 
DOS floppy cleaning program, and screen inverter...)

Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Pablo Ortuzar
On Wednesday 23 February 2005 16:50, Mikkel L. Ellertson wrote:
 Mikkel L. Ellertson wrote:
  Rosemary McGillicuddy wrote:
(snip)

 I forgot part of this. Logging off is probably a good idea. It depends
 on the physical security of your system. Do you have to worry about
 someone being able to walk up to your system, and accessing you files?
 Do you have files that you don't want your
 boyfriend/husband/kids/sister/girlfriend/etc to be able to read/delete?
 If you live alone, don't have to worry about visitors accessing the
 computer, and don't have any sensitive information on your computer,
 then you don't have to log off.

 Personally, I consider logging off in the same class as not leaving my
 checkbook or bank statement laying out. I don't really want to share
 that information.

 The other consideration about logging out is that some people like to
 play practical jokes on other people's computers. While it takes more
 knowledge to do it on a Linux system, there are still some nasty tricks
 you can play on a person. I can think of some interesting programs to
 launch in place of the normal window manager... (Grinning about an old
 DOS floppy cleaning program, and screen inverter...)

 Mikkel
Hello,

right-click on empty desktop, choose 'logoutuser ', choose 'end session 
only'. Anyone trying  to read/delete your files will have to know your 
password.
-- 
Pablo Ortúzar



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Mikkel L. Ellertson
Pablo Ortuzar wrote:
On Wednesday 23 February 2005 16:50, Mikkel L. Ellertson wrote:
Mikkel L. Ellertson wrote:
Rosemary McGillicuddy wrote:
(snip)
I forgot part of this. Logging off is probably a good idea. It depends
on the physical security of your system. Do you have to worry about
someone being able to walk up to your system, and accessing you files?
Do you have files that you don't want your
boyfriend/husband/kids/sister/girlfriend/etc to be able to read/delete?
If you live alone, don't have to worry about visitors accessing the
computer, and don't have any sensitive information on your computer,
then you don't have to log off.
Personally, I consider logging off in the same class as not leaving my
checkbook or bank statement laying out. I don't really want to share
that information.
The other consideration about logging out is that some people like to
play practical jokes on other people's computers. While it takes more
knowledge to do it on a Linux system, there are still some nasty tricks
you can play on a person. I can think of some interesting programs to
launch in place of the normal window manager... (Grinning about an old
DOS floppy cleaning program, and screen inverter...)
Mikkel
Hello,
right-click on empty desktop, choose 'logoutuser ', choose 'end session 
only'. Anyone trying  to read/delete your files will have to know your 
password.

Strange - that doesn't work in Blackbox...  :-)
Mikkel
--
  Do not meddle in the affairs of dragons,
for you are crunchy and taste good with Ketchup!

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Aron Smith
On Wednesday 23 February 2005 12:34 am, Rosemary McGillicuddy wrote:
 This just an idle question really ...

 Over the years people have told me how stable their linux set ups are,
 and that there is no need to log off, or shut down each day.  How valid
 is this?  In Windows I always used to shut down at end of the day.
 WinXP wasn't so bad, but both 95 and 98 required lots of reboots.  I did
 have mandrake going all night last night as I had been to the easyurpmi
 site and it took forever to update the data base.

 Is it good for the computer to leave it on all the time?
Actualy it's better it does a lot of checks at 4:00 am

 Thanks
 Rosemary


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Aron Smith
On Wednesday 23 February 2005 06:51 am, Rosemary McGillicuddy wrote:
  As far as hardware is concerned you'll find strong arguments on both
  sides.
  As far as Mandrake is concerned, housekeeping has to be done
  sometime.  By
  default it is done in the middle of the night.  If you switch off at
  night
  you are heading for trouble unless you make other provision for
  housekeeping.
  This is done by installing anacron, which makes sure that any
  housekeeping
  that has not been done overnight gets done when you boot up.  HTH
 
  Anne

 The housekeeping gets done automatically, or do I need to set something up?
Pretty automatic depends on your security level I suppose

 Thanks
 Rosemary


 -

 
 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com
 Join the Club : http://www.mandrakeclub.com
 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Aron Smith
On Wednesday 23 February 2005 06:54 am, Rosemary McGillicuddy wrote:
 riccardo wrote:
 On Wednesday 23 February 2005 08:34 am, Rosemary McGillicuddy wrote:
 Is it good for the computer to leave it on all the time?
 
 
 
  ~ maybe, it is stopping  starting that puts most wear on PC
 
  . . . best leave puter on 24/7
 
  [ sometimes have puter running for a month without a shutdown ]
 
  - just unplug the monitor power at night.
 
  ~ during spare-time perhaps you might like to do a bit of
 [EMAIL PROTECTED] , [EMAIL PROTECTED], or something like that?
 
 best rgds
 ___

 I'm not keen to have computer connected to Internet for long periods as
 I don't have a firewall or any other security set up yet in Mandrake.
 Fine about leaving it on though.
firewall is easy enough
star--system--configuration--configure my computer 
--rootpassword---Security--Firewall
uncheck the top box
that will do for a basi firewall

 
 
 
 Want to buy your Pack or Services from MandrakeSoft?
 Go to http://www.mandrakestore.com
 Join the Club : http://www.mandrakeclub.com
 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Aron Smith
On Wednesday 23 February 2005 07:36 am, Mikkel L. Ellertson wrote:
 Rosemary McGillicuddy wrote:
  This just an idle question really ...
 
  Over the years people have told me how stable their linux set ups are,
  and that there is no need to log off, or shut down each day.  How valid
  is this?  In Windows I always used to shut down at end of the day.
  WinXP wasn't so bad, but both 95 and 98 required lots of reboots.  I did
  have mandrake going all night last night as I had been to the easyurpmi
  site and it took forever to update the data base.
  Is it good for the computer to leave it on all the time?
 
  Thanks
  Rosemary

 I like to tinker too much, so the bast I have managed is to have a
 system up and runniing for about 300 days. This was a firewall/mail
 gateway/web server connected to the Internet 24/7. The only time it was
 unhappy was when a car hit the power poll down the street. The UPS ran
 out of power before they restored power to my house. Its harder to get
 that kind of uptimes if you are running cutting edge, and connected
 directly to the internet - you end up having to update the kernel more
 often then that now days. If it were not for kernel updates, a Linux box
 on a good UPS would go for years without a reboot.
I remember that discussion IIRC you were online at the time
your syatem crashed and you recovered rather quickly

 Mikkel


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread riccardo
On Wednesday 23 February 2005 03:48 pm, Derek Jennings wrote:
 Effectively there are no Linux viruses

 perhaps it is no bad idea to install rootkit hunter, and have it run 
every night, by cron job :-

http://www.rootkit.nl

.

 whereas most Virii are aimed at M$ machines, it may be interesting to 
have a virus checker, run on ones Mail directory, by cron, hourly, to 
get the feel of what Virus is in fashion ~  The Icelandic F-PROT is 
good, and free for Home Users.

 f-prot updates Virus Signatures about weekly :-

www.f-prot.com

best rgds





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread riccardo
On Wednesday 23 February 2005 02:51 pm, Rosemary McGillicuddy wrote:
 The housekeeping gets done automatically, or do I need to set
 something up?
___

 On my PC one can see the housekeeping that in done by cron, in file
 /etc/cron.daily   [ my system is very old . . . yours will prolly be 
slightly different ] . . . things like log rotation - cleaning old log 
files.

 the sort of housekeeping that you will wish to set up for your self :-

 you can edit cron, using the command as root :-

crontab -e

.

 ~ maybe, you will like to make yourself a series of small bash scripts 
to be executed by cron, for automated backups, say, using RSYNC

 you might like cron to tar.gz your home directory at 9 am and 6 pm each 
day, and date-stamp the archives to a separate backup directory.

 maybe you want cron to backup your data files to a separate partition 
each 30 minutes.

 ~ maybe, 2 nights a week, you might like to have cron rsync your 
whole system to a partition on a reserve HardDisk

 ~ that way, when Lightning, or, Murphy strikes, you will be smelling of 
violets  :))

best rgds





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] logging off

2005-02-23 Thread Fernando Arturo Gómez Flores

- Original Message - 
From: Aron Smith [EMAIL PROTECTED]
To: newbie@linux-mandrake.com
Sent: Wednesday, February 23, 2005 10:18 AM
Subject: Re: [newbie] logging off


 On Wednesday 23 February 2005 07:36 am, Mikkel L. Ellertson wrote:
  Rosemary McGillicuddy wrote:
   This just an idle question really ...
  
   Over the years people have told me how stable their linux set ups are,
   and that there is no need to log off, or shut down each day.  How
valid
   is this?  In Windows I always used to shut down at end of the day.
   WinXP wasn't so bad, but both 95 and 98 required lots of reboots.  I
did
   have mandrake going all night last night as I had been to the
easyurpmi
   site and it took forever to update the data base.
   Is it good for the computer to leave it on all the time?
  
   Thanks
   Rosemary
 

I'm new to Mandrake. However, I once had a server running for 13 months
without rebooting. Fedora Core 2 was installed. The only reason for
rebooting after 13 months  was that the electricity power went down for six
hours, and my 3 no-break didn't endure that long (it did for four hours or
so).

Fernando Gómez.
==
Registered Linux User 381647.
Usuario Registrado de Linux 381647
http://counter.li.org




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Logging off a user ?

2000-11-02 Thread Mark Weaver

the answer to your question is yes, and you may want to search the
archives on this one because I think something like this was covered about
a month ago, but I can't recall enough of the details to relate the
adventure for you. Ordinarily I would simply search my message database
and forward the appropriate message(s) to you covering this subject since
I keep almost all of them from the list. However, after this weekend's
tragic implosion of my partition tables I've lost better than 3GB worth of
data. My list archive was one of the casualties.

-- 
Mark

Larry is NOT a cucumber...he's a stinkin pickle...
WITH WARTS!

  registered linux user # 182469
=/\= PINE 4.21 =/\=
**

Surprisingly on Wed, 1 Nov 2000 Renaud OLGIATI had this to say!

 Is there a way fior the sysadmin to log a user off ?
 
 My son liked Kboard so much he spent the whole night playing, and I was
 thinking of finding a way to keep him off the computer during the hours
 he's supposed to sleep.
 
 Now, If there was a way for root to terminate the session of a user, I
 thought I coul put in crontab a job to run every minute between the hours
 of 20 00 and 08 00, that would grep the output of who, and log him off if
 he's logged in.
 
 But can it be done ?
 
 TIA,
 
 Cheers,
 
 A worried father, on the banks of the Paraguay River.
  --   
   Blessed are they who can laugh at themselves
 for they shall never cease to be amused.
  
   ---  http://personales.conexion.com.py/~rolgiati  ---
  
 
 





RE: [newbie] Logging off a user ?

2000-11-02 Thread Wignall, Mark T

kill -9 PID

is the command you want to wipe out any task running.  User ROOT can kill
tasks not associated with this, so it woul d have to be a ROOT owned crontab
entry.

Also you may want to look at the grep piping into cut to get the acual PID's
of the the output generated from the grep.  Do a man on cut for the
specifics.

Lastly I wouldn't put cron entry to run every minute.  Better yet is to have
a shell script that runs the grep|cut as mentioned, sleeps for 1 minute, the
loops back to the top.  Use Cron to kickstart it for the first time, at
8:00pm or whatever once a day.  The script can check to see if the script
is already running, and if so, just exists gracefully so that you don't have
a bunch of the same script running.  

Essentially use Cron as watchdog, but the script actually performs the work
and goes to sleep and then works again.

Cheers!
Mark Wignall

-Original Message-
From: Mark Weaver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 7:17 PM
To: Renaud OLGIATI
Cc: *List Linux-Newbie-MK
Subject: Re: [newbie] Logging off a user ?


the answer to your question is yes, and you may want to search the
archives on this one because I think something like this was covered about
a month ago, but I can't recall enough of the details to relate the
adventure for you. Ordinarily I would simply search my message database
and forward the appropriate message(s) to you covering this subject since
I keep almost all of them from the list. However, after this weekend's
tragic implosion of my partition tables I've lost better than 3GB worth of
data. My list archive was one of the casualties.

-- 
Mark

Larry is NOT a cucumber...he's a stinkin pickle...
WITH WARTS!

  registered linux user # 182469
=/\= PINE 4.21 =/\=
**

Surprisingly on Wed, 1 Nov 2000 Renaud OLGIATI had this to say!

 Is there a way fior the sysadmin to log a user off ?
 
 My son liked Kboard so much he spent the whole night playing, and I was
 thinking of finding a way to keep him off the computer during the hours
 he's supposed to sleep.
 
 Now, If there was a way for root to terminate the session of a user, I
 thought I coul put in crontab a job to run every minute between the hours
 of 20 00 and 08 00, that would grep the output of who, and log him off if
 he's logged in.
 
 But can it be done ?
 
 TIA,
 
 Cheers,
 
 A worried father, on the banks of the Paraguay River.
  --   
   Blessed are they who can laugh at themselves
 for they shall never cease to be amused.
  
   ---  http://personales.conexion.com.py/~rolgiati  ---