Project

General

Profile

Evolution #8034

Pas de test sur l'utilisateur qui appelle instance/reconfigure [2.4]

Added by Joël Cuissinat almost 6 years ago. Updated over 5 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
Due date:
06/20/2014
% Done:

100%

Estimated time:
2.00 h
Spent time:
Distribution:
EOLE 2.4

Description

Si j'essaie de lancer reconfigure avec l'utilisateur "eole", j'obtiens :

ERROR:creole.reconfigure:Unable to configure handler u'file': [Errno 13] Permission denied: '/var/log/reconfigure.log'

Si j'essaie avec l'option "-d", rien ne s'affiche :
eole@amon:~$ reconfigure -d
eole@amon:~$ echo $?
1


Related issues

Related to creole - Anomalie #8083: diagnose devrait n'être lançable qu'en root Fermé 06/20/2014
Copied from creole - Evolution #8033: Pas de test sur l'utilisateur qui appelle instance/reconfigure Ne sera pas résolu

Associated revisions

Revision f0c86005 (diff)
Added by Emmanuel GARETTE almost 6 years ago

ihm.py : nouvelle fonction (only_root) pour quitter l'application si elle n'est pas lancé en root (ref #8034 @1h)

Revision 03a1daac (diff)
Added by Emmanuel GARETTE almost 6 years ago

ne pas pouvoir lancer instance/reconfigure/Maj-Auto/Maj-Cd en utilisateur normal (fixes #8034)

Revision ae10dc62 (diff)
Added by Emmanuel GARETTE almost 6 years ago

ne pas pouvoir lancer CreoleCat/CreoleLock/CreoleService/CreoleSet/gen_rpt/creoled en utilisateur normal (ref #8034)

Revision 76257c10 (diff)
Added by Emmanuel GARETTE over 5 years ago

importer convert_value directement dans creole.var_loader (fixes #8034)

History

#1 Updated by Emmanuel GARETTE almost 6 years ago

  • Status changed from A étudier to Résolu
  • % Done changed from 0 to 100

#2 Updated by Joël Cuissinat almost 6 years ago

  • Due date set to 06/20/2014
  • Assigned To set to Emmanuel GARETTE
  • Target version set to Eole 2.4.0.1

#3 Updated by Joël Cuissinat almost 6 years ago

  • Status changed from Résolu to Réouvert
  • % Done changed from 100 to 80

KO pour CreoleSet (plante avant le test) :

eole@amon:~$ CreoleSet
Traceback (most recent call last):
  File "/usr/bin/CreoleSet", line 10, in <module>
    from eolegenconfig.lib import convert_value
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/__init__.py", line 22, in <module>
    from eolegenconfig import views
  File "/usr/lib/python2.7/dist-packages/eolegenconfig/views.py", line 21, in <module>
    init_authentication(app)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/authclient.py", line 146, in init_authentication
    session_interf = gen_file_interface(local_dir, managed_app.name, managed_app)
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/authclient.py", line 70, in gen_file_interface
    session_storage = FileBackedSessionManager('/root/.eoleauth', managed_app.config['SECRET_KEY'], "{0}:".format(session_prefix))
  File "/usr/lib/python2.7/dist-packages/eoleauthlib/cachedsession.py", line 136, in __init__
    os.makedirs(self.path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/root/.eoleauth'

#4 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from Réouvert to Résolu
  • % Done changed from 80 to 100

#5 Updated by Emmanuel GARETTE over 5 years ago

  • Status changed from Résolu to Fermé
root@scribe:~# su - eole -s /bin/bash
-su: HISTCONTROL : variable en lecture seule
-su: HISTSIZE : variable en lecture seule
-su: HISTFILESIZE : variable en lecture seule
eole@scribe:~$ CreoleSet eole_module 2.2
/usr/bin/CreoleSet ne peut être exécuté qu'en root

Also available in: Atom PDF