Questions about your videos

Problem completing one of the interactive tutorials?

Moderator: drgrussell

Post Reply

Questions about your videos

Post by medinita3586 » Sat Apr 18, 2015 7:45 pm

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

Site Admin
Posts: 426
Joined: Sat Feb 12, 2005 8:57 pm
Are you a robot or a human?: Human

Re: Questions about your videos

Post by drgrussell » Wed Apr 22, 2015 12:28 pm

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

Post by medinita3586 » Wed Apr 29, 2015 12:44 am

Okay, good enough. Thank you very much. I'd like to acknowledge that you sir, and all your tutorials have earned my deepest respect.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest