Mar 30, 2014 | Uncategorized
cd /path/to/folder/ find * -type f -exec chmod 644 {} +
Mar 30, 2014 | Uncategorized
cd /path/to/folder/ find * -type d -exec chmod 755 {} +
Jan 13, 2014 | Linux Shell Scripting, Ubuntu 12.04 Server Management
Guide wrote on 13 Jan 2014 Step 1) Install Pure-FTPd using aptitude package tool root@server:~# aptitude -y install pure-ftpd Step 2) Run pure-ftpd as a daemon (background process) root@server:~# echo "yes" > /etc/pure-ftpd/conf/Daemonize Step 3) Disable anonymous ftp login root@server:~# echo "yes" > /etc/pure-ftpd/conf/NoAnonymous Step 4) Jail all local user to their home directories root@server:~# echo "yes" > /etc/pure-ftpd/conf/ChrootEveryone Step 5) Configure FTP server to use IPv4 only root@server:~# echo "yes" > /etc/pure-ftpd/conf/IPV4Only Last Step) Restart pure-FTP server for changes to take effect root@server:~# service pure-ftpd restart Optional configurations you may need: Defining passive ports (passive port range 21000 to 21100 in example below) root@server:~# echo "21000 21100" > /etc/pure-ftpd/conf/PassivePortRange Set maximum number of clients (50 clients in example below) root@server:~# echo "50" >...
Nov 6, 2013 | Linux Shell Scripting, Ubuntu 12.04 Server Management
Using zip command to compress folders and files zip -r compressed_filename.zip folderorfiles
Oct 10, 2013 | Ubuntu 12.04 Server Management
How do I change my server timezone? Execute the command, and select your desired timezone from the configuration screen. # sudo dpkg-reconfigure tzdata