** Description changed: According to `man sudo` `sudo -i` is supposed to read `.profile`, but apparently it doesn't since adding `alias ll='ls -la'` to the end of `/root/.profile` causes `ll` to fail with `ll: command not found`, but the alias should be available if `.profile` was read. `root` uses `/bin/bash` according to `/etc/passwd`. + + Now, I got it. /root/.profile is only sourced at the first sudo -i after + reboot (or maybe display manager (re-)login), not at every following + sudo -i - at least in gnome-terminal. If sudo -i is run once when + /root/.bash_profile is present it is sourced (and /root/.profile skipped + as expected) and if it /root/.bash_profile is removed every following + invokation of sudo -i causes /root/.profile to be sourced. That not + right, right? ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: sudo 1.8.16-0ubuntu1.1 ProcVersionSignature: Ubuntu 4.4.0-34.53-generic 4.4.15 Uname: Linux 4.4.0-34-generic x86_64 NonfreeKernelModules: openafs ApportVersion: 2.20.1-0ubuntu2.1 Architecture: amd64 CurrentDesktop: Unity Date: Thu Aug 11 04:35:28 2016 InstallationDate: Installed on 2015-12-12 (242 days ago) InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021) SourcePackage: sudo UpgradeStatus: Upgraded to xenial on 2016-03-14 (149 days ago) VisudoCheck: - /etc/sudoers: Analyse OK - /etc/sudoers.d/README: Analyse OK + /etc/sudoers: Analyse OK + /etc/sudoers.d/README: Analyse OK modified.conffile..etc.sudoers: [inaccessible: [Errno 13] Keine Berechtigung: '/etc/sudoers'] modified.conffile..etc.sudoers.d.README: [inaccessible: [Errno 13] Keine Berechtigung: '/etc/sudoers.d/README']
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1612028 Title: "sudo -i" does not read .profile when root uses bash To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1612028/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
