From owner-freebsd-questions@FreeBSD.ORG Sat May 12 15:15:55 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D2AA91065670 for ; Sat, 12 May 2012 15:15:55 +0000 (UTC) (envelope-from four.troublesome.heads@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 507518FC17 for ; Sat, 12 May 2012 15:15:55 +0000 (UTC) Received: by laai10 with SMTP id i10so2308668laa.13 for ; Sat, 12 May 2012 08:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+pp59OvNCoYKYWbPRSRlDO7BHV1KrlBZTVV/tsK5OF4=; b=p8DZzhAV5fmHkbQ55U3lhT5Jm8RQVUBgzXvj8DPOGUDk95mWdlxcRpnP0i4rEf7Oz3 RVBrbw7kCbvkpUpTS4LjXy1kQBpQC+nfNjFAldU/OyflN9d1JeXbf1gd8iREeN3aLGVI OG8LXmz1YgzUVljLSjSIrBCs7D54ZLAVLfWewtstHn5tvloaIK9RFQEwx1ry0b7KDiU1 XTOztqE1sYT+XCkRwKitmQT2Cb1nzfsDb3LUbNqnyH/UduXvvlCSRGOBA70wFJhfUxQC JBgH5Xi4EU9wUnEqq1Chh1q2QniT1whynHzoA/KBQCK5RtCMbf1k+ilE+vconAmvL9Eh em/w== MIME-Version: 1.0 Received: by 10.152.146.129 with SMTP id tc1mr2003829lab.27.1336835754038; Sat, 12 May 2012 08:15:54 -0700 (PDT) Received: by 10.112.96.36 with HTTP; Sat, 12 May 2012 08:15:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 13 May 2012 00:15:54 +0900 Message-ID: From: fake fake To: Michael Sierchio Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-questions@freebsd.org Subject: Re: file permission template X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 May 2012 15:15:55 -0000 Thanks. But I need specific directory only. umask way seems to set mode not only under ~/secret but other directories like ~/public. Is there any elegant way? 2012/5/12 Michael Sierchio : > man sh (or man csh) - look for 'umask' > > On Sat, May 12, 2012 at 7:37 AM, fake fake > wrote: >> I need a sort of file permission template. >> Under some particular directory (like ~/secret), I need all those >> files (including newly creating one) mode 700. >> Is there any template-trick? Or "chmod -R 700" every time? >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"