Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 17 Nov 2003 16:37:48 +0100 From: Samuel Thibault To: cygwin AT cygwin DOT com, "Pierre A. Humblet" Cc: soft DOT eleves AT ens-lyon DOT fr Subject: Re: messed up user permissions from w2k terminal session Message-ID: <20031117153748.GA2960@bouh.residence.ens-lyon.fr> Reply-To: Samuel Thibault Mail-Followup-To: cygwin AT cygwin DOT com, "Pierre A. Humblet" , soft DOT eleves AT ens-lyon DOT fr References: <5 DOT 1 DOT 1 DOT 5 DOT 2 DOT 20031003155210 DOT 01a43a98 AT popserve DOT grc DOT nasa DOT gov> <20031008234545 DOT GA88351 AT hpn5170x> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20031008234545.GA88351@hpn5170x> User-Agent: Mutt/1.4i-nntp X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ens-lyon.fr Hi, Le mer 08 oct 2003 19:45:46 GMT, Pierre A. Humblet a tapoté sur son clavier : > On Fri, Oct 03, 2003 AT 04:48:43PM -0400, James D Below wrote: > > HI everyone, > > > > I'm not sure how I did it but I messed up my user permissions or local > > policy settings. Now whenever I run any cygwin app (bash.exe, wc.exe, > > rxvt.exe) from a w2k terminal session and logged in as a user, I see the > > following error: > > > > **** CreateFileMapping, Win32 error 5. Terminating. > > > > I'm running Windows 2000 SP4 and CYGWIN = binmode tty ntsec > > This problem has now been explained with James' help and this message > is to close the thread. > It turns out that on some recent Windows systems a special privilege, > "create global objects", is required to run Cygwin 1.5.X from > a terminal session. It can be given to users with the "editrights.exe" > utility. Hmmm. I can't find such right. editrights gives me this list: editrights version 1.01: a cygwin application to edit user rights on a Windows NT system. Copyright Chris Rodgers , Sep, 2003. All rights reserved. See LICENCE for further details. Usage: editrights -u USER {-a|-l|-r|-t} [options] -a Se... Add right to the specified user. -h Show this help message. -hv lists available user rights. -l List user rights. May be combined with -a or -r to list final state. -m MACHINE Make all changes on the specified MACHINE. -r Se... Remove right from the specified user. -t Se... Test if the specified right is held by user. Returns 0 for YES and 2 for NO. -u USER/GROUP Make changes to the specified USER or GROUP. -v Verbose mode. Return values: 0 Success or YES. 1 Error. 2 NO. Available user rights include: SeAssignPrimaryTokenPrivilege SeAuditPrivilege SeBackupPrivilege SeBatchLogonRight SeChangeNotifyPrivilege SeCreatePagefilePrivilege SeCreatePermanentPrivilege SeCreateTokenPrivilege SeDebugPrivilege SeDenyBatchLogonRight SeDenyInteractiveLogonRight SeDenyNetworkLogonRight SeDenyRemoteInteractiveLogonRight SeDenyServiceLogonRight SeEnableDelegationPrivilege SeIncreaseBasePriorityPrivilege SeIncreaseQuotaPrivilege SeInteractiveLogonRight SeLoadDriverPrivilege SeLockMemoryPrivilege SeMachineAccountPrivilege SeManageVolumePrivilege SeNetworkLogonRight SeProfileSingleProcessPrivilege SeRemoteInteractiveLogonRight SeRemoteShutdownPrivilege SeRestorePrivilege SeSecurityPrivilege SeServiceLogonRight SeShutdownPrivilege SeSyncAgentPrivilege SeSystemEnvironmentPrivilege SeSystemProfilePrivilege SeSystemtimePrivilege SeTakeOwnershipPrivilege SeTcbPrivilege SeUndockPrivilege SeUnsolicitedInputPrivilege Which one should be set ? Regards, Samuel Thibault -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/