delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/31/13:06:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Fri, 31 Aug 2001 18:11:51 +0100
From: "malcolm.boekhoff" <malcolm DOT boekhoff AT actfs DOT co DOT uk>
To: Cygwin News Group <cygwin AT sources DOT redhat DOT com>
Subject: Re: Why is the file created via "cmd /c echo.>1" reported by "ls -l" as owned by Administrator and group None?
Message-ID: <20010831181151.A237@BOEKHOFF_M>
References: <20010831121656 DOT A183 AT BOEKHOFF_M> <20010831121402 DOT 38446 DOT qmail AT web9608 DOT mail DOT yahoo DOT com> <20010831153809 DOT A84 AT BOEKHOFF_M> <m3itf41bm9 DOT fsf AT localhost DOT localdomain>
Mime-Version: 1.0
In-Reply-To: <m3itf41bm9.fsf@localhost.localdomain>; from flognat@flognat.myip.org on Fri, Aug 31, 2001 at 05:40:30PM +0200

Well /etc/passwd comes out like this:

    This lot from "-l", I guess:

    Everyone:*:0:0:,S-1-1-0::
    SYSTEM:*:18:18:,S-1-5-18::
    Administrators:*:544:544:,S-1-5-32-544::
    Backup Operators:*:551:551:,S-1-5-32-551::
    Guests:*:546:546:,S-1-5-32-546::
    Power Users:*:547:547:,S-1-5-32-547::
    Replicator:*:552:552:,S-1-5-32-552::
    Users:*:545:545:,S-1-5-32-545::
    ...
    The rest from "-d":
    ...
    Administrator::10500:10513:,<SID>:/f/Administrator:/bin/bash
    ..
    My line edited for home directory:
    ...
    myusername::11878:10513:My Fullname,<SID>:/d/myhome:/bin/bash

Seems to be OK!

I've just noticed something in the FAQ about the following priviledges:

    "Act as part of the O/S"
    "Replace process level token"
    "Increase quotas"

so I've enabled those for local Administrators (of which group I am
part, although I login using my domain login).

I haven't bothered rebooting yet - might need to. Currently get (using
"echo", obviously on the one hand it's Cmd's built-in and the other it's
Bash's built-in):

-rwxrwxrwx    1 Administ Domain U        2 Fri Aug 31 17:53:40 2001 1*
-rw-r--r--    1 myuserna Domain U        2 Fri Aug 31 17:53:49 2001 2
-rwxrwxrwx    1 myuserna Domain U        2 Fri Aug 31 17:53:56 2001 3*
-rw-r--r--    1 myuserna Domain U        2 Fri Aug 31 17:56:56 2001 4

where:

    1. Created by initial Cmd.com invocation from "Start.Run".
    2. Created from Bash shell started from previous Cmd shell via
       "bash".
    3. Created from Cmd.com started from previous Bash shell (via
       "cmd").
    4. Created from Bash shell using "cmd /c echo.>4".

No. 4 is interestingly correct!

I think I might switch over to Bash full time, start it with "Start.Run"
and put all my PATH and variable stuff into ".bashrc".

At the moment I start my shell:

    cmd /k "pushd d:\myhome && setdos"

where the "setdos.bat" batch file contains all the environment set up
(I don't really use control panel user/system environment ones).

On 2001-08-31 17:40:30, Andrew Markebo wrote:
> Can you actually combine domain and local users/groups into one
> passwd-file?
>
> | > >
> | > > I use:
> | > >
> | > >     "mkpasswd -l -d -g -p /f >/etc/passwd" and
> | > > change the home directory
> | > >
> | > > and:
> | > >
> | > >     "mkgroup  -l -d -u       >/etc/group"
>
>
>         /Andy
>
> _____________________________________________________________________
> ***********************************************************************
> This message has been checked for all known viruses by the
> E-mail Virus Protection service, powered by MessageLabs.
> ***********************************************************************

***********************************************************************
This message has been checked for all known viruses by the
E-mail Virus Protection service, powered by MessageLabs.
***********************************************************************

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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