file permissions - some basic info

######################################################### PROBLEM: A user in one "GROUP" "owns" a file, but it needs to be accessed by a user from an-"other" "GROUP". SOLUTION: The "OWNER" of the file changes the permissions on the file to permit "OTHER" users to access the file. Once the changes have been made, the "OWNER" of the file may modify the permissions back to the original state to maintain file integrity and security. EXAMPLE: a file owned by bsmith needs to shared by tjones. tjones is in a different "group", so the file permissions must be opened up for all. FILE before chmod: ===================== -rw-rw-r-- 1 6676 cadds 451690 Mar 19 1999 jg2020dt.2.h EXECUTE THE FOLLOWING COMMAND: ================================= chmod 666 jg2020dt.2.h FILE after chmod: ===================== -rw-rw-rw- 1 6676 cadds 451690 Mar 19 1999 jg2020dt.2.h EXPLANATION OF FILE PERMISSIONS and other info provided by an "ls -al" command: =================================================================================== -rw-rw-r-- 1 6676 cadds 451690 Mar 19 1999 jg2020dt.2.h PERMISSSIONS LINKS UID or owner GROUP size date year filename (note: if the owner of the file is no longer on the system the file owner will appear as the UID (user id) number instead of the name) TO READ PERMISSIONS: ===================== OWNER GROUP OTHER 421 421 421 rwx rwx rwx rw- rw- r-- - this would be 664 readable by all, but writtable by owner and group. (the x indicates executable and is not needed for normal files.) More information on files will be found in tutorials on http://www.wagoneers.com/UNIX BASIC information on UNIX file directory listing: ====================================================================== A listing of files in a typical UNIX directory will look like this: >--> ll total 58 drwxr-xr-x 6 john sysadmin 1024 May 20 1999 . drwxrwxr-x 5 john sysadmin 1024 Aug 3 09:23 .. drwxr-xr-x 2 john sysadmin 1024 May 20 1999 BAK_info -rw-r--r-- 1 john sysadmin 94 May 20 1999 aliases -rw-r--r-- 1 john sysadmin 1512 May 20 1999 checklist.workstation -rw-r--r-- 1 john sysadmin 1368 May 20 1999 hosts.980223 drwxr-xr-x 2 john sysadmin 1024 May 20 1999 hp-base -rwxr--r-- 1 john sysadmin 7985 May 20 1999 hp-config -rw-r--r-- 1 john sysadmin 1021 May 20 1999 profile -rw-r--r-- 1 john sysadmin 8511 May 20 1999 profile.980406 ######################################################### MORE COMING.... to be continued...