June 27, 2007
What are the permissions of (ass1.c, ass1, and CIT497A) at each stage of the following command (Unix)?
What are the permissions of (ass1.c, ass1, and CIT497A) at each stage of the following command:?
- umask 027
- ./ass1 > CIT497A/ass1
- cc -o ass1 ass1.c
- vi assl.c
- chmod 640 ass1.c
- umask 027
after this all files created by your username will have the default permition that looks like this " rwxr-x—"
vi assl.c
>rwxr-x— assl.c
chmod 640 ass1.c
>rw-r—– ass1.c
chmod og+w ass1.c
>-rw-rw–w- ass1.c
cc -o ass1 ass1.c
>rwxr-x— ass1
chmod a+x ass1
>-rwxrwx-wx ass1
umask 077
mkdir CIT497A> drwx—— CIT497A
./ass1 > CIT497A/ass1
> -rwx—— CIT497A/ass1
there you go.
- chmod og+w ass1.c
- ls -l
- ls -l
- mkdir CIT497A
- (Red Hat Linux)
- umask 077
- chmod a+x ass1























