[Bug 1612028] [NEW] "sudo -i" does not read .profile when root uses bash
Karl-Philipp Richter
krichter722 at aol.de
Thu Aug 11 02:41:48 UTC 2016
Public bug reported:
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`.
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
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']
** Affects: sudo (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug xenial
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1612028
Title:
"sudo -i" does not read .profile when root uses bash
Status in sudo package in Ubuntu:
New
Bug description:
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`.
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
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']
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1612028/+subscriptions
More information about the foundations-bugs
mailing list