Hello, I have taken the opportunity to watch and learn from the videos on the grussell.org 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
Questions about your videos
Moderator: drgrussell
-
- 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
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.
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
Okay, good enough. Thank you very much. I'd like to acknowledge that you sir, and all your tutorials have earned my deepest respect.
Who is online
Users browsing this forum: No registered users and 2 guests