vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am currently running samba, on a redhat 8.0 machine. One of my network users deleted a file that was critical from their workstation. I am looking to create a directory that will store the files deleted off the server (similar to a windows recycling bin) so I can permanatly delete them later. If anyone can reply with web addresses or information, I would greatly appreciate it. Thank You In Advance! Brad |
| |||
| On Thu, 26 Jun 2003 10:52:12 -0700, Brad S wrote: > I am currently running samba, on a redhat 8.0 machine. One of my > network users deleted a file that was critical from their workstation. > I am looking to create a directory that will store the files deleted > off the server (similar to a windows recycling bin) so I can > permanatly delete them later. If anyone can reply with web addresses > or information, I would greatly appreciate it. Thank You In Advance! chmod 1777 shared_directory Sets the sticky bit so no user can delete other user's files. If the "critical" file is owned by the dumb-ass user then use chattr to prevent deletion without changing the file attributes again. |
| |||
| Brad S <brad@akwwc.com> wrote: > So it is not possible to "force" samba into interperating the delete > command by workstations Samba doesn't "interpretate" commands, it only allows a client to see a directory as a locally-mounted-disk. Every operation performed by the client is performed directly on the filesystem. > scripts/methods for backing up directories on the linux machine on a ....hu....say again? Can't you use tar/cron to schedule a backup? > to read only after it hasn't been modified for x amount of days? use find ... -exec chmod to locate and change the status of files. Davide |
| ||||
| On 6/26/2003 6:30 PM, someone claiming to be Brad S wrote: > So it is not possible to "force" samba into interperating the delete > command by workstations as a command to move that file into a > temporary directory? Look in to VFS for samba. Found in the samba source directory examples/VFS. Specifically, the recycle module in examples/VFS/recycle. You'll probly need to download the samba source as I don't know if RHL 8.0's samba RPMs come with the VFS stuff installed. You could try, as root # locate recycle.so to see if you find the file recycle.so If you don't locate it, download the samba source. Once you compile and install the VFS stuff, just add something like: vfs object = /usr/local/samba/recycle.so vfs options = /etc/samba/recycle.conf to the share in your smb.conf file, and create the requisite recycle.conf file. There are examples that come with the samba source. Oooh... I just looked on my home RHL 8.0 system and recycle.so exists in /usr/lib/samba/vfs and a sample recycle.conf file exists in /usr/share/doc/samba-2.2.7/recycle.conf So this should be fairly painless for you. HTH, Tim |
| Thread Tools | |
| Display Modes | |
|
|