Package: sudo
Version: 1.7.2p7-1
Severity: normal

sudo resets the niceness to 0:

  fishbowl:~% nice -17 ps -al | grep '[p]s' | awk '{print $8}'
  17
  fishbowl:~% nice -17 sudo ps -al | grep '[p]s' | awk '{print $8}'
  0
  fishbowl:~% nice -n 17 sudo ps -al | grep '[p]s' | awk '{print $8}'
  0

Worse, if I sudo to !root, the behaviour is as expected:

  fishbowl:~% nice -17 sudo -u nobody ps -al | grep '[p]s' | awk '{print $8}'
  17

I don't think it should do that.

The reason seems to be pam_limits defaults (which are not documented
in limits.conf(5).

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.35-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages sudo depends on:
ii  libc6                         2.11.2-2   Embedded GNU C Library: Shared lib
ii  libpam-modules                1.1.1-4    Pluggable Authentication Modules f
ii  libpam0g                      1.1.1-4    Pluggable Authentication Modules l

sudo recommends no packages.

sudo suggests no packages.

-- Configuration Files:
/etc/sudoers.d/README [Errno 13] Permission denied: u'/etc/sudoers.d/README'

-- no debconf information

-- 
 .''`.   martin f. krafft <[email protected]>      Related projects:
: :'  :  proud Debian developer               http://debiansystem.info
`. `'`   http://people.debian.org/~madduck    http://vcs-pkg.org
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply via email to