[Hackage] #611: protect users from themselves when they use sudo inappropriately

Hackage trac at galois.com
Sun Jan 31 17:26:24 EST 2010


#611: protect users from themselves when they use sudo inappropriately
----------------------------+-----------------------------------------------
  Reporter:  duncan         |        Owner:     
      Type:  enhancement    |       Status:  new
  Priority:  normal         |    Milestone:     
 Component:  Cabal library  |      Version:     
  Severity:  normal         |     Keywords:     
Difficulty:  unknown        |   Ghcversion:     
  Platform:                 |  
----------------------------+-----------------------------------------------

Comment(by duncan):

 Replying to [comment:1 draconx]:
 > Maybe I don't understand how sudo works, but why is cabal installing in
 the user's home directory when running as root in the first place?
 >
 > It should be installing packages in root's home directory if you do
 this.

 I think sudo does not change the $HOME environment variable since it
 doesn't really "log in" as a the root user.

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/611#comment:2>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list