[Freedombox-discuss] Radicale User rights

Dietmar ndcdhimdsa at gmx.de
Sun May 1 18:43:20 UTC 2016


Am Sonntag, den 01.05.2016, 14:04 -0400 schrieb James Valleroy:

> On 05/01/2016 10:04 AM, Dietmar wrote:
> > By the way, trying to change the settings of a user in Plinth gives an
> > error 500. I have no problem with that right now, but maybe there is a
> > bug?
> >  
> Please check /var/log/plinth/status.log.
> 
> I tried adding and editing a new user, and also ran into an issue, which
> might be the same error you saw:
> 
> |subprocess.CalledProcessError: Command '['mkhomedir_helper', 'tester2']'
> returned non-zero exit status 8 |

Not sure if my error is the same. Trying to edit an existing user I get
"Bad username" (note, the real user-name was replaced by
"removedusername"):
[2016-05-01 18:37:02,537] plinth.actions INFO     Executing command -
['sudo', '-n', '/usr/share/plinth/actions/ssh', 'get-keys',
'--username', 'removedusername']
[2016-05-01 18:37:03,177] plinth.actions ERROR    Error executing
command - ['sudo', '-n', '/usr/share/plinth/actions/ssh', 'get-keys',
'--username', 'removedusername'], Bad username
, 
[2016-05-01 18:37:03,181] django.request ERROR    Internal Server
Error: /plinth/sys/users/removedusername/edit/
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py",
line 149, in get_response
    response = self.process_exception_by_middleware(e, request)
  File "/usr/lib/python3/dist-packages/django/core/handlers/base.py",
line 147, in get_response
    response = wrapped_callback(request, *callback_args,
**callback_kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py",
line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/base.py",
line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py",
line 275, in get
    return super(BaseUpdateView, self).get(request, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py",
line 213, in get
    return self.render_to_response(self.get_context_data())
  File "/usr/lib/python3/dist-packages/plinth/modules/users/views.py",
line 43, in get_context_data
    context = super(ContextMixin, self).get_context_data(**kwargs)
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py",
line 122, in get_context_data
    kwargs['form'] = self.get_form()
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py",
line 74, in get_form
    return form_class(**self.get_form_kwargs())
  File "/usr/lib/python3/dist-packages/plinth/modules/users/views.py",
line 83, in get_form_kwargs
    kwargs = super(UserUpdate, self).get_form_kwargs()
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py",
line 167, in get_form_kwargs
    kwargs = super(ModelFormMixin, self).get_form_kwargs()
  File "/usr/lib/python3/dist-packages/django/views/generic/edit.py",
line 81, in get_form_kwargs
    'initial': self.get_initial(),
  File "/usr/lib/python3/dist-packages/plinth/modules/users/views.py",
line 92, in get_initial
    'ssh', ['get-keys', '--username', self.object.username]).strip()
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 118, in
superuser_run
    return _run(action, options, input, async, True)
  File "/usr/lib/python3/dist-packages/plinth/actions.py", line 180, in
_run
    raise ActionError(action, output, error)
plinth.errors.ActionError: ('ssh', 'Bad username\n', '')


> 
> 
> I opened an issue for this one:
> https://github.com/freedombox/Plinth/issues/449

I am adding this trace to your issue.

Dietmar

> 
> --
> James
> 
> _______________________________________________
> Freedombox-discuss mailing list
> Freedombox-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/freedombox-discuss/attachments/20160501/13cc7e99/attachment-0001.html>


More information about the Freedombox-discuss mailing list