Skip to content

unnecessary orig_user feature #3

@ChronosPK

Description

@ChronosPK
# Determine the original (non-root) user.
# 'logname' usually returns the user who invoked sudo.
ORIG_USER=$(logname 2>/dev/null || echo "$SUDO_USER")
if [ -z "$ORIG_USER" ]; then
  echo "Could not determine the original user."
  exit 1
fi

just put the file in a globally-accessible location

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem right

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions