[Pkg-shadow-devel] Bug#296729: marked as forwarded ([POST-SARGE] useradd does not preserve sticky bits on directories from the skeleton)

Debian Bug Tracking System owner@bugs.debian.org
Wed, 20 Apr 2005 12:03:35 -0700


Your message dated Wed, 20 Apr 2005 20:50:59 +0200
with message-id <20050420185059.GD7188@mykerinos.kheops.frmug.org>
has caused the Debian Bug report #296729,
regarding [POST-SARGE] useradd does not preserve sticky bits on directories from the skeleton
to be marked as having been forwarded to the upstream software
author(s) Tomasz Kłoczko <kloczek@zie.pg.gda.pl>.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

---------------------------------------
Received: (at 296729-forwarded) by bugs.debian.org; 20 Apr 2005 18:51:33 +0000
>From bubulle@kheops.frmug.org Wed Apr 20 11:51:33 2005
Return-path: <bubulle@kheops.frmug.org>
Received: from perrier.eu.org (kheops.perrier.eu.org) [81.56.227.253] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DOKIO-0003cA-00; Wed, 20 Apr 2005 11:51:32 -0700
Received: from localhost (localhost [127.0.0.1])
	by kheops.perrier.eu.org (Postfix) with ESMTP id 711144F8A5;
	Wed, 20 Apr 2005 20:51:01 +0200 (CEST)
Received: from kheops.perrier.eu.org ([127.0.0.1])
	by localhost (kheops [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 12809-03; Wed, 20 Apr 2005 20:51:00 +0200 (CEST)
Received: from mykerinos.kheops.frmug.org (mykerinos.kheops.frmug.org [192.168.1.3])
	by kheops.perrier.eu.org (Postfix) with ESMTP id 83B394F89E;
	Wed, 20 Apr 2005 20:51:00 +0200 (CEST)
Received: by mykerinos.kheops.frmug.org (Postfix, from userid 7426)
	id 358852326B; Wed, 20 Apr 2005 20:51:00 +0200 (CEST)
Date: Wed, 20 Apr 2005 20:50:59 +0200
From: Christian Perrier <bubulle@debian.org>
To: Tomasz =?utf-8?Q?K=C5=82oczko?= <kloczek@zie.pg.gda.pl>
Cc: 296729-submitter@bugs.debian.org,
	296729-forwarded@bugs.debian.org
Subject: Bug confirmed : useradd does not preserve sticky bits on skeleton directories
Message-ID: <20050420185059.GD7188@mykerinos.kheops.frmug.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at kheops.frmug.org
Delivered-To: 296729-forwarded@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=BAYES_00,VALID_BTS_CONTROL 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 2

tags 296729 confirmed
retitle 296729 [POST-SARGE] useradd does not preserve sticky bits on directories from the skeleton
severity 296729 minor
thanks

I partly confirm this bug report. Sticky bits on *directories* from
the skeleton directory are not preserved when a user is created with
the use of "-k".

Sticky bits and other permissions onf files as well as directory
permissions are however properly assigned.

Tomasz, do you know if this is still true in upstream?

Anyway, according to our current scale, I assign a "minor" severity to
this bug.

root@mykerinos:/home# userdel -r haddock
root@mykerinos:/home# ls -la /etc/skel
total 17
drwxr-xr-x    3 root root 1024 2005-04-20 20:42 .
drwxr-xr-x  186 root root 9216 2005-04-20 20:48 ..
-rw-r--r--    1 root root  266 2002-04-02 13:03 .alias
-rw-r--r--    1 root root  415 2005-04-05 21:58 .bash_profile
-rw-r--r--    1 root root  415 2005-04-05 22:00 .bash_profile.dpkg-old
-rw-r--r--    1 root root 2044 2004-12-19 18:00 .bashrc
-rw-r--r--    1 root root  375 2002-04-02 13:03 .cshrc
-rws------    1 root root    0 2005-04-20 20:37 test
dr-sr-x---    2 root root 1024 2005-04-20 20:42 Test
root@mykerinos:/home# useradd -m -k /etc/skel haddock
root@mykerinos:/home# ls -la haddock/
total 9
drwxr-xr-x   3 haddock users 1024 2005-04-20 20:49 .
drwxrwsr-x  17 root    staff 1024 2005-04-20 20:49 ..
-rw-r--r--   1 haddock users  266 2005-04-20 20:49 .alias
-rw-r--r--   1 haddock users  415 2005-04-20 20:49 .bash_profile
-rw-r--r--   1 haddock users  415 2005-04-20 20:49 .bash_profile.dpkg-old
-rw-r--r--   1 haddock users 2044 2005-04-20 20:49 .bashrc
-rw-r--r--   1 haddock users  375 2005-04-20 20:49 .cshrc
-rws------   1 haddock users    0 2005-04-20 20:49 test
dr-xr-x---   2 haddock users 1024 2005-04-20 20:49 Test
root@mykerinos:/home#



--