Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: remoting/host/installer/linux/debian/chrome-remote-desktop.init

Issue 15848019: Use sudo in remoting init.d script to get a clean per-user environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/installer/linux/debian/chrome-remote-desktop.init
diff --git a/remoting/host/installer/linux/debian/chrome-remote-desktop.init b/remoting/host/installer/linux/debian/chrome-remote-desktop.init
index 4230632e8131f5880f32e0c1aa366dc4ff1a2be7..a424824061fabfa55046602a4b8500940f8e3c59 100755
--- a/remoting/host/installer/linux/debian/chrome-remote-desktop.init
+++ b/remoting/host/installer/linux/debian/chrome-remote-desktop.init
@@ -57,8 +57,7 @@ run_and_ignore_error() {
"$exec" "$@"
else
shell="$(getent passwd "$user" | cut -d: -f7)"
Jamie 2013/06/06 22:13:04 Remove this line?
Lambros 2013/06/07 01:22:17 Done.
- USER="$user" LOGNAME="$user" SHELL="$shell" start-stop-daemon \
- --chuid "$user" --exec "$exec" --start -- "$@"
+ sudo -i -b -u "$user" start-stop-daemon --exec "$exec" --start -- "$@"
Jamie 2013/06/06 22:13:04 According to the man page, the command should foll
Sergey Ulanov 2013/06/06 22:22:44 Why do you still need start-stop-daemon here? run
Lambros 2013/06/07 01:22:17 Done.
Lambros 2013/06/07 01:22:17 Yeah, I don't think start-stop-daemon does anythin
fi
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698