1837112 Members
2670 Online
110112 Solutions
New Discussion

Re: User permission

 
SOLVED
Go to solution
Anthony khan
Frequent Advisor

User permission

Hi everybody,

One of my user wants the file permission 755, his umask in .profile is 022 when he created the file the permission become 644, can someone tell me what need to be change in order to get the file permission 755 for this user.
3 REPLIES 3
Tom Maloy
Respected Contributor
Solution

Re: User permission

This is working as designed, and no change is needed.

When a "regular" file is created, and the umask is 022, the permissions will be 644.

When an executable file is created (by compiling, for example), and the umask is 022, the permissions will be 755.

Execute permission is not given when regular files are created.

Tom
Carpe diem!
James Beamish-White
Trusted Contributor

Re: User permission

This is working right - the max umask is 000, which give 666 permissions for files, and 777 permissions for directories.

Cheers,
James
GARDENOFEDEN> create light
Hai Nguyen_1
Honored Contributor

Re: User permission

I'm with Tom.
One more thing to add, with that setting 022, if you create a directory, it will have the right mode 755.

Hai