From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <46914d2c-437d-406e-a928-123f4d09f9f7@u15g2000prd.googlegroups.com> <93c7f0c907631447ddb00c5d9280f5eb@brasstown.quanstro.net> <2a514b8f79dfb3434a836f743f936bb2@brasstown.quanstro.net> Date: Mon, 12 Apr 2010 15:28:01 +0200 Message-ID: From: hiro <23hiro@googlemail.com> To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] /sys/lib/newuser patch Topicbox-Message-UUID: ff8a3dc8-ead5-11e9-9d60-3106f5b1d025 On 4/12/10, erik quanstrom wrote: >> Following on several peoples advice and a suggested code snippet from Erik >> I've added the following before the check for profile: >> >> if(! test -d $home){ >> echo no home directory $home >> exit homeless >> } >> if(! ls -ld $home >[2=] | grep -s '^d-rwx.* '$user){ >> echo bad permissions >> exit homeless >> } > > you must also exit if ~ $user none. i'd also recommend > aborting if ~ $home /. you don't want none making > files in /. on a regular plan 9 system, that's no worry, but > 9vx, ... > > - erik > > Can't we then fix 9vx? (Stepping in to the tradition of concern of reception: This is not a rhetoric question)