From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 5B486BC57 for ; Sun, 15 Aug 2010 13:18:07 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao0CAAdqZ0xRZ90xkWdsb2JhbACgSxUBAQEBCQsKBxEDGQa4BIU7BIli X-IronPort-AV: E=Sophos;i="4.55,371,1278280800"; d="scan'208";a="65423499" Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]) by mail1-smtp-roc.national.inria.fr with ESMTP; 15 Aug 2010 13:18:06 +0200 Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20100815111805.LJVF3075.mtaout03-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Sun, 15 Aug 2010 12:18:05 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout04-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20100815111805.ZOOZ1593.aamtaout04-winn.ispmail.ntl.com@romulus.metastack.com> for ; Sun, 15 Aug 2010 12:18:05 +0100 Received: from remus.metastack.local ([172.16.0.1]) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id o7FBI2Kf031737 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 15 Aug 2010 12:18:02 +0100 Received: from Remus.metastack.local ([fe80::547c:3c42:e1da:eda2]) by Remus.metastack.local ([fe80::547c:3c42:e1da:eda2%11]) with mapi; Sun, 15 Aug 2010 12:17:30 +0100 From: David Allsopp To: "caml-list@yquem.inria.fr" Subject: RE: [Caml-list] More re GC hanging Thread-Topic: [Caml-list] More re GC hanging Thread-Index: AQHLPD6men6N+DVyIkORXnLXuiNAcpLiBrqAgAAbEACAAAokAIAAGNqAgAAXPRA= Date: Sun, 15 Aug 2010 11:17:20 +0000 Message-ID: References: <1281855821.2115.4.camel@glinka> <1281863810.2115.11.camel@glinka> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.1 cv=3ENABmdyEd/Fm7fR7+mZIuMDn6+IErAeEhlfWBImZFk= c=1 sm=0 a=B6luSuMX85EA:10 a=kj9zAlcOel0A:10 a=xqWC_Br6kY4A:10 a=gCI9tWjU_EcHNuZIY8YA:9 a=xl25Evped6OM7Lr24cgA:7 a=LKDSReb-0CvH4EToyEkCQL1YCkkA:4 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-Spam: no; 0.00; zsh:01 invocation:01 verbose:01 outputting:01 stdout:01 wrote:01 caml-list:01 behaviour:01 snip:02 essentially:02 output:02 kernel:02 kernel:02 sys:03 sys:03 Adrien wrote: > Hi, > Also, on my computer, I have the following behaviour: > 11:44 ~ % sudo echo 0 > /proc/sys/kernel/randomize_va_space > zsh: permission denied: /proc/sys/kernel/randomize_va_space > root@jarjar:~# echo 0 > /proc/sys/kernel/randomize_va_space > root@jarjar:~# > I can't use sudo to write to most files in /proc or /sys: I have to log i= n > as root ('su -' does the job just fine). The redirection (> /proc/sys...) is not part of the sudo invocation, it's a= separate instruction to the *shell* to redirect output of the previous par= t of the command to a file and so it runs with *your* uid. There are two wa= ys to achieve what you're after - one verbose one described in the sudo man= page (essentially you pass the whole command line to sudo quoted) or the e= asier way: echo 0| sudo tee /proc/sys/kernel/randomize_va_space You can add > /dev/null if tee's outputting of the 0 to stdout is for some = reason annoying. David