Hi
Is there a way to protect a certain mount from being full?
the main reason is that users do tar -xvf or gunzip. Is there a way to deny these 2 commands under this mount?
other suggestions?
thank you.
Hi
Is there a way to protect a certain mount from being full?
the main reason is that users do tar -xvf or gunzip. Is there a way to deny these 2 commands under this mount?
other suggestions?
thank you.
There is a concept called quotas which can be applied to a particular mount point.
See 7.Managing Quotas (Tasks) (System Administration Guide: Advanced Administration) - Sun Microsystems
Good one though...
But for your request, you can either have auditing in placed or have a script to search thru and remove large .tar or .gzip files in user home directories .
hi
actually all users logs in as a single user so I don't think that quota will work in my case.
could you please elaborate more on the audit thing?
I want to rmove the deflated files: unzipped and untarred.
thank you
Use can use this in your script:
-- remove core files
find / -name core -exec rm -f {} \; -o -fstype nfs -prune
OR
find / -name '*.tar' | xargs rm
Ouch ...
Start with the mount point, not /
At least suggest "rm -i"