Re: [9fans] file ownership on /srv

2008-08-14 Thread Lyndon Nerenberg
The third is to use consolefs, as Charles suggested, The true enjoyment of this OS is in discovering the blatantly simple solutions to what turn out to be blatantly simple problems ;-) I had completely forgotten about consolefs. Serial consoles still rule in a certain realm, but who says the

Re: [9fans] file ownership on /srv

2008-08-14 Thread erik quanstrom
> I did just find that if on the console I do chmod ugo+rw /srv/fscons, I can > open it under my username via drawterm, though just chmod ug+rw /srv/fscons > isn't good enough. Also, adding my username to bootes didn't seem to have an > effect. unlike unix, groups only exist on the fileserver.

Re: [9fans] file ownership on /srv

2008-08-14 Thread Russ Cox
> Since I'm not logged in as bootes, and am not a member of the > bootes group, I can't use con to connect to /srv/fscons, and > therefore, can't add a user. That's correct. You want to change the policy, so that you are allowed to act as bootes occasionally. I see three reasonable ways to do th

Re: [9fans] file ownership on /srv

2008-08-14 Thread Benjamin Huntsman
>The first alternative that comes to mind is to write a server that runs as >the file server host owner and accepts user creation requests. Actually, that's exactly the sort of thing I was working toward. I was just hoping it could be done entirely via scripting, without having to put together

Re: [9fans] file ownership on /srv

2008-08-14 Thread Benjamin Huntsman
>(instead of drawterm, i usually just use telnet as bootes to a file/cpu/auth >server for admin work.) Isn't that one of those proverbially bad admin practices? :) I know I'm guilty of it too, but I'm trying to cure myself of the habit. I did just find that if on the console I do chmod ugo+rw

Re: [9fans] file ownership on /srv

2008-08-14 Thread Lyndon Nerenberg
Yes that works, but isn't that similar to logging in as root to a unix box over the wire? If I were delegating "add user" abilities to another user, that'd mean I'd have to give them the password for bootes... Yes. Anyone who has access to /srv/fscons owns the file server. The first alternativ

Re: [9fans] file ownership on /srv

2008-08-14 Thread Benjamin Huntsman
>When you drawterm, authenticate as 'bootes' instead of your usual id. Yes that works, but isn't that similar to logging in as root to a unix box over the wire? If I were delegating "add user" abilities to another user, that'd mean I'd have to give them the password for bootes... Is there no wa

Re: [9fans] file ownership on /srv

2008-08-14 Thread Charles Forsyth
> I read in chgrp(1) that you can't change file group membership when the > fileserver is not in the bootstrap state. the following isn't directly relevant to your current problem, but: the manual page is commenting on chgrp's being used to change file ownership, not its group. changing groups i

Re: [9fans] file ownership on /srv

2008-08-14 Thread Lyndon Nerenberg
I have a CPU/Auth server set up. I'd like to be able to add users remotely (via drawterm), rather than at the system's console. However, normally, I can't attach to /srv/fscons, and as I found, can't start another fscons and open the filesystem under it. When you drawterm, authenticate as 'b

[9fans] file ownership on /srv

2008-08-14 Thread Benjamin Huntsman
I have a CPU/Auth server set up. I'd like to be able to add users remotely (via drawterm), rather than at the system's console. However, normally, I can't attach to /srv/fscons, and as I found, can't start another fscons and open the filesystem under it. /srv/fscons gets created at startup, b

Re: [9fans] 'Irc' client program at Andrey's Contrib

2008-08-14 Thread andrey mirtchovski
Perhaps one solution would be to look at the Irc code Russ provides with Plan9Port and see if the problem hasn't been fixed there. I am ill-equipped to help you at the moment, sorry. On Thu, Aug 14, 2008 at 1:36 PM, <[EMAIL PROTECTED]> wrote: > (Sorry for the Subject header change, it was not for

[9fans] 'Irc' client program at Andrey's Contrib

2008-08-14 Thread akumar
(Sorry for the Subject header change, it was not formatted properly last time.) I would love to _try_ and fix this problem, as I am now, but I am far less familiar with the code than yourself, and surely I would love some help with figuring this out. On Thu, 14 Aug 2008 13:14:52, andrey mirtchov

Re: [9fans] (no subject)

2008-08-14 Thread andrey mirtchovski
I haven't used either of those in a long time. If you send me changes I'd be glad to put them on sources. If you want to take over maintaining them we can easily arrange that :) andrey On Thu, Aug 14, 2008 at 1:09 PM, <[EMAIL PROTECTED]> wrote: > Subject 'Irc' client program at Andrey's Contrib

[9fans] (no subject)

2008-08-14 Thread akumar
Subject 'Irc' client program at Andrey's Contrib Hello, I've recently been trying out various IRC clients for Plan 9, and of the two that suited me most (irc7 and Irc), I find Irc to be better formatted and polished, thusly, more usable. Anyhow, I've noticed a couple of problems with the program:

Re: [9fans] Local variables and rc functions

2008-08-14 Thread Micah Stetson
> Both fixes are in plan9port. Thanks, Russ. Micah

Re: [9fans] memory use

2008-08-14 Thread john
>> I tried setting mem, bcmem, and icmem all to 1M but no improvement. >> They are not set by default, and trying the configuration shown in the >> man page actually prevents the system from booting (out of memory). >> >> John > > perhaps i'm pointing out the obvious. have you tried something as

Re: [9fans] Local variables and rc functions

2008-08-14 Thread Russ Cox
> Is this a bug? > > % fn foo { echo $bar } > % bar=baz foo > > % > > I would expect to see baz instead of a blank line. Yes, it is a bug. The fix is: diff -r f7e7b9ab4cfb src/cmd/rc/simple.c --- a/src/cmd/rc/simple.c Sun Jul 20 06:17:17 2008 -0400 +++ b/src/cmd/rc/simple.c Thu Au

Re: [9fans] Local variables and rc functions

2008-08-14 Thread kazumi iwane
i apologize for the noise. i should have tested befoqe posting. rog, thank you for correcting me. On 8/14/08, roger peppe <[EMAIL PROTECTED]> wrote: > On Thu, Aug 14, 2008 at 12:20 PM, kazumi iwane <[EMAIL PROTECTED]> wrote: >> if you want to delay the expansion of an env var until fn invocation,,

Re: [9fans] Local variables and rc functions

2008-08-14 Thread roger peppe
On Thu, Aug 14, 2008 at 12:20 PM, kazumi iwane <[EMAIL PROTECTED]> wrote: > if you want to delay the expansion of an env var until fn invocation,,use > eval. > > % fn foo {eval echo $$bar} sorry, but that's so, so wrong. 1) $$bar gives the value of the variable named by the contents of the vari

Re: [9fans] Local variables and rc functions

2008-08-14 Thread kazumi iwane
if you want to delay the expansion of an env var until fn invocation,,use eval. % fn foo {eval echo $$bar} On 8/14/08, roger peppe <[EMAIL PROTECTED]> wrote: > looks like a bug to me; after all: > > % bar=baz {echo $bar} > baz > % > > i'm somewhat surprised this hasn't been fixed years ago. > > O

Re: [9fans] Local variables and rc functions

2008-08-14 Thread roger peppe
looks like a bug to me; after all: % bar=baz {echo $bar} baz % i'm somewhat surprised this hasn't been fixed years ago. On Wed, Aug 13, 2008 at 10:27 PM, Micah Stetson <[EMAIL PROTECTED]> wrote: > Is this a bug? > > % fn foo { echo $bar } > % bar=baz foo > > % > > I would expect to see baz inste