0

I just create a file at /etc/profile.d/texlive.sh where I export paths from textlive. When I log as root tlgmr is in path, when I log as normal user too but when I doo sudo tlmgr install xelatex I complains that command tlmgr was not found

How can I make sudo read /etc/profile file?

1 Answer 1

1

See answer for /etc/profile not sourced for sudo su

"Only login shells source /etc/profile"

So you may need to do

sudo -i             # Login shell for superuser
1
  • Thank you! I didn't now that only login shells source /etc/profile, so this problem extends to crontab and other things
    – geckos
    Oct 23, 2019 at 19:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.