Debian Bug report logs - #674040
please change fallback shell handling

version graph

Package: schroot; Maintainer for schroot is Christoph Biedl <debian.axhn@manchmal.in-ulm.de>; Source for schroot is src:schroot (PTS, buildd, popcon).

Reported by: Peter Palfrader <weasel@debian.org>

Date: Tue, 22 May 2012 17:45:01 UTC

Severity: wishlist

Found in version schroot/1.4.19-1+squeeze1

Fixed in version schroot/1.5.3-1

Done: Roger Leigh <rleigh@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#674040; Package schroot. (Tue, 22 May 2012 17:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to Peter Palfrader <weasel@debian.org>:
New Bug report received and forwarded. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Tue, 22 May 2012 17:45:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Peter Palfrader <weasel@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: please change fallback shell handling
Date: Sun, 20 May 2012 21:50:52 +0200
Package: schroot
Version: 1.4.19-1+squeeze1
Severity: wishlist

Hi,

if a user's shell is not available in the chroot, schroot falls back to
/bin/sh.

That's probably ok for scripted stuff, but as an interactive shell dash
/bin/sh is often quite limited.

Please allow changing the default fallback shell in a config file, or
just try bin/bash before bin/sh?

Cheers,
weasel




Information forwarded to debian-bugs-dist@lists.debian.org, Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>:
Bug#674040; Package schroot. (Wed, 23 May 2012 22:54:05 GMT) (full text, mbox, link).


Acknowledgement sent to Roger Leigh <rleigh@codelibre.net>:
Extra info received and forwarded to list. Copy sent to Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>. (Wed, 23 May 2012 22:54:05 GMT) (full text, mbox, link).


Message #10 received at 674040@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@codelibre.net>
To: Peter Palfrader <weasel@debian.org>, 674040@bugs.debian.org
Subject: Re: [buildd-tools-devel] Bug#674040: please change fallback shell handling
Date: Wed, 23 May 2012 23:52:00 +0100
tags 674040 + pending
thanks

On Sun, May 20, 2012 at 09:50:52PM +0200, Peter Palfrader wrote:
> if a user's shell is not available in the chroot, schroot falls back to
> /bin/sh.
> 
> That's probably ok for scripted stuff, but as an interactive shell dash
> /bin/sh is often quite limited.
> 
> Please allow changing the default fallback shell in a config file, or
> just try bin/bash before bin/sh?

Fixed in git for 1.5.3.  From the docs:

       -s, --shell=shell
              Use shell as the login shell.  When running a login shell a num‐
              ber of potential shells will be considered, in this  order:  the
              command  in  the SHELL environment variable (if --preserve-envi‐
              ronment is used, or preserve-environment is enabled), the user's
              shell  in  the ‘passwd’ database, /bin/bash and finally /bin/sh.
              This option overrides this list, and will use the  shell  speci‐
              fied.   This  option also overrides the shell configuration key,
              if set.

       shell=shell
              When  running a login shell a number of potential shells will be
              considered, in this order: the command in the SHELL  environment
              variable  (if  --preserve-environment is used, or preserve-envi‐
              ronment is enabled), the user's shell in the ‘passwd’  database,
              /bin/bash  and  finally  /bin/sh.   This  setting overrides this
              list, and will use the shell specified.  It  may  be  overridden
              using the --shell option.

Prerelease version at http://people.debian.org/~rleigh/schroot-1.5.3.tar.xz
This also includes the groups warning fix.

Hope this meets your needs.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800




Added tag(s) pending. Request was from Roger Leigh <rleigh@codelibre.net> to control@bugs.debian.org. (Wed, 23 May 2012 22:54:08 GMT) (full text, mbox, link).


Reply sent to Roger Leigh <rleigh@debian.org>:
You have taken responsibility. (Tue, 29 May 2012 22:09:11 GMT) (full text, mbox, link).


Notification sent to Peter Palfrader <weasel@debian.org>:
Bug acknowledged by developer. (Tue, 29 May 2012 22:09:12 GMT) (full text, mbox, link).


Message #17 received at 674040-close@bugs.debian.org (full text, mbox, reply):

From: Roger Leigh <rleigh@debian.org>
To: 674040-close@bugs.debian.org
Subject: Bug#674040: fixed in schroot 1.5.3-1
Date: Tue, 29 May 2012 22:06:42 +0000
Source: schroot
Source-Version: 1.5.3-1

We believe that the bug you reported is fixed in the latest version of
schroot, which is due to be installed in the Debian FTP archive:

dchroot-dsa_1.5.3-1_amd64.deb
  to main/s/schroot/dchroot-dsa_1.5.3-1_amd64.deb
dchroot_1.5.3-1_amd64.deb
  to main/s/schroot/dchroot_1.5.3-1_amd64.deb
libsbuild-dev_1.5.3-1_amd64.deb
  to main/s/schroot/libsbuild-dev_1.5.3-1_amd64.deb
libsbuild-doc_1.5.3-1_all.deb
  to main/s/schroot/libsbuild-doc_1.5.3-1_all.deb
schroot-common_1.5.3-1_all.deb
  to main/s/schroot/schroot-common_1.5.3-1_all.deb
schroot-dbg_1.5.3-1_amd64.deb
  to main/s/schroot/schroot-dbg_1.5.3-1_amd64.deb
schroot_1.5.3-1.debian.tar.gz
  to main/s/schroot/schroot_1.5.3-1.debian.tar.gz
schroot_1.5.3-1.dsc
  to main/s/schroot/schroot_1.5.3-1.dsc
schroot_1.5.3-1_amd64.deb
  to main/s/schroot/schroot_1.5.3-1_amd64.deb
schroot_1.5.3.orig.tar.xz
  to main/s/schroot/schroot_1.5.3.orig.tar.xz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 674040@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roger Leigh <rleigh@debian.org> (supplier of updated schroot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 29 May 2012 21:26:47 +0100
Source: schroot
Binary: schroot-common libsbuild-dev schroot-dbg libsbuild-doc schroot dchroot dchroot-dsa
Architecture: source all amd64
Version: 1.5.3-1
Distribution: unstable
Urgency: low
Maintainer: Debian buildd-tools Developers <buildd-tools-devel@lists.alioth.debian.org>
Changed-By: Roger Leigh <rleigh@debian.org>
Description: 
 dchroot    - Execute commands in a chroot environment
 dchroot-dsa - Execute commands in a chroot environment
 libsbuild-dev - development files for the Debian source builder
 libsbuild-doc - development documentation for the Debian source builder
 schroot    - Execute commands in a chroot environment
 schroot-common - common files for schroot
 schroot-dbg - schroot, dchroot and dchroot-dsa debugging symbols
Closes: 604268 674040 674041
Changes: 
 schroot (1.5.3-1) unstable; urgency=low
 .
   * New upstream development release.
   * dchroot:
     - Always use "/bin/sh -c" to run the specified command, rather than
       the user's shell, in order to ensure consistent behaviour.
   * schroot:
     - Add shell fallbacks (Closes: #674040).  When running a login
       shell, try $SHELL (if preserving the environment), or else passwd
       pw_shell, then /bin/bash and finally /bin/sh.  This may be
       overidden using the shell configuration key, which may in turn be
       overidden by the --shell option.
     - Don't warn the user about groups which do not exist
       (Closes: #674041).  This is now debug log info only.
     - Add support for running programs in non-native architecture
       chroots using binfmt support for qemu user binaries
       (Closes: #604268).  Thanks to Loïc Minier, Julian Andres Klode
       and Colin Watson.
Checksums-Sha1: 
 cf1d0e442d4a4c6fb3184a99a3178e10d3a8eb46 2424 schroot_1.5.3-1.dsc
 1037078bfb3dc9563a37f51f573112c2c706aebf 721204 schroot_1.5.3.orig.tar.xz
 0070ea91f10320a7bd48d58eedcc6629f2d627d7 27885 schroot_1.5.3-1.debian.tar.gz
 6e0cbc2ff3d6d09be19ac735fabf651b6e30b013 255274 schroot-common_1.5.3-1_all.deb
 3c93492dfffb03bd95c2368880b06ab4065a6bf8 2293348 libsbuild-dev_1.5.3-1_amd64.deb
 8cf95553d18e527bfaf15562390a6068fcc8dd31 29722960 schroot-dbg_1.5.3-1_amd64.deb
 63a05d8ca4710ce4119e70baaaf6710ab85a5b42 8257012 libsbuild-doc_1.5.3-1_all.deb
 9e0bead60e12cdfa7ce1be597ca9c572bcb7fe25 958126 schroot_1.5.3-1_amd64.deb
 a4c1acce81ae091cf400f4f19308a6e19efe77cd 372800 dchroot_1.5.3-1_amd64.deb
 1b84a9ec0b0c8f819d0e8d9e7a0f1e4ea3a41135 372236 dchroot-dsa_1.5.3-1_amd64.deb
Checksums-Sha256: 
 4f2b9fd9ef53e22e2564165cdc47e844cd05cea8d78a16b5b93239a6dab79fdc 2424 schroot_1.5.3-1.dsc
 bdbc66c357d2a3ac14a1a2bfad1176b1ccfb3628c2b4607354ae3e26c03aafb1 721204 schroot_1.5.3.orig.tar.xz
 84d41377e26efb468be74591619bed329d3cd0b6e0fb25ca383124e432158c99 27885 schroot_1.5.3-1.debian.tar.gz
 d6d4af344e790d9c6d5001a7413ad9f605130965a22b08a4a02317c3cb1efd6b 255274 schroot-common_1.5.3-1_all.deb
 732035fdac3632fd246b2454be4731c14e7f720084edaddb4b0f6c6bbfa992d9 2293348 libsbuild-dev_1.5.3-1_amd64.deb
 df828605b618886a1b068f31112e58439bb3c8e7d39824b6d188044f711e0063 29722960 schroot-dbg_1.5.3-1_amd64.deb
 48ea7339481244ff29633aa65a9febf548204b459cbdbb5acc811087df0fd370 8257012 libsbuild-doc_1.5.3-1_all.deb
 8811200220414b765b1ed304037cc49dad101d30884509efef6f5a152ede4f25 958126 schroot_1.5.3-1_amd64.deb
 d5dae2107cf3d46fa5eff696ae409ad26a19d9ded33c1f478422d5fc4198adee 372800 dchroot_1.5.3-1_amd64.deb
 0d677523baa5ede32d8bcfa65dfa6d9d5bb21fbbc5ff1d2f8a8cc1cb30da8a98 372236 dchroot-dsa_1.5.3-1_amd64.deb
Files: 
 750d0afa6d08608146283a9739c07e2a 2424 admin optional schroot_1.5.3-1.dsc
 ef9ffb7c4fe25c074c9f3544ec14085a 721204 admin optional schroot_1.5.3.orig.tar.xz
 7ce62eb64d478f04e8ddecea9c60b18c 27885 admin optional schroot_1.5.3-1.debian.tar.gz
 d479a9ec4db4e3230c4e99624b775f87 255274 admin optional schroot-common_1.5.3-1_all.deb
 66ea444ae35d7ad5491f094f0db80174 2293348 libdevel optional libsbuild-dev_1.5.3-1_amd64.deb
 23c813cf19fa552ad10c3755ac4b2f39 29722960 debug extra schroot-dbg_1.5.3-1_amd64.deb
 c12b4731ab392d460ece1e179ecbafc1 8257012 doc optional libsbuild-doc_1.5.3-1_all.deb
 ea12bd508948c58e4db32c6799b33254 958126 admin optional schroot_1.5.3-1_amd64.deb
 8815d13362a861dd8259721368177e1d 372800 admin optional dchroot_1.5.3-1_amd64.deb
 961271b58a3998ac832c4d09396d53f2 372236 admin optional dchroot-dsa_1.5.3-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBCgAGBQJPxUNxAAoJEOJSSsUKn1xZ5PUQAKyQo3gSbu2iW2eLC+8zjuoe
IyeUFfzm+P2hKD6Od+6kCTi2fCgNIjOeeSbo0wiIQFTGVLq7l/JMjQlZky0KhnB4
84cGoHRflvLKsZrwR6LdFVmv87aO0LzHjwxOj4PVT8jNlNFkoPgahWIzca1MQIRg
0G3dVnG5sUW6yVkmptYi23SKtUaPPlaonpDHijWJAxpwhd3y/ijA7uxNKMvbNOod
V6p571eL0Z+A9rEVdYH9I7dNtphyg4AJonIkqQDU9hzzOHGEOMGMJz+gUCxXBd7x
D5vhxmpJwZ16bjLj48r7i0H84geyC9kN1C4zAIoZGA9ioUZpJRmxYbzbX2lx8z9X
QWDV0NhskvvjydBlIrNy+h9yi4xFVzvR+zGUenKLLDwXLxGE+ZfKChlYUfnWy3K4
08ZfRsWdQuztok8dkGVIuk3Yu55+E+He6cOBIhA+lQV3sU0jPSZbIiLxtFE6PJBf
VvNWY55L+WCtyazjYCouUeseDprWMlcT7nI3JR0m+B6ALpO2X81Ldi0wWKlznSqO
omFddMkVy/7SQgZBbiPpQsBGGUJnlWyuExMgB7cTjWZyxJs/BF+iAWDthXTvVAhW
Z84wPbPUOJ+noUX8VcHiUffk6IcjHCxd8meC29lg4RJo8G+ZhgtnZsNVIqH86h+m
Kma3AOISAbi17ERDXkDi
=7ddP
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 27 Jun 2012 07:38:41 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Tue Jan 30 06:52:06 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.