- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Find file types
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2006 05:25 AM
тАО10-30-2006 05:25 AM
find files of types .mov .wav , etc....
that users should not have in their UNIX home
directory?
Also, what are the bad file types now a days?
I'm using something like:
find . -type f | egrep "\.mov$|\.wav$|\.au$"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2006 05:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2006 05:33 AM
тАО10-30-2006 05:33 AM
Re: Find file types
# find /home \( -name '*.mov' -o -name '*.wav' -o -name '*.au' \) -type f
"Bad files" are whatever you classify as such. You might want to add .avi, .mp3, and .ogg to your list.
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2006 06:05 AM
тАО10-30-2006 06:05 AM
Re: Find file types
manufacturing so there is no need to
have Movies, Sound files or any other
junk that comes from the Internet.
MS Word, MS Excel and any other work
related file extension are okay. e.g.
.tar
.xls
.txt
.
.
.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2006 08:38 AM
тАО10-30-2006 08:38 AM
Re: Find file types
file /home/user1/*
If there are concerns about inappropriate use of the system, it is far better to remove shell access by replacing the shell with a menu program. The users can do the work they need but have no access to create or delete files except through the menu. And this menu program will deny any ftp access by these users due to the menu program.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-30-2006 11:37 AM
тАО10-30-2006 11:37 AM
Re: Find file types
Locking users into a menu system is most secure of course.
A .wav, .avi, or .mpg file could simply be a
component to training / education / documentation and be legit business or it could be 'adult entertainment'.
If you are too obvious about looking for specific file types a modestly sophisticated user will just hide them by calling them 'bad files' .txt or .dat.
(of course that would move them from the realm of 'I did not know I was not supposed to' to 'knowingly going against the rules')
You may want to add a "-size +1000000" to weeds out little stuff.
in fact you may want to consider making size the driver: Anything above nnn kb is suspect unless type is ".dbf" ".dat"...
Also, several 'bad' files are self-identifying. Just read the first 100 bytes or so and look for large files, regardless of the name, and look for 'known' strings in known places.
Doesn't the 'file' tool have some useful heuristics built in?
fwiw,
Hein.