This is the mail archive of the cygwin 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]
Other format: [Raw text]

1.5.14 non-admin account problems



For the past couple of days I have been trying to get non-admin accounts working under cygwin. Whenever I try to start cygwin after logging into windows with a non-admin account or try to ssh using a non-admin account I get the following errors:


Last login: Fri Apr 15 09:43:31 2005 from sms-mh
bash.exe: warning: could not find /tmp, please create!
-bash: /etc/profile: Permission denied
-bash: /home/sms2/.bash_profile: Permission denied

I cannot change directories or execute any commands except "pwd" and "echo". (error: "-bash: fork: Permission denied") The one other strange thing is that the CYGWIN variable does not get defined when logging in with a non-admin user.

I figured it was a permissioning problem so I added the non-admin user to the Administrators group in /etc/passwd, and the user could login fine with ssh. After searching the mailing lists and google, I've tried a number of different things to fix this. I changed my CYGWIN variable to "ntsec notransverse", rebooted and still got the error. I've changed folder and file owner/group with chown. I've tried changing permissions on different files and folders using Windows Security, chmod and setfacl. I've had to uninstall and reinstall a couple of times from changing permissions and screwing up the install. At this point I don't know what else to try.

These permissions do not look correct to me, but I do not know which files/directories need to be changed and what exactly they should be changed to.

$ getfacl /bin
# file: /bin
# owner: sms
# group: Users
user::---
group::---
mask:rwx
other:rwx
default:other:rwx

Pretty much all directories and files have the above permissions except for /home.

$ getfacl /home
# file: /home
# owner: sms
# group: None
user::rwx
group::rwx
mask:rwx
other:rwx
default:user::rwx
default:group::rwx
default:other:rwx

I am running Windows 2000 Server fully patched. C: is formatted NTFS. System name "sms-mh"
"sms" - user I installed cygwin with. under windows security, member of Administrators
"sms2" - non-admin user I am having problems with. under windows security, member of Users


Where I'm at right now:

Logged into windows as "sms", I uninstalled cygwin (removed "Cygnus Solutions" registry entries from HKEY_LOCAL_MACHINE\SOFTWARE, HKEY_CURRENT_USER\SOFTWARE and HKEY_USERS_.DEFAULT and the sshd key from CurrentControlSet\services, deleted c:\cygwin, rebooted) and then reinstalled cygwin (base packages plus "vim," "less," "ssh") Started cygwin: /home/sms, .bashrc, .bash_profile, .inputrc were created. Ran "ssh_host_config", answered yes to "privelege separation", yes to "install as service", entered "ntsec notransverse" for "CYGWIN=". Ran "cygrunsrv --start sshd". Connected as "sms" using ssh okay. Tried to connect as "sms2" received error. Added "sms2" to Administrators group under cygwin (in /etc/passwd changed "xp:1005:513" to "xp:1005:544") Connected as "sms2" okay. Home directory and files were created. Moved "sms2" back to group "none" (:513) Tried to ssh as "sms2" received error.

Any help would be appreciated. If this is a simple fix and has been talked about before in the mailing lists, I apologize for wasting your time. (I swear I did numerous searches before posting this) If you need any other info, just let me know.

Again, thanks.

--


-Michael Haas King of Prussia, PA


Cygwin Configuration Diagnostics
Current System Time: Fri Apr 15 09:20:25 2005

Windows 2000 Server Ver 5.0 Build 2195 Service Pack 4

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	C:\cygwin\usr\X11R6\bin
	c:\Perl\bin\
	c:\WINNT\system32
	c:\WINNT
	c:\WINNT\System32\Wbem
	c:\"Program Files"\Putty
	C:\cygwin
	C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(sms) GID: 513(None)
513(None)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1003(sms)      GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

SysDir: C:\WINNT\system32
WinDir: C:\WINNT

