delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/04/08/17:16:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.1.2.0.20050408170802.03aab728@pop.prospeed.net>
Date: Fri, 08 Apr 2005 17:15:48 -0400
To: "Tim C." <springshades AT hotmail DOT com>, cygwin AT cygwin DOT com
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: Re: Can't Add Users in Cygwin
In-Reply-To: <BAY18-F28A93BD260E058F33167C5D63E0@phx.gbl>
References: <BAY18-F28A93BD260E058F33167C5D63E0 AT phx DOT gbl>
Mime-Version: 1.0

At 03:42 AM 4/7/2005, you wrote:
>Sorry, I've searched the lists quite a bit as well as the documenation and other online sources that I could find. I couldn't find anything that was both similar to my problem and had a solution that I could understand. I've been trying to add domain users to Cygwin from our main domain server. It has Windows 2003 Server installed. The first account that it made automatically, adminstrator, seems to work perfectly. After that, however, none of the accounts work. I think I'm using the correct commands...
>mkgroup -d > /etc/group
>mkpasswd -d "domain name" -u "user name" >> /etc/passwd


That's fine.


>The entries in /etc/passwd and /etc/group look very similar to the entries for the administrator account that works just fine, however, a home directory isn't made and login always fails for the other accounts. 
>I tried adding a -p /home to the command, but it still didn't make a directory for the user.  

mkpasswd/mkgroup don't create the user's home directory.  /etc/profile is
responsible for that, assuming the directory does not already exist.



>If it is a permissions problem then this info might help. I'm logging into the main domain server to add the users in Cygwin. I'm logging into the "administrator" account on that computer(same account as the Cygwin account that actually works). The regular "domain users" group that contains all of the users I'm trying to add doesn't have the permission to log on locally to the computer I'm doing this from (thought that might be an issue, but I'm not sure). The "domain users" group doesn't have write priveledges to the C:\cygwin\ folder (does that mean I'd have to change their path to somewhere they DO have priveledges?). 


Sure.  That's going to be a problem.  If the user trying to start 
'cygwin.bat' on that machine doesn't have permission to write to what
'/etc/passwd' says is it's home directory, there's going to be trouble.
Change this and things should work better for you.



--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019