Page 1 of 1

Questions about your videos

Posted: Sat Apr 18, 2015 7:45 pm
by medinita3586
Hello, I have taken the opportunity to watch and learn from the videos on the site and I have some questions regarding the umask022 command. I want to know if this command will affect all the files, even the ones created prior to entering the command or it affects files created after the umask022 or whatever other numeric notation you give to it.

Another question is regarding the default permissions for creating files or directories. According to your video, sorry but not to say that I doubt any of it, the default for directories is: -rwxrwxrwx for directories and : -rw-rw-rw- for files but I get:

drwxr-xr-x. for directories (the d for directories is assumed, of course)
-rw—w-r—. for files

Why do I get a different output?

Just curious.

Thank you

Re: Questions about your videos

Posted: Wed Apr 22, 2015 12:28 pm
by drgrussell
umask only effects permissions of files and directories after the command is executed and only for the duration of that login session.

You get a different output as the umask is set when you login to 022 in one of the login scripts.

Re: Questions about your videos

Posted: Wed Apr 29, 2015 12:44 am
by medinita3586
Okay, good enough. Thank you very much. I'd like to acknowledge that you sir, and all your tutorials have earned my deepest respect.