public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Question about UAC and bash/cygwin
@ 2012-08-15  2:09 Lord Laraby
  2012-08-15  4:10 ` Lord Laraby
  2012-08-15  9:35 ` Adam Dinwoodie
  0 siblings, 2 replies; 21+ messages in thread
From: Lord Laraby @ 2012-08-15  2:09 UTC (permalink / raw)
  To: Cygwin Mailing List

Hi Folks,

I've scanned months of the mailing list archives for an answers and
searched until I've run out of ideas.

What I want to figure out is this. When I run bash --login -i in an
elevated command prompt, or I use "elevate bash --login -i" or any
other variation, I don't get any sign of being root or having
privileges. But, I can invoke privileged operations and use chmod,
chown, etc. on files and read, write,delete in Administrator only
directories from bash. These are places you can only change in a
raised privilege state.

My /etc/passwd and /etc/group have been automatically created and
updated to have user "root" connected to the S-1-5-32-544 sid as I
think I saw in one of the guides. My local administrator account has
the username "admin".

Problems

1) Example, "id" still shows my normal userid and default group of
'"none" even though I am a member of root's (Administrators) group.
None of the scripts that check for administrator level seem to work.
Am i doing it wrong?

2) I can't ssh into the box as "root" because there is no group
password in Windows 7. Should there be a way to assign own?

3) If I use the local administrators account, none of the files or
directories has "root" as user or group. But shouldn't they?

4) There is no newgrp command so I can't join any of my other assigned
groups. So, "umask" doesn't do as I want. If there a better way to
change to the root group?

5) When I ran sshd-host-config I get a slew of warnings about not
being able to do that (on both .\Administrator and on elevated normal
login). However, the service is created and the users cyg_server and
sshd are as well with the proper groups and privileges. Howver, it
fails to set the owner or access rights on /etc/ssh* or /var/log/sshd
or /var/log/lastlog. What is the proper way to have done this on
WIndows 7 Ultimate Edition 64-bit Service Pack I?

6) Cygwin is a great package and works better than SFU/SUA which I
also have installed. Is there any way I can help make the security
stuff more unixy?

Thanks in advance for any answers or replies.

-- 
Lord Laraby

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-08-16 22:46 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-15  2:09 Question about UAC and bash/cygwin Lord Laraby
2012-08-15  4:10 ` Lord Laraby
2012-08-15  9:35 ` Adam Dinwoodie
2012-08-15 10:56   ` Lord Laraby
2012-08-16  4:05     ` Larry Hall (Cygwin)
2012-08-16  8:51       ` Lord Laraby
2012-08-16 10:31         ` Corinna Vinschen
2012-08-16 12:02           ` Lord Laraby
2012-08-16 12:27             ` Corinna Vinschen
2012-08-16 14:04               ` Lord Laraby
2012-08-16 16:03                 ` Corinna Vinschen
2012-08-16 16:03                   ` Lord Laraby
2012-08-16 18:23                     ` Kurt Franke
2012-08-16 18:32                     ` Corinna Vinschen
2012-08-16 19:26               ` Christian Franke
2012-08-16 19:52                 ` Lord Laraby
2012-08-16 21:31                   ` Lord Laraby
2012-08-16 22:16                     ` Lord Laraby
2012-08-17  1:57                       ` Christopher Faylor
2012-08-16 22:46                   ` Linda Walsh
2012-08-16  9:20     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).