diff options
author | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 23:43:54 +0000 |
---|---|---|
committer | lambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 23:43:54 +0000 |
commit | 60947cd86ede9d6ab42bf68b8fe87f6bed3f69ff (patch) | |
tree | a63d1250bbff38b2c1cc76f4393ae79f03801aa5 /remoting | |
parent | 6a8fb2a18fe394ed57a1f7b05f17eef9b763cec8 (diff) | |
download | chromium_src-60947cd86ede9d6ab42bf68b8fe87f6bed3f69ff.zip chromium_src-60947cd86ede9d6ab42bf68b8fe87f6bed3f69ff.tar.gz chromium_src-60947cd86ede9d6ab42bf68b8fe87f6bed3f69ff.tar.bz2 |
Set SHELL environment in Chromoting session.
Ensure that SHELL is set to the user's login shell, instead
of /bin/bash which is the root user's shell.
BUG=224752
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/13226003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rwxr-xr-x | remoting/host/installer/linux/debian/chrome-remote-desktop.init | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/installer/linux/debian/chrome-remote-desktop.init b/remoting/host/installer/linux/debian/chrome-remote-desktop.init index efcf256..4230632 100755 --- a/remoting/host/installer/linux/debian/chrome-remote-desktop.init +++ b/remoting/host/installer/linux/debian/chrome-remote-desktop.init @@ -56,7 +56,8 @@ run_and_ignore_error() { if [ "$(whoami)" = "$user" ]; then "$exec" "$@" else - USER="$user" LOGNAME="$user" start-stop-daemon \ + shell="$(getent passwd "$user" | cut -d: -f7)" + USER="$user" LOGNAME="$user" SHELL="$shell" start-stop-daemon \ --chuid "$user" --exec "$exec" --start -- "$@" fi } |