From: "EBo" <ebo@sandien.com>
To: <9fans@9fans.net>
Subject: Re: [9fans] /sys/lib/newuser patch
Date: Mon, 12 Apr 2010 07:13:02 -0600 [thread overview]
Message-ID: <twig.1271077982.63692@swcp.com> (raw)
In-Reply-To: <c7d3636b6853063a3d4059c24e38ec08@kw.quanstro.net>
erik quanstrom <quanstro@quanstro.net> said:
> > 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, ...
The reason I did not include ~ $home / is that the first two lines of code in
newuser are:
user=`{cat /dev/user}
home=/usr/$user
so home can never be just / (unless I am missing something here), but the ~
$user none is a very good point. Thanks!
EBo --
next prev parent reply other threads:[~2010-04-12 13:13 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 10:13 [9fans] how about intel D510MO Alex
2010-04-08 3:53 ` John Barham
2010-04-08 13:04 ` erik quanstrom
2010-04-11 17:06 ` [9fans] 9vx patch to read environment var PLAN9 EBo
2010-04-11 17:11 ` erik quanstrom
2010-04-11 17:24 ` Devon H. O'Dell
2010-04-11 17:30 ` erik quanstrom
2010-04-11 17:48 ` Devon H. O'Dell
2010-04-11 17:52 ` erik quanstrom
2010-04-11 21:01 ` [9fans] /sys/lib/newuser patch EBo
2010-04-11 21:48 ` erik quanstrom
2010-04-11 22:04 ` EBo
2010-04-11 23:06 ` Iruata Souza
2010-04-12 3:58 ` EBo
2010-04-11 23:19 ` Anthony Sorace
2010-04-12 3:49 ` EBo
2010-04-12 5:34 ` EBo
2010-04-12 12:28 ` erik quanstrom
2010-04-12 13:13 ` EBo [this message]
2010-04-12 13:28 ` hiro
2010-04-12 13:37 ` erik quanstrom
2010-04-12 14:11 ` hiro
2010-04-12 14:35 ` Devon H. O'Dell
2010-04-12 14:40 ` erik quanstrom
2010-04-12 15:01 ` Devon H. O'Dell
2010-04-12 15:28 ` erik quanstrom
2010-04-12 15:08 ` hiro
2010-04-12 15:23 ` hiro
2010-04-13 2:23 ` Anthony Sorace
2010-04-13 2:53 ` EBo
2010-04-13 3:14 ` Anthony Sorace
2010-04-13 3:23 ` EBo
2010-04-13 4:05 ` EBo
2010-04-12 13:38 ` EBo
2010-04-13 13:37 ` maht
2010-04-13 13:59 ` EBo
2010-04-11 18:03 ` [9fans] 9vx patch to read environment var PLAN9 EBo
2010-04-11 17:32 ` EBo
2010-04-11 17:42 ` Devon H. O'Dell
2010-04-11 17:47 ` EBo
2010-04-12 0:43 ` Russ Cox
2010-04-12 3:22 ` EBo
2010-04-12 10:46 ` Francisco J Ballesteros
2010-04-12 11:38 ` EBo
2010-04-12 12:36 ` erik quanstrom
2010-04-13 4:47 ` Skip Tavakkolian
2010-04-13 5:20 ` EBo
2010-04-13 5:43 ` Skip Tavakkolian
[not found] ` <43c85712dd833ad7544f72b7c66a3b2e@9netics.com>
2010-04-13 6:19 ` EBo
2010-04-13 6:33 ` Skip Tavakkolian
2010-04-13 6:47 ` EBo
2010-04-14 16:22 ` Ethan Grammatikidis
2010-04-14 18:10 ` EBo
2010-04-14 18:23 ` Federico G. Benavento
2010-04-14 18:33 ` lucio
2010-04-14 18:38 ` EBo
2010-04-14 22:51 ` Ethan Grammatikidis
2010-04-15 0:30 ` Patrick Kelly
2010-04-15 4:32 ` Russ Cox
2010-04-15 6:48 ` EBo
2010-04-15 8:26 ` Ethan Grammatikidis
2010-04-15 7:39 ` EBo
2010-04-15 9:22 ` Ethan Grammatikidis
2010-04-15 13:55 ` Devon H. O'Dell
2010-04-15 14:01 ` EBo
2010-04-14 18:36 ` erik quanstrom
2010-04-14 18:50 ` EBo
2010-04-14 18:44 ` Skip Tavakkolian
2010-04-14 19:01 ` EBo
2010-04-15 8:44 ` Balwinder S Dheeman
2010-04-15 10:11 ` Ethan Grammatikidis
2010-04-15 13:06 ` EBo
2010-04-15 14:29 ` Balwinder S Dheeman
2010-04-15 15:38 ` hiro
2010-04-16 7:52 ` Ethan Grammatikidis
2010-04-16 12:08 ` erik quanstrom
2010-04-16 8:20 ` Ethan Grammatikidis
2010-04-16 10:57 ` hiro
2010-04-26 8:43 ` [9fans] how about intel D510MO Pavel Klinkovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=twig.1271077982.63692@swcp.com \
--to=ebo@sandien.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).