You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ uname -a
Linux montreux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.3 (jessie)
Release: 8.3
Codename: jessie
Line 167 in the setup script:
SLIMUSERID=$(ps -fp "$SLIMSERVICEPID" | grep -v 'UID' | sed -n -e 's/^([[:alnum:]])[[:blank:]].*$/\1/p')
fails to capture the entire user name (that prints as "squeeze+" on my system), then fails further validation and ends undefined.
Consequence: corrupted sudoers file with username missing from the new entries added by the script.
I corrected the issue replacing the line with:
SLIMUSERID=$(ps o user:25= "$SLIMSERVICEPID")
HTH
The text was updated successfully, but these errors were encountered:
$ uname -a
Linux montreux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 (2016-02-29) x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.3 (jessie)
Release: 8.3
Codename: jessie
Line 167 in the setup script:
SLIMUSERID=$(ps -fp "$SLIMSERVICEPID" | grep -v 'UID' | sed -n -e 's/^([[:alnum:]])[[:blank:]].*$/\1/p')
fails to capture the entire user name (that prints as "squeeze+" on my system), then fails further validation and ends undefined.
Consequence: corrupted sudoers file with username missing from the new entries added by the script.
I corrected the issue replacing the line with:
SLIMUSERID=$(ps o user:25= "$SLIMSERVICEPID")
HTH
The text was updated successfully, but these errors were encountered: