From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,FROM_FMBLA_NEWDOM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 17494 invoked from network); 27 Feb 2022 05:55:57 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 27 Feb 2022 05:55:57 -0000 Received: from mail-yb1-f174.google.com ([209.85.219.174]) by 4ess; Sun Feb 27 00:48:19 -0500 2022 Received: by mail-yb1-f174.google.com with SMTP id y189so14107760ybe.4 for <9front@9front.org>; Sat, 26 Feb 2022 21:48:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:to:subject:date:in-reply-to:mime-version :content-transfer-encoding; bh=YzHfWriAejMPx9rBAEMOK8kcG6tVi5fW89pH/G6q57U=; b=TEhrxUEiMddXxnfpv2xASDzEUf43PR8wYxoX3NjVAvVIWKkVoZ55Kfxr9b1yGRyFTX X8B9fDeRLROq0/ou2zSgla5t26iQhyvRiiryVSUT9eyN1fAZOfZ8qqGj3WmffjbLkMEm VGlnqLcHNr46QQwplirKcLOPqRVJEAyEme7tqdtrDie5MRuMnAVuhYpi6z8txk987slX dluleZT+vSNZI9SXcwvdTGZhucBq0iEF1UEKzl254OkLCfG1zU0CEfzjFoWM8kCEtv/s ZHnx68RqpzXC3OnEst65TFrlQ8QuPKgRPhtKSORETbEolfTTSFGU7V4L7TSUBlraEAee kz+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:to:subject:date:in-reply-to :mime-version:content-transfer-encoding; bh=YzHfWriAejMPx9rBAEMOK8kcG6tVi5fW89pH/G6q57U=; b=uVCxhPFqO4SgM0Enp3bpgmYUsgTzmpplDqLNi9X2JIDqtf807BBNtDvmME7I8SMN0n BznzSKqUVJsOtCUwSQbc3paug+hXIWswERpY03D5ftS3RV7Vboz8BSzs/95Upia2yly+ +7M8AcD8zIbkCH9Mq0lIpsm1pAbH4Q21IWWC0hXYhSsfDT8iUaydwO5X+Q6cLY1ZB3BE mC7X4rU1upNZigHwgbfZiLoC6aF0lmJO/e/sPH0gxaRTDgJglPGb/E8q9Gxk8Gn5hmPo uMPoL2t8mh8d6JUNSeKGZYJ3itr7oCVXSUSKi7qXso0kBsKi0uqVPkcG2O/yLrOX4ebH NVhg== X-Gm-Message-State: AOAM5311UEAYYp7HP6sKRoM7h1zteDvTW6ztWkFCTDFWll5lkFcxv7az HVAWXvWDlq0eysLm1vIxLSZPN0eifMc= X-Google-Smtp-Source: ABdhPJxdfatdsb87DzFQTJonC99wS4R6OljiHnbk8qyM7U7Wa0/39094txaJWuKKAiv1c3vv9ucAHQ== X-Received: by 2002:a05:6830:1b6f:b0:5af:d2f:eed9 with SMTP id d15-20020a0568301b6f00b005af0d2feed9mr6381606ote.331.1645940472272; Sat, 26 Feb 2022 21:41:12 -0800 (PST) Return-Path: Received: from cirno.thinktank (107-200-43-169.lightspeed.sntcca.sbcglobal.net. [107.200.43.169]) by smtp.gmail.com with ESMTPSA id r4-20020a9d5cc4000000b005af6f4ff5e2sm3347454oti.61.2022.02.26.21.41.11 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Feb 2022 21:41:11 -0800 (PST) From: thinktankworkspaces@gmail.com X-Google-Original-From: glenda@gmail.com Message-ID: <199698A7E7644123FE53A71ABD10A89F@gmail.com> To: 9front@9front.org Date: Sat, 26 Feb 2022 21:41:08 -0800 In-Reply-To: <19C4682FE4B1166C8249267810F854E8@musolino.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: optimized hosting method wrapper just-in-time generator Subject: Re: [9front] new user Reply-To: 9front@9front.org Precedence: bulk Sorry. I felt something was wrong and purged it then did install with cwfs. I didn't have any data on it. It was a new install Thanks! Quoth Alex Musolino : > > I created a new user on another system. Its running hjfs > > > > I noticed permission had sys? > > > > cpu% ls -l > > d-rwxrwxr-x M 184 glenda glenda 0 Feb 26 14:46 glenda > > d-rwxrwxr-x M 184 www sys 0 Feb 26 16:08 www > > > > This does not seem right? > > This is a bug in hjfs that has been uncovered by changeset > e1907b41d32441e79e8cc3db26afc5f0c4cdcef9. New directories *are* > supposed to inherit their group from the parent directory. However, > this is not what we want when creating home directories for new users. > > I think the following ought to fix it. Can you give this a try? > > diff facb0e757ac63f763bd942a2714f979538b99eb0 uncommitted > --- a/sys/src/cmd/hjfs/auth.c > +++ b/sys/src/cmd/hjfs/auth.c > @@ -366,13 +366,18 @@ > createuserdir(Fs *fs, char *name, short uid) > { > Chan *ch; > + Dir di; > > ch = chanattach(fs, CHFNOPERM); > if(ch == nil) > return; > ch->uid = uid; > - if(chanwalk(ch, "usr") > 0) > + if(chanwalk(ch, "usr") > 0){ > chancreat(ch, name, DMDIR | 0775, OREAD); > + nulldir(&di); > + di.gid = name; > + chanwstat(ch, &di); > + } > chanclunk(ch); > } > >