OBJECTIVE: Users in one group need access to files in another group. UNIX/Linux allows users to change permissions on their own files. cd (to the directory where your files are) ls -al (view the files and see what the permissions are: if: -rw-r--r-- then only YOU can write to them, if: -rw-rw-r-- then anyone in your GROUP can write to them, if: -rw-rw-rw- then ANYONE with access to the system can write to them.) To change permissions so ANYONE can write to them, chmod 666 (filename or filenames, wildcards are ok) # not recommended for security. To change permissions back so only your group can write to them: chmod 664 (...) ========================= THERE IS A DEFAULT SETTING FOR NEW FILE CREATION in UNIX called umask. type "umask" at the command line, if it comes up "022" then files you create will have "-rw-r--r--" permissions. To open your files up completely, change your umask to 000. # not recommended for security. ========================= fwiw, the file permission code is as follows: 421421421 rwxrwxrwx r=read w=write x=executable (do NOT make regular files executable) the first set of three (rwx) is the owner, second set group and last set other. ========================= a umask of 0022 or 022 is acceptable: ========================= ------------------------------------------------ --> umask 0022 ------------------------------------------------ --> touch testperms ------------------------------------------------ --> ll testperms -rw-r--r-- 1 luser users 0 Jan 28 13:03 testperms ------------------------------------------------ |
The Art of Linux System Administration published by O'Reilly Media Study Guide for the LPIC-2 Certification Exams |
Wagoneers FULL SIZE JEEPS JeepMeister "Jeep is America's -Enzo Ferrari MeisterTech Diesels + |
One Page Overview of Linux Commands click for an image of the 5 essential Linux commands An Intro to Linux |
at Midway Auto on SR9 in Snohomish, or at Northland Diesel in Bellingham, WA |