Change file mode
I want to create a directory to let some programs to put file on it, the programs will generate the files with the mode 644 into this directory , while other programs need to modify the file, but it can't cos the mode is 644 ( 4 is only for read ) , how to force the mode of the all files when writing to these directory are 666 ?
I just want to change the type of file , so i don't want to change the user profile. Thx.
If i change the umask in the profile, then the mode of all files (whateven directory) will be changed , I only want to change the mode in one directory , what can I do? Thx.
|