home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.linux.misc      Linux-specific topics not covered by oth      135,536 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 135,063 of 135,536   
   rbowman to Ralf Fassel   
   Re: =?UTF-8?B?4oCcV2hhdA==?= a Linux roo   
   22 Jan 26 20:13:55   
   
   From: bowman@montana.com   
      
   On Thu, 22 Jan 2026 14:45:34 +0100, Ralf Fassel wrote:   
      
   > * rbowman    
   > | [...] 'sudo su' required my password and I become root.   
   >   
   > I thought that was what "sudo -i" was for, but there might be subtle   
   > differences w/ regards to which login-specific files are read.   
   >   
   > R'   
      
   Force of habit? -i works.  I very seldom use the option and didn't know   
   about -i.   
      
   I don't remember the timeline but when I first started using Linux you   
   would set a root password.  'su' would ask for that password and you would   
   become root.  It's been a long time but iirc there was a flag so you could   
   retain your user environment which was handy if you had a lot of aliases.   
      
   Then when the root account was locked and didn't have a password 'su'   
   wouldn't work but 'sudo su' seemed logical and it works.  One twist is   
   'sudo su' leaves you in the same directory where 'sudo -i' puts you in /   
   root.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca