LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new file permissions (https://www.linuxquestions.org/questions/linux-newbie-8/new-file-permissions-39196/)

bspicer 12-23-2002 09:51 AM

new file permissions
 
have a directory structure that is tied to a group called eci. Any new file created has the eci group. We have an automated process that ftp's data to the server and then our application then reads the files and renames them.

The problem I'm having is the file comes in with the permissions rw r r . I need to to come in with rw rw r so the app can rename the file. My umask is 022 and I don't see this being set in my /dev/profile.

How can I set this so any new files have the proper permissions.

I would really like everything to be rwx rwx rwx as it seems our vendor is always having us do this to all files to get the thing to run correctly. Might as well make that the default.

Thanks.

Bill

leed_25 12-23-2002 10:28 AM

The reason that you don't see it in your /dev/profile[sic] is that the default value for umask is 022. To set every file's permission to 777 upon creation, put this in your ~/.profile, or wherever you deem it appropriate:

umask 0

(it's difficult to tell whether you actually meant /etc/profile and just typed it in wrong or whether you actually looked in a file named /dev/profile which I don't know WTF that would be, but you want to put the 'umask 0' command in one of your shell startup files.)

bspicer 12-23-2002 10:43 AM

thanks


All times are GMT -5. The time now is 09:56 AM.