Today's (7 July 2007) Date

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Gerald Thurman
Date:  
To: plug-discuss
Subject: Today's (7 July 2007) Date
Hello...

If we forget about the lessons of Y2K, today's date in the MM/DD/YY
format is 07/07/07. The date reminded me that 777 (octal) are the
default permissions assigned to newly created Unix directories.
These default permissions worked well in the early days of Unix,
but today they are usually morphed by SysAdmins to be more
restrictive. Anyfoo... having fun with the bash command-line.

$ mkdir foo
$ ls -l
drwx------    2 gdt      users        4096 Jul  7 11:34 foo


$ chmod $(date '+%1m%1d%1y') foo
$ ls -l
drwxrwxrwx    2 gdt      users        4096 Jul  7 11:35 foo

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss