Modify

Ticket #3236 (closed defect: worksforme)

Opened 20 months ago

Last modified 19 months ago

Error creando usuario

Reported by: apujadas@… Owned by: jamor@…
Milestone: 2.2.X Component: base
Severity: normal Keywords:
Cc:

Description (last modified by jacalvo@…) (diff)

Estaba creando un usuario en LDAP i me aparece este error de que no se encuentra el usuario al ejecutar el comando "chown".

Gracias.

Error

root command set -e
mkdir -p `dirname /home/csansa`
cp -dR --preserve=mode /etc/skel /home/csansa
chown -R csansa:__USERS__ /home/csansa
chmod 0700 /home/csansa failed. 
Error output: chown: invalid user: `csansa:__USERS__'

Command output: . 
Exit value: 1

Trace

root command set -e
mkdir -p `dirname /home/csansa`
cp -dR --preserve=mode /etc/skel /home/csansa
chown -R csansa:__USERS__ /home/csansa
chmod 0700 /home/csansa failed. 
Error output: chown: invalid user: `csansa:__USERS__'

Command output: . 
Exit value: 1 at /usr/share/perl5/Error.pm line 182
	Error::throw('EBox::Exceptions::Sudo::Command', 'cmd', 'set -e\x{a}mkdir -p `dirname /home/csansa`\x{a}cp -dR --preserve=mode...', 'output', 'ARRAY(0x7f7daa9d2080)', 'error', 'ARRAY(0x7f7dab2ecf08)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 213
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/hqohxqFLRf.cmd 2>...', 'set -e\x{a}mkdir -p `dirname /home/csansa`\x{a}cp -dR --preserve=mode...', 256, 'ARRAY(0x7f7daa9d2080)', 'ARRAY(0x7f7dab2ecf08)') called at /usr/share/perl5/EBox/Sudo.pm line 182
	EBox::Sudo::_root(1, 'mkdir -p `dirname /home/csansa`', 'cp -dR --preserve=mode /etc/skel /home/csansa', 'chown -R csansa:__USERS__ /home/csansa', 'chmod 0700 /home/csansa') called at /usr/share/perl5/EBox/Sudo.pm line 136
	EBox::Sudo::root('mkdir -p `dirname /home/csansa`', 'cp -dR --preserve=mode /etc/skel /home/csansa', 'chown -R csansa:__USERS__ /home/csansa', 'chmod 0700 /home/csansa') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 857
	EBox::UsersAndGroups::initUser('EBox::UsersAndGroups=HASH(0x7f7daa441ae0)', 'csansa', 'olga01') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1063
	EBox::UsersAndGroups::addUser('EBox::UsersAndGroups=HASH(0x7f7daa441ae0)', 'HASH(0x7f7dab32dc38)') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/AddUser.pm line 77
	EBox::CGI::UsersAndGroups::AddUser::_process('EBox::CGI::UsersAndGroups::AddUser=HASH(0x7f7dab31e198)') called at /usr/share/perl5/EBox/CGI/Base.pm line 275
	EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::AddUser=HASH(0x7f7dab31e198)') called at /usr/share/perl5/EBox/CGI/Run.pm line 129
	EBox::CGI::Run::run('EBox::CGI::Run', 'UsersAndGroups/AddUser', 'EBox') called at /usr/share/zentyal/cgi/ebox.cgi line 34
	ModPerl::ROOT::ModPerl::Registry::usr_share_zentyal_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0x7f7da7fc2940)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
	eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
	ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7f7dab33af30)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f7dab33af30)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f7da7fc2940)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (18.4 KB) - added by anonymous 20 months ago.
zentyal.log

Change History

Changed 20 months ago by anonymous

zentyal.log

comment:1 Changed 20 months ago by jacalvo@…

  • Owner changed from jacalvo@… to jamor@…
  • Summary changed from Bug report from Zentyal Server to Error creando usuario
  • Description modified (diff)
  • Milestone changed from 2.2 to 2.2.X

comment:2 Changed 20 months ago by jamor@…

  • Status changed from new to assigned

Hola, el problema es que el grupo USERS no debe existir. Este grupo se crea bien al activar por primera vez el modulo de usuarios o al restaurar, siempre en modo no-esclavo.

Sabes como has llegado a esta situación?. Tu modulo esta en modo esclavo? Restaurastes un backup?

comment:3 Changed 20 months ago by jamor@…

  • Status changed from assigned to closed
  • Resolution set to worksforme

Ya que he sido incapaz de reproducirlo y no tengo información adicional, paso a cerrar el ticket.

comment:4 Changed 19 months ago by jamor@…

Ver #3407

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.