Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tails
tails
Commits
d92bfe9f
Commit
d92bfe9f
authored
Jan 16, 2019
by
intrigeri
Browse files
Use $LIVE_USERNAME variable instead of hard-coding "amnesia" (refs:
#15583
)
parent
425f38de
Changes
1
Hide whitespace changes
Inline
Side-by-side
config/chroot_local-includes/etc/bash.bashrc.d/replace-su-with-sudo.sh
View file @
d92bfe9f
...
...
@@ -12,9 +12,12 @@
#
# https://redmine.tails.boum.org/code/issues/15583
# Get LIVE_USERNAME
.
/etc/live/config.d/username.conf
# Since we don't want to add 'su' function for root user, we will stop
# execution of this script if $USER is root.
[
"
$USER
"
==
"
amnesia
"
]
||
return
[
"
$USER
"
==
"
$LIVE_USERNAME
"
]
||
return
su
(){
/usr/local/bin/replace-su-with-sudo
...
...
intrigeri
@intrigeri
mentioned in issue
#15583 (closed)
·
May 14, 2020
mentioned in issue
#15583 (closed)
mentioned in issue #15583
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment