This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Why is the file created via "cmd /c echo.>1" reported by "ls -l" as owned by Administrator and group None?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]