Mail Archives: cygwin/2012/11/07/12:31:05
X-Recipient: | archive-cygwin AT delorie DOT com
|
X-SWARE-Spam-Status: | No, hits=-0.4 required=5.0 tests=AWL,BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_MK
|
X-Spam-Check-By: | sourceware.org
|
MIME-Version: | 1.0
|
In-Reply-To: | <CAAQK8NxBm_V3-w2H40Hvxp9wE7tEp1u4kKVGbUoXw6A+jq82mw@mail.gmail.com>
|
References: | <CAAQK8NzUmxRuR2L0ivQDbgr6D-6312_4+B9UZQAOvJP9etH4Bg AT mail DOT gmail DOT com> <CAAQK8NxBm_V3-w2H40Hvxp9wE7tEp1u4kKVGbUoXw6A+jq82mw AT mail DOT gmail DOT com>
|
Date: | Wed, 7 Nov 2012 09:30:39 -0800
|
Message-ID: | <CAAQK8NyPe_fbkzC=YPdVNVuU0D3AzKcEU8T0XXpzaN+WOw6C1A@mail.gmail.com>
|
Subject: | Re: 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-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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/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?
> > 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
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.
Thanks,
- Cameron Gunnin
On Wed, Nov 7, 2012 at 9:28 AM, Cameron Gunnin <imisnew2 AT gmail DOT com> 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?
>
>> > 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
>
> 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.
>
> Thanks,
> - Cameron Gunnin
>
--
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
- Raw text -