[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-bugs] #8509 [arm]: Tor/arm crach when run with out root preveliges.



#8509: Tor/arm crach when run with out root preveliges.
---------------------+------------------------------------------------------
 Reporter:  Nahita   |          Owner:  atagar            
     Type:  defect   |         Status:  new               
 Priority:  normal   |      Milestone:  Tor: 0.2.3.x-final
Component:  arm      |        Version:  Tor: 0.2.3.25     
 Keywords:  tor arm  |         Parent:                    
   Points:           |   Actualpoints:                    
---------------------+------------------------------------------------------
 So I have been busy the last couple of days trying to get my tor relay
 back online on my Ubuntu 12.04 64-bit server. But I have encountered a
 couple of problems I can not solve.

 Running arm as a non-root gives me the simple feed back that it can not
 create a torrc and torrc_bak file because of permission issues and then
 stop the starting procedure.

 Changing the permission of torrc and torrc_bak to allow all users and
 groups make arm crash with the following stack trace:

 (3 different occasions)

 sudo -u debian-tor arm
 Traceback (most recent call last):
   File "/usr/share/arm/starter.py", line 578, in <module>
     cli.controller.startTorMonitor(time.time() - initTime)
   File "/usr/share/arm/cli/controller.py", line 700, in startTorMonitor
     curses.wrapper(drawTorMonitor, startTime)
   File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
     return func(stdscr, *args, **kwds)
   File "/usr/share/arm/cli/controller.py", line 773, in drawTorMonitor
     cli.menu.menu.showMenu()
   File "/usr/share/arm/cli/menu/menu.py", line 114, in showMenu
     cursor.handleKey(key)
   File "/usr/share/arm/cli/menu/menu.py", line 46, in handleKey
     else: self._isDone = self._selection.select()
   File "/usr/share/arm/cli/menu/item.py", line 62, in select
     self._callback()
   File "/usr/share/arm/cli/wizard.py", line 377, in showWizard
     shutil.copy(torrcLocation, torrcLocation + "_bak")
   File "/usr/lib/python2.7/shutil.py", line 118, in copy
     copymode(src, dst)
   File "/usr/lib/python2.7/shutil.py", line 91, in copymode
     os.chmod(dst, mode)
 OSError: [Errno 1] Operation not permitted: '/home/USER/.arm/torrc_bak'


 --------------------------------------------------------------
 sudo -u debian-tor arm
 Traceback (most recent call last):
   File "/usr/share/arm/starter.py", line 578, in <module>
     cli.controller.startTorMonitor(time.time() - initTime)
   File "/usr/share/arm/cli/controller.py", line 700, in startTorMonitor
     curses.wrapper(drawTorMonitor, startTime)
   File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
     return func(stdscr, *args, **kwds)
   File "/usr/share/arm/cli/controller.py", line 795, in drawTorMonitor
     cli.wizard.showWizard()
   File "/usr/share/arm/cli/wizard.py", line 377, in showWizard
     shutil.copy(torrcLocation, torrcLocation + "_bak")
   File "/usr/lib/python2.7/shutil.py", line 118, in copy
     copymode(src, dst)
   File "/usr/lib/python2.7/shutil.py", line 91, in copymode
     os.chmod(dst, mode)
 OSError: [Errno 1] Operation not permitted: '/home/USER/.arm/torrc_bak'

 -----------------------------------------------------------------
 sudo -u debian-tor arm
 'Traceback (most recent call last):
   File "/usr/share/arm/starter.py", line 578, in <module>
     cli.controller.startTorMonitor(time.time() - initTime)
   File "/usr/share/arm/cli/controller.py", line 700, in startTorMonitor
     curses.wrapper(drawTorMonitor, startTime)
   File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper
     return func(stdscr, *args, **kwds)
   File "/usr/share/arm/cli/controller.py", line 773, in drawTorMonitor
     cli.menu.menu.showMenu()
   File "/usr/share/arm/cli/menu/menu.py", line 114, in showMenu
     cursor.handleKey(key)
   File "/usr/share/arm/cli/menu/menu.py", line 46, in handleKey
     else: self._isDone = self._selection.select()
   File "/usr/share/arm/cli/menu/item.py", line 62, in select
     self._callback()
   File "/usr/share/arm/cli/wizard.py", line 377, in showWizard
     shutil.copy(torrcLocation, torrcLocation + "_bak")
   File "/usr/lib/python2.7/shutil.py", line 118, in copy
     copymode(src, dst)
   File "/usr/lib/python2.7/shutil.py", line 91, in copymode
     os.chmod(dst, mode)
 OSError: [Errno 1] Operation not permitted: '/home/USER/.arm/torrc_bak'
 Exception in thread Thread-1 (most likely raised during interpreter
 shutdown):
 Traceback (most recent call last):
   File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
   File "/usr/share/arm/util/connections.py", line 476, in run
   File "/usr/lib/python2.7/threading.py", line 141, in release
 <type 'exceptions.TypeError'>: 'NoneType' object is not callable


 Running arm with "sudo arm" works perfectly, but obviously its not
 desired.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8509>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs