tags 122186 unreproducible retitle 122186 [TO CLOSE 20050405] su doesn't adjust limits when using '-' option thanks
You reported this: When I become root with $ su - I should wind up with the same ulimits I would have if I had actually logged in as root. Otherwise, there are lots of unpleasant side effects if I restart a daemon or run an apt-get dist-upgrade from that shell as the new processes inherit the lower limits of the user I was before becoming root. (For example, the CPU time limit is particularly troublesome as it causes daemons to mysteriously quit without warning). As Karl Ramm mentioned you when answering o the original bug report: Are you restricting user limits via the pam_limits module? If so, do you have it set up for su as well as login? Indeed, uncommenting the pam_limit line in /etc/pam.d/su makes the limit setting work properly in su if they're set in /etc/security/limits.conf So, I think this bug cannot be reproduced and is very likely a misconfiguration. I will close it soon unless I'm convinved not to do so. -- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

