Modify

Ticket #3526 (closed defect: duplicate)

Opened 18 months ago

Last modified 18 months ago

When creating user: chown fails because group '_USERS_' does not exist

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

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

Crear usuario para client ubuntu LDAP

Error

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

Command output: . 
Exit value: 1

Trace

root command set -e
mkdir -p `dirname /home/sox2`
cp -dR --preserve=mode /etc/skel /home/sox2
chown -R sox2:__USERS__ /home/sox2
chmod 0700 /home/sox2 failed. 
Error output: chown: invalid user: `sox2:__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/sox2`\x{a}cp -dR --preserve=mode /...', 'output', 'ARRAY(0x2471ff40)', 'error', 'ARRAY(0x219331f0)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 213
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/pdCfRYgGHs.cmd 2>...', 'set -e\x{a}mkdir -p `dirname /home/sox2`\x{a}cp -dR --preserve=mode /...', 256, 'ARRAY(0x2471ff40)', 'ARRAY(0x219331f0)') called at /usr/share/perl5/EBox/Sudo.pm line 182
	EBox::Sudo::_root(1, 'mkdir -p `dirname /home/sox2`', 'cp -dR --preserve=mode /etc/skel /home/sox2', 'chown -R sox2:__USERS__ /home/sox2', 'chmod 0700 /home/sox2') called at /usr/share/perl5/EBox/Sudo.pm line 136
	EBox::Sudo::root('mkdir -p `dirname /home/sox2`', 'cp -dR --preserve=mode /etc/skel /home/sox2', 'chown -R sox2:__USERS__ /home/sox2', 'chmod 0700 /home/sox2') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 865
	EBox::UsersAndGroups::initUser('EBox::UsersAndGroups=HASH(0x23c19d58)', 'sox2', 'sox2') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1071
	EBox::UsersAndGroups::addUser('EBox::UsersAndGroups=HASH(0x23c19d58)', 'HASH(0x2471e768)') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/AddUser.pm line 77
	EBox::CGI::UsersAndGroups::AddUser::_process('EBox::CGI::UsersAndGroups::AddUser=HASH(0x24647b80)') called at /usr/share/perl5/EBox/CGI/Base.pm line 275
	EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::AddUser=HASH(0x24647b80)') 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(0x24766850)') 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(0x24766e60)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x24766e60)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x24766850)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (78.0 KB) - added by anonymous 18 months ago.
zentyal.log

Change History

Changed 18 months ago by anonymous

zentyal.log

comment:1 Changed 18 months ago by jamor@…

  • Status changed from new to closed
  • Resolution set to duplicate
  • Description modified (diff)
  • Summary changed from Bug report from Zentyal Server to When creating user: chown fails because group '_USERS_' does not exist

Hola Frosell,

este problema se ha tratado en #3407 asi que te remito a este ticket. Normalmente se debe a no haber guardado los cambios después de activar el modulo de usuarios.

Saludos, Javier

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.