Skip to main content
11 events
when toggle format what by license comment
Apr 16, 2021 at 13:44 comment added Gilles 'SO- stop being evil' @Myridium Indeed, see the last paragraph of my answer.
Apr 16, 2021 at 2:53 comment added Myridium /root/.profile is not loaded either with sudo command.
Dec 16, 2019 at 13:30 comment added Gilles 'SO- stop being evil' @DanChase These are the symptoms of a wrong value of TERM, but sudo su - should not change TERM. Maybe you're changing TERM in /root/.profile or /root/.bashrc some such, in which case, don't.
Dec 16, 2019 at 4:38 comment added Dan Chase I made it here because when I "sudo su -" vi and everything else is messed up (doesn't clear the screen when exiting, colors not showing, a lot is wrong with the terminal which works as a normal user) This came seemingly out of box with ubuntu, and I'm trying to determine from your reply what my fix would be? If I explicity run bash immediately, everything is good, but it feels like something is wrong.
Jan 23, 2019 at 9:11 comment added Gilles 'SO- stop being evil' @falsePockets But evidently you aren't doing the same thing to reach the superuser account. And since you didn't say what you're doing, I can't help you other than repeating what's already in my answer.
Jan 23, 2019 at 1:09 comment added falsePockets The thing which didn't work is exactly the same thing OP is trying to do. I am trying to add a directory to the PATH of my superuser. I should not ask a new question, since that question would be a duplicate of this question.
Jan 22, 2019 at 7:45 comment added Gilles 'SO- stop being evil' @falsePockets Didn't work for what? You should ask a new question and explain exactly what you're doing.
Jan 22, 2019 at 6:06 comment added falsePockets How do I add it to .profile? Do you mean /root/.profile or /home/user/.profile? I tried adding export PATH=$PATH:/mydir to both. Didn't work. I tried without export, that didn't work either.
Sep 9, 2015 at 2:40 comment added user93868 has addressed many relevant points about shells.... thanks....
Sep 9, 2015 at 1:22 vote accept CommunityBot
Sep 9, 2015 at 0:42 history answered Gilles 'SO- stop being evil' CC BY-SA 3.0