delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MK,TW_RW,TW_WX |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Fri, 2 Nov 2012 09:41:40 -0700 |
Message-ID: | <CAAQK8NzUmxRuR2L0ivQDbgr6D-6312_4+B9UZQAOvJP9etH4Bg@mail.gmail.com> |
Subject: | Domain User getting "Permission Denied" for anything outside of /home/<user>/ |
From: | Cameron Gunnin <imisnew2 AT gmail DOT com> |
To: | cygwin AT cygwin DOT 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 |
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" 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 If I run "ls -al /" then I get an odd (but expected, I think) list of permissions on several root folders. eg. drwxr-xr-x+ ???????? mkpasswd 0 Oct 31 14:16 etc I cannot even touch a file inside the directories with ???????? listed as their user. $ touch /etc/myfile touch: cannot touch 'myfile': PermissionDenied HOWEVER, I can touch/edit files under the windows file system. $ touch /cygdrive/c/myfile $ echo "data" >> /cygdrive/c/myfile $ echo "data" >> /cygdrive/c/<existing file with ???????? user> Any help is appreciated, as I've been stuck on this for just over a week now. Thanks. -- 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 |