delorie.com/archives/browse.cgi | search |
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: | <509AA57B.6030500@cygwin.com> |
Date: | Wed, 07 Nov 2012 13:16:27 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
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/<user>/ |
References: | <CAAQK8NzUmxRuR2L0ivQDbgr6D-6312_4+B9UZQAOvJP9etH4Bg AT mail DOT gmail DOT com> <CAAQK8NxBm_V3-w2H40Hvxp9wE7tEp1u4kKVGbUoXw6A+jq82mw AT mail DOT gmail DOT com> <CAAQK8NyPe_fbkzC=YPdVNVuU0D3AzKcEU8T0XXpzaN+WOw6C1A AT mail DOT gmail DOT com> |
In-reply-to: | <CAAQK8NyPe_fbkzC=YPdVNVuU0D3AzKcEU8T0XXpzaN+WOw6C1A@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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/7/2012 12:30 PM, Cameron Gunnin wrote: >> 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/<user>/. 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. >> > > Maybe I'm missing something, but I don't see (nor can find) a > passwd-grp.sh script. I searched the entire Cygwin folder and did not > find it. A brief search on the cygwin site didn't turn anything up > either. Could you point me in the right direction? Sorry, I have the old name for the postinstall script still kicking around in my postinstall directory. You're looking for 000-cygwin-post-install.sh. <snip> > Cygwin is going to eventually be ran by domain users only. The current > process was to install cygwin under the local administrator, run > mkpasswd/mkgroup -l, then image it. When the domain user first logged on, > they would run mkpasswd/mkgroup -d, but it's giving them the error message > above (Permission Denied) to append to the /etc/passwd and /etc/group files. > I was trying to find out why. Ah. That's a horse of a different color. ;-) You can't update the '/etc/passwd' and '/etc/group' files by another user because they have no access. Check out 'ls -l /etc/passwd' and I think you'll see what I mean. The simple solution is to change the group ownership on this and '/etc/group' to some shared group. Either that or add write permissions across the board (chmod +w /etc/passwd /etc/group). -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |