Home > OS >  Umask invalid problem
Umask invalid problem

Time:09-16


Why create the default permissions of the file that has nothing to do with the umask? Confused, hope bosses to solve, thank you.

CodePudding user response:

There is a possible, this file test1 already exists, and permissions, and show you the same,
And then you perform touch test1
There is no new file, or the original file,

You can execute a command in the following order:
Umask
The ls -l
Touch a.t xt
The ls -l
See, first make sure you want to create the file does not exist,

CodePudding user response:

reference 1/f, password test response:
there is a possible, test1 this file already exists, and permissions, and show you the same,
And then you perform touch test1
There is no new file, or the original file,

You can execute a command in the following order:
Umask
The ls -l
Touch a.t xt
The ls -l
See, first make sure you want to create the file does not exist,


Or so
  • Related