Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2000 22:35:10 -0400
From:      Laurence Berland <stuyman@confusion.net>
To:        "DINKEY,GENE (HP-Loveland,ex1)" <gene_dinkey@hp.com>
Cc:        "'mhjoshi@att.net'" <mhjoshi@att.net>, questions@FreeBSD.ORG
Subject:   Re: Unix questions
Message-ID:  <3973C25E.DA9B0F7D@confusion.net>
References:  <F341E03C8ED6D311805E00902761278C5313F8@xfc04.fc.hp.com>

next in thread | previous in thread | raw e-mail | index | archive | help


"DINKEY,GENE (HP-Loveland,ex1)" wrote:
>[snip
> 
> >5. If unmask is 022, the the following commands are
> >executed.
> >mkdir cat
> >cat refer.txt > newpermiss
> >what permissions will cat and newpremiss will have?
> 
> The files will have mode 755 on creation.
> 
> full access -->  777
> minus umask -->  022
> ---------------------
> permision   -->  755
> 
> Someone please correct me if I'm wrong but this is it to the best of my
> understanding

Part of this is, or at least last I checked was, wrong.  The permissions
are obtained by taking the permissions the creating program is trying to
use, filtered through the umask.  Hence, while  a directory will come
out 755 a redirection of output to a file should come out 644.

-- 
Laurence Berland
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Windows 98: n.
        useless extension to a minor patch release for 
        32-bit extensions and a graphical shell for a 
        16-bit patch to an 8-bit operating system 
        originally coded for a 4-bit microprocessor, 
        written by a 2-bit company that can't stand for
        1 bit of competition.
http://stuy.debate.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3973C25E.DA9B0F7D>