CYGWIN = `ntsec notraverse'
HOME = `C:\cygwin\home\sms'
MAKE_MODE = `unix'
PWD = `/home/sms'
USER = `sms'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\sms\Application Data'
CLASSPATH = `"C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip"'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `SMS-MH'
COMSPEC = `C:\WINNT\system32\cmd.exe'
CVS_RSH = `/bin/ssh'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\sms'
HOSTNAME = `sms-mh'
INFOPATH = `/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:'
LOGONSERVER = `\\SMS-MH'
MANPATH = `/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/etc/skel'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PRINTER = `Lexmark Optra S 2455'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 11 Stepping 4, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0b04'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
QTJAVA = `"C:\Program Files\Java\j2re1.4.2_03\lib\ext\QTJava.zip"'
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\tmp'
TERM = `cygwin'
TMP = `c:\tmp'
TVDUMPFLAGS = `10'
USERDOMAIN = `SMS-MH'
USERNAME = `sms'
USERPROFILE = `C:\Documents and Settings\sms'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'
POSIXLY_CORRECT = `1'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd             N/A    N/A                    
c:  hd  NTFS      8667Mb  76% CP CS UN PA FC     
d:  cd             N/A    N/A                    
e:  net NTFS      4086Mb  88% CP CS UN PA FC     
f:  net FAT       4540Mb 100% CP    UN           

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe

   55k 2004/09/14 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2004/9/14 0:16
   18k 2004/07/06 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygcharset-1.dll" v0.0 ts=2004/7/6 14:09
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 3:57
  858k 2005/04/11 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2005/4/11 14:21
   40k 2004/10/10 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2004/10/10 4:33
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 1:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 1:03
   48k 2003/08/09 C:\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
                  "cygform7.dll" v0.0 ts=2003/8/9 5:25
   28k 2003/07/20 C:\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-3.dll" v0.0 ts=2003/7/20 3:58
   30k 2003/08/11 C:\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm-4.dll" v0.0 ts=2003/8/10 22:12
   19k 2003/03/22 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/19 22:05
   15k 2003/07/20 C:\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 4:00
   15k 2003/08/11 C:\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm_compat-4.dll" v0.0 ts=2003/8/10 22:13
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 23:34
   29k 2003/08/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2003/8/10 19:16
   25k 2004/10/12 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2004/10/12 2:51
  991k 2004/07/06 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2004/7/6 14:10
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 4:28
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 17:50
   54k 2004/07/06 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2004/7/6 13:51
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 13:09
   22k 2004/10/10 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2004/10/10 4:33
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 1:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 1:03
   29k 2003/08/09 C:\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu7.dll" v0.0 ts=2003/8/9 5:25
   21k 2004/10/22 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.0 sys=4.0
                  "cygminires.dll" v0.0 ts=2004/10/22 16:28
   74k 2004/10/10 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2004/10/10 4:33
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 1:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 1:03
  216k 2004/10/10 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2004/10/10 4:25
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 1:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 1:03
  224k 2003/08/09 C:\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses7.dll" v0.0 ts=2003/8/9 5:24
   13k 2004/10/10 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2004/10/10 4:32
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 1:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 1:03
   19k 2003/08/09 C:\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel7.dll" v0.0 ts=2003/8/9 5:24
   62k 2003/12/11 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2003/12/11 12:01
   63k 2003/04/11 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2003/4/11 4:31
    9k 2003/12/11 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2003/12/11 12:01
   61k 2003/04/11 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2003/4/11 4:31
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 1:45
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 23:34
  148k 2003/08/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2003/8/10 19:16
  144k 2004/10/12 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2004/10/12 2:51
  171k 2005/04/11 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2005/4/11 14:21
   62k 2004/10/10 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2004/10/10 0:09
 1158k 2005/04/01 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2005/4/1 13:40
    Cygwin DLL version info:
        DLL version: 1.5.14
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 126
        Shared data: 4
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Fri Apr 1 13:40:00 EST 2005
        Shared id: cygwin1S4


Cygwin Package Information
Last downloaded files to: C:\ftproot\apps\cygwin
Last downloaded files from: C:\ftproot\apps\cygwin

Package              Version
_update-info-dir     00231-1
ash                  20040127-1
base-files           3.2-1
base-passwd          2.2-1
bash                 2.05b-16
bzip2                1.0.2-6
coreutils            5.3.0-4
crypt                1.1-1
cygrunsrv            1.01-1
cygutils             1.2.7-1
cygwin               1.5.14-1
cygwin-doc           1.4-2
diffutils            2.8.7-1
editrights           1.01-1
findutils            20041227-1
gawk                 3.1.4-3
gdbm                 1.8.3-7
grep                 2.5.1a-2
groff                1.18.1-2
gzip                 1.3.5-1
less                 381-1
libbz2_1             1.0.2-6
libcharset1          1.9.2-1
libgdbm              1.8.0-5
libgdbm-devel        1.8.3-7
libgdbm3             1.8.3-3
libgdbm4             1.8.3-7
libiconv             1.9.2-1
libiconv2            1.9.2-1
libintl              0.10.38-3
libintl1             0.10.40-1
libintl2             0.12.1-3
libintl3             0.14.1-1
libncurses5          5.2-1
libncurses6          5.2-8
libncurses7          5.3-4
libncurses8          5.4-1
libpcre              4.1-1
libpcre0             4.5-1
libpopt0             1.6.4-4
libreadline4         4.1-2
libreadline5         4.3-5
libreadline6         5.0-1
login                1.9-7
man                  1.5o1-2
minires              1.00-1
mktemp               1.5-3
ncurses              5.4-1
openssh              4.0p1-1
openssl              0.9.7g-1
readline             5.0-1
sed                  4.1.4-1
tar                  1.13.25-5
termcap              20021106-2
terminfo             5.4_20041009-1
texinfo              4.8-1
vim                  6.3-1
which                1.6-1
zlib                 1.2.2-1
Use -h to see help about each section

root:S-1-5-32-544:0:
SYSTEM:S-1-5-18:18:
None:S-1-5-21-515967899-179605362-839522115-513:513:
Administrators:S-1-5-32-544:544:
Backup Operators:S-1-5-32-551:551:
Guests:S-1-5-32-546:546:
Power Users:S-1-5-32-547:547:
Replicator:S-1-5-32-552:552:
Users:S-1-5-32-545:545:

SYSTEM:*:18:544:,S-1-5-18::
Administrators:*:544:544:,S-1-5-32-544::
Administrator:unused_by_nt/2000/xp:500:513:U-SMS-MH\Administrator,S-1-5-21-515967899-179605362-839522115-500:/home/Administrator:/bin/bash
ASPNET:unused_by_nt/2000/xp:1004:513:ASP.NET Machine Account,U-SMS-MH\ASPNET,S-1-5-21-515967899-179605362-839522115-1004:/home/ASPNET:/bin/bash
Guest:unused_by_nt/2000/xp:501:513:U-SMS-MH\Guest,S-1-5-21-515967899-179605362-839522115-501:/home/Guest:/bin/bash
IUSR_ML330G2:unused_by_nt/2000/xp:1001:513:Internet Guest Account,U-SMS-MH\IUSR_ML330G2,S-1-5-21-515967899-179605362-839522115-1001:/home/IUSR_ML330G2:/bin/bash
IWAM_ML330G2:unused_by_nt/2000/xp:1002:513:Launch IIS Process Account,U-SMS-MH\IWAM_ML330G2,S-1-5-21-515967899-179605362-839522115-1002:/home/IWAM_ML330G2:/bin/bash
sms:unused_by_nt/2000/xp:1003:513:sms,U-SMS-MH\sms,S-1-5-21-515967899-179605362-839522115-1003:/home/sms:/bin/bash
sms2:unused_by_nt/2000/xp:1005:513:sms2,U-SMS-MH\sms2,S-1-5-21-515967899-179605362-839522115-1005:/home/sms2:/bin/bash
sshd:unused_by_nt/2000/xp:1009:513:sshd privsep,U-SMS-MH\sshd,S-1-5-21-515967899-179605362-839522115-1009:/var/empty:/bin/bash
temp:unused_by_nt/2000/xp:1008:513:temp,U-SMS-MH\temp,S-1-5-21-515967899-179605362-839522115-1008:/home/temp:/bin/bash
TsInternetUser:unused_by_nt/2000/xp:1000:513:TsInternetUser,U-SMS-MH\TsInternetUser,S-1-5-21-515967899-179605362-839522115-1000:/home/TsInternetUser:/bin/bash

# file: /bin
# owner: sms
# group: Users
user::---
group::---
mask:rwx
other:rwx
default:other:rwx

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

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