[cs631apue] tcp assignment permissions

Jan Schaumann jschauma at stevens.edu
Thu Sep 13 23:40:55 EDT 2018


Aubhik Mazumdar <amazumda at stevens.edu> wrote:
 
> While reading and writing the files, what permissions do we need to
> set for the written file (for user, group and other)?

You may choose to either accept the defaults as per the user's umask (to
be covered in a future lecture) or to explicitly set the permissions as
those of the original.

> Also, in the example:
> 
> tcp file1 dir
> 
> I assume that the written file will have the name 'file1' in directory 'dir', is that correct?

Correct.  The test script should have a case checking for this scenario.

-Jan


More information about the cs631apue mailing list