From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26417 invoked by alias); 3 Nov 2013 20:04:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26407 invoked by uid 89); 3 Nov 2013 20:04:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE autolearn=no version=3.3.2 X-HELO: vms173011pub.verizon.net Received: from Unknown (HELO vms173011pub.verizon.net) (206.46.173.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Nov 2013 20:04:26 +0000 Received: from consult.pretender ([unknown] [72.93.211.153]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MVP001YEEEG85E5@vms173011.mailsrvcs.net> for cygwin@cygwin.com; Sun, 03 Nov 2013 14:04:03 -0600 (CST) Received: from consult.pretender (consult.pretender [127.0.0.1]) by consult.pretender (8.14.4/8.14.4) with ESMTP id rA3K3ppH000971 for ; Sun, 03 Nov 2013 15:03:51 -0500 From: MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Message-id: <21110.44071.195847.904212@consult.pretender> Date: Sun, 03 Nov 2013 20:04:00 -0000 To: cygwin@cygwin.com Subject: Still confused about cyg_server vs. user id when logging in via ssh X-IsSubscribed: yes X-SW-Source: 2013-11/txt/msg00048.txt.bz2 When I login via ssh, I *appear* at first glance to have the same id and privileges as I do when I log in directly. a) If I am an administrator, then 'id -a' gives the following consistent answer for both direct and ssh login: uid=1001(myusername) gid=513(None) groups=513(None),0(root),544(Administrators),545(Users) b) If I am a regular user, then 'id -a' gives the following consistent answer: uid=1001(myusername) gid=513(None) groups=513(None),545(Users) However, there are some important differences. 1. First and most importantly, when I log in as administrator via 'ssh', somehow cyg_server seems to be the real owner of all my files (despite the fact that cygwin 'ls -al' seems to mask that). In particular, 'subinacl' gives /owner =mymachine\cyg_server /pace =winlawyer\cyg_server Type=0x0 Flags=0x0 AccessMask=0x1f019f For all files that are actually owned by me... though it gets the ownership right for files owned by others. This is a problem since I use ssh, as part of my backup scripts to run subinacl to backup acls. My bottom line question is whether there is any way to login via SSH and to get a shell with true ADMINISTRATOR privileges so that there is no difference between a SSH log in and a local login... at a minimum is there any way to get subinacl to work right. 2. Whether I log in as an ordinary user or as administrator via SSH, only some but not all user variables are properly set. So, for example "HOME" seems to be set properly but not for example "APPDATA". I don't understand why some variables are set and not others... -- 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