Linux /etc/profile to apply to

Asked 2 years ago, Updated 2 years ago, 41 views

Hello. If you go to the site below, I organized /etc/profile as follows http://www.troubleshooters.com/linux/prepostpath.htm

All users except root /etc/profile

What I'm curious about is Is it correct that /etc/profile is applied to all users except root?

Or does it apply to all users including root?

I want to know exactly.

linux

2022-09-22 13:58

1 Answers

/etc/profile is a system-wide setup file that reads unconditionally at boot time.

Of course, I will read it as a setup file with /etc/bashrc, but /etc/profile is a more common file.

In other words, we will read it including all the root.

For verification, you can check with env after root su.


2022-09-22 13:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.