delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/20/12:44:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: Sean Aitken <sean DOT aitken AT gmail DOT com>
Subject: New error: chmod: changing permissions of `/tmp': Permission denied
Date: Tue, 17 May 2005 11:41:40 -0400
Lines: 55
Message-ID: <d6d3ag$qrf$2@sea.gmane.org>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)
X-IsSubscribed: yes

Good morning,

I have just recently started banging away at a problem with sshd and 
Windows Server 2003 again.  This has been a difficult journey, but I 
feel we're making progress.

Today, I noticed for the first time the following error message appears 
when a non-admin user logs in to cygwin:

--
chmod: changing permissions of `/tmp': Permission denied
--


This seems to be caused by this line in the /etc/profile file:

[/etc/profile] ===========================
...

if [ -d "/tmp" ]; then
         chmod 1777 /tmp
fi

...
==========================================

Should I just ignore this warning? I had this problem with an existing 
install on cygwin, and with a completely fresh install (after mkgroup / 
mkpasswd), it happens also!

The permissions on the root are:

.
.
total 8
drwxr-x---+  9 saitken Users           0 May 17 10:32 .
drwxr-x---+  9 saitken Users           0 May 17 10:32 ..
drwxr-x---+  2 saitken Users           0 May 17 10:37 bin
-rwxr-x---+  1 saitken Users          57 May 17 10:27 cygwin.bat
-rwxr-x---+  1 saitken Users        7022 May 17 10:38 cygwin.ico
drwxr-x---+ 10 saitken Users           0 May 17 10:34 etc
drwxrwxrwx+  4 saitken Domain Users    0 May 17 10:34 home
drwxr-x---+  5 saitken Users           0 May 17 10:24 lib
drwxrwxrwt+  2 saitken Users           0 May 17 10:34 tmp
drwxr-x---+ 14 saitken Users           0 May 17 10:24 usr
drwxr-x---+  7 saitken Users           0 May 17 10:24 var
.
.


Any ideas would be appreciated. For the time being, I will just ignore 
the error.

Best regards,
-Sean


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019