RE: [Nolug] Wireless

From: -ray <ray_at_ops.selu.edu>
Date: Wed, 24 Nov 2004 10:45:28 -0600 (CST)
Message-ID: <Pine.LNX.4.44.0411241032010.31369-100000@romulus.csd.selu.edu>

On Wed, 24 Nov 2004, Chris Reames wrote:

> > Delete files that haven't changed in 14 days:
> > find /tmp -mtime +14 -exec rm -rf {} \;
>
> This one I've been wanting to do on the hylafax recvq directory.
> Is there a way to run the command as SU without being SU first?

Normally you'd run it once a day from /etc/crontab as root (or any other
user). Most of the time cron runs as root. Or you can run it using sudo.
Add your user account to /etc/sudoers, then you could just 'sudo find /tmp
....'

In general you CAN'T run a command as root unless you're already
root.....that's the only security that Unix has :).

ray

___________________
Nolug mailing list
nolug@nolug.org
Received on 11/24/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST