Results 1 to 9 of 9

Thread: Prevent users from writing MP3's and Movies in Linux

  1. #1
    Member registered user
    Join Date
    Nov 2004
    Location
    Queretaro Mexico
    Posts
    36

    Prevent users from writing MP3's and Movies in Linux

    Hi, I have this proyect i need to do, and I was hoping someone could help me put. I need to prevent users in a Linux server from writing illegal files in their accounts(mp3,pictures,mov,wav,bin,etc) wel, what I really need to know is to identify this files in case users change their extension to something like .doc,.txt,.trickyfile, etc. The specifications and restrictions are these:

    •That it is usable on any Unix system (i.e. Linux,Solaris workstations & server etc).
    •That it does not have a cost.
    •That it is legal (no pirated commercial solutions allowed).
    •That can identify the most different kinds of files possible.
    •That it finishes its task in the least amount of time.


    I hope someone can tell me go to do this, it will be a challenge, but I hope you guys can help me. Thanks.

    NOTE: I tryed using the file command, but it doesn't detect all files....

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Cleveland, OH
    Posts
    228
    Darn, my recommendation was going to be a script run by cron that deletes all *.mp3, *.ogg, *.etc from a users workspace using output from the file command. Have you thought about a good "paper" policy to discourage this activity? Places I've worked at tell you that you will receive disciplinary action up to and possibly including termination. I know not the answer to the question you asked, but my two cents, and worth every penny.

    ~pau1

  3. #3
    Member registered user
    Join Date
    Nov 2004
    Location
    Queretaro Mexico
    Posts
    36
    Well, since its a school project there is no problem by restricting the users. I have foound out that MIME may be helpful to identify the illegal files, anyone knows about this???

  4. #4
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    The new version of file can detect more types of files.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    No software in the world will be able to tell a legal mp3 or picture from an illegal one. That would be possible only by enforcing DRM (Digital Rights Management) for _all_ files, which is quite against the Open Source spirit.

    And the solution definitely can't be to forbid _all_ mp3s and pictures in a school setting - that wouldn't be freedom (of mind) at all.

    So imho the key is in education - education about what is acceptable and what not. And manual checks.

    Greetings,
    probono

  6. #6
    Member registered user
    Join Date
    Nov 2004
    Location
    Queretaro Mexico
    Posts
    36
    Believe me, I am more against it than you can think, but its my grade hahhaha, so i can't do anything about it. I think I almost got it, I will post back the solution tomorrow for all you guys to see, and maybe find a way to bypass this restriction....

  7. #7
    Junior Member
    Join Date
    Nov 2004
    Posts
    4
    why dont u give a try in programmain a module

    which will intercept all WRITE request to files, and files with extecsions of ur choice will be discarded.

    i guess that'll solve ur problem

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY USA
    Posts
    1,510
    Quote Originally Posted by bil_912
    why dont u give a try in programmain a module

    which will intercept all WRITE request to files, and files with extecsions of ur choice will be discarded.

    i guess that'll solve ur problem
    I gather you missed what emmbec said
    what I really need to know is to identify this files in case users change their extension to something like .doc,.txt,.trickyfile, etc.

  9. #9
    Could you just set up a cron job to search through the user directories using "find" to find files larger than 100K and simply report the name of the user and the file name to a log file. Then just scan the log periodically yourself.

    This wouldn't trap pictures as they're usually under 100K but why would you want to block pictures (or am I being too innocent?).

    Another option would be to put a wrapper around the music and movie players on the system to put the name of the user, the file name and when they ran it. You'd want to call the normal player afterwards otherwise people would quickly wise up.

    Must admit it does sound a bit draconian at your place.

    Mike

Similar Threads

  1. Writing to files from another Linux installation
    By thoroughfare in forum Tips and Tricks
    Replies: 2
    Last Post: 05-24-2004, 07:15 PM
  2. A couple of things we Linux users *really* need
    By Mistshadow in forum The Lounge
    Replies: 22
    Last Post: 01-29-2004, 04:02 PM
  3. Any packet-writing (CD-rw) software for Linux?
    By massai in forum Hardware & Booting
    Replies: 1
    Last Post: 01-27-2004, 05:49 AM
  4. XMMS plays low bitrate mp3's too fast
    By burke3gd in forum General Support
    Replies: 5
    Last Post: 10-10-2003, 04:57 AM
  5. Article: Migrating to Linux not easy for Windows users
    By Henk Poley in forum The Lounge
    Replies: 2
    Last Post: 04-06-2003, 03:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$21.50



Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory picture

Team T-FORCE VULCAN Z 32GB (2 x 16GB) PC RAM DDR4 3200 (PC4 25600) Memory

$47.59



Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3 picture

Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3

$13.50



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM picture

Crucial 16GB (2x 8GB) Kit DDR3L 1600MHz PC3-12800 UDIMM Desktop 240-Pin CL11 RAM

$22.85



Samsung PC4-19200 PC4 2400T 32GB DDR4 RAM Server Memory picture

Samsung PC4-19200 PC4 2400T 32GB DDR4 RAM Server Memory

$79.99



A-Tech 256GB 8x 32GB 4Rx4 PC4-17000L DDR4 2133 MHz ECC LRDIMM Server Memory RAM picture

A-Tech 256GB 8x 32GB 4Rx4 PC4-17000L DDR4 2133 MHz ECC LRDIMM Server Memory RAM

$319.92