sudo find . -type d -exec chmod 775 {} \;
setgid Permission
When setgid permission is applied to a directory, files that were created in this directory belong to the group to which the directory belongs.
How to set the setgid permission
chmod g+s directory
How to unset the setgid permission
chmod g-s directory
Sticky bit Permissions
What are sticky bit?
Files located in a directory with the sticky bit set can only be deleted or renames by the owner of the file or by the root user.
How to set Sticky bit?
chmod +t directory
How to Remove the Sticky bit Option
chmod -t directory
The sticky bit shows up in the execute position of the “other” as in Owner, Group, Other permission.
u=rwx,g=rwx,o=rwt
Changing the Cron Subject Line Email Output (Ubuntu)
Instead of using the default MAILTO of the cron file you can use the mail program installed on your server to send the email with a custom “Subject Line”.
10 1 * * * /var/myscript.sh | mail -s "Changing Cron subject line " ycsoftware@ycsoftware.net
Crontab Visual Format
* * * * * * | | | | | | | | | | | +-- Year (range: 1900-3000) | | | | +---- Day of the Week (range: 1-7, 1 standing for Monday) | | | +------ Month of the Year (range: 1-12) | | +-------- Day of the Month (range: 1-31) | +---------- Hour (range: 0-23) +------------ Minute (range: 0-59)
