X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.8 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,TW_MK X-Spam-Check-By: sourceware.org Message-id: <50986A90.9010609@cygwin.com> Date: Mon, 05 Nov 2012 20:40:32 -0500 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Domain User getting "Permission Denied" for anything outside of /home// References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 On 11/2/2012 12:41 PM, Cameron Gunnin wrote: > Hi, > > I've been struggling with this for the past week to no avail. As the > title suggests, if I am logged in under a user that is not the user > who installed Cygwin (regardless of the user's windows permissions), > then I cannot modify near anything outside of /home//. Here's > what I'm trying to get working. > > 1a) Install Cygwin as a Local Administrator. Run "mkpasswd -l > > /etc/passwd" and "mkgroup -l > /etc/group" Why are you running mkpasswd and mkgroup yourself? passwd-grp.sh postinstall script runs this for you, including adding a '-c' flag to pick up the local user. > OR (I would prefer 1a, but 1b is acceptable as well) > 1b) Install Cygwin as Domain Administrator. Run "mkpasswd -d > > /etc/passwd" and "mkgroup -d > /etc/group" > > 2) Login as Domain User (has administrative privileges on local > machine AND can access the AD). > NOTE: At this point, I get the message: > > Your group is currently "mkpasswd". This indicates that your > gid is not in /etc/group and your uid is not in /etc/passwd. > > The /etc/passwd (and possibly /etc/group) files should be rebuilt. > See the man pages for mkpasswd and mkgroup then, for example, run > > mkpasswd -l [-d] > /etc/passwd > mkgroup -l [-d] > /etc/group > > Note that the -d switch is necessary for domain users. > > 3) Attempt to run "mkpasswd -d >> /etc/passwd" and "mkgroup -d >> /etc/group" > However, I get the message: > > $ mkpasswd -d >> /etc/passwd > -sh: /etc/passwd: Permission Denied Run it as the local or domain administrator that you used while installing. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple