Nov
24
2010
Sometimes you need to modify the content of a zip file in the command line because the server doesn't have a X server and you have no access to the file system remotely. What this script does: modify text files inside a zip file with vi (or any other editor you like) modify the content [...]
Tags: linux
Nov
05
2010
You can easily move files of a certain age to a different location (for example backup tape or network share) In this example you will search for files only (-type f) which are older than 30 days (-mtime +30) and execute the move command for each file returned. This list of files is represented by [...]
Tags: linux
Oct
20
2010
objective Create a sftp-only user to have rw-access a specific folder only on a system with disabled ssh shell, port forwarding and X11-forwarding. This is achieved by setting the sftp shell in /etc/passwd required openssh version 4.8p1 or newer (this supports chrootdirectory) –> refer this page you can check your version with:sshd -v If you [...]
Tags: linux