Modify

Ticket #3690 (closed defect: duplicate)

Opened 17 months ago

Last modified 17 months ago

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

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

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

Error

root command set -e
mkdir -p `dirname /home/fabiohsouza`
cp -dR --preserve=mode /etc/skel /home/fabiohsouza
chown -R fabiohsouza:__USERS__ /home/fabiohsouza
chmod 0700 /home/fabiohsouza failed. 
Error output: chown: usuário inválido: `fabiohsouza:__USERS__'

Command output: . 
Exit value: 1

Trace

root command set -e
mkdir -p `dirname /home/fabiohsouza`
cp -dR --preserve=mode /etc/skel /home/fabiohsouza
chown -R fabiohsouza:__USERS__ /home/fabiohsouza
chmod 0700 /home/fabiohsouza failed. 
Error output: chown: usuário inválido: `fabiohsouza:__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/fabiohsouza`\x{a}cp -dR --preserve...', 'output', 'ARRAY(0x7ff9eceb79b0)', 'error', 'ARRAY(0x7ff9e4c27820)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 213
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/nIZUn7JMzz.cmd 2>...', 'set -e\x{a}mkdir -p `dirname /home/fabiohsouza`\x{a}cp -dR --preserve...', 256, 'ARRAY(0x7ff9eceb79b0)', 'ARRAY(0x7ff9e4c27820)') called at /usr/share/perl5/EBox/Sudo.pm line 182
	EBox::Sudo::_root(1, 'mkdir -p `dirname /home/fabiohsouza`', 'cp -dR --preserve=mode /etc/skel /home/fabiohsouza', 'chown -R fabiohsouza:__USERS__ /home/fabiohsouza', 'chmod 0700 /home/fabiohsouza') called at /usr/share/perl5/EBox/Sudo.pm line 136
	EBox::Sudo::root('mkdir -p `dirname /home/fabiohsouza`', 'cp -dR --preserve=mode /etc/skel /home/fabiohsouza', 'chown -R fabiohsouza:__USERS__ /home/fabiohsouza', 'chmod 0700 /home/fabiohsouza') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 871
	EBox::UsersAndGroups::initUser('EBox::UsersAndGroups=HASH(0x7ff9ebb73ef8)', 'fabiohsouza', 'fhs0802') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 1077
	EBox::UsersAndGroups::addUser('EBox::UsersAndGroups=HASH(0x7ff9ebb73ef8)', 'HASH(0x7ff9ecf1f1b0)') called at /usr/share/perl5/EBox/CGI/UsersAndGroups/AddUser.pm line 77
	EBox::CGI::UsersAndGroups::AddUser::_process('EBox::CGI::UsersAndGroups::AddUser=HASH(0x7ff9ece9f850)') called at /usr/share/perl5/EBox/CGI/Base.pm line 275
	EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::AddUser=HASH(0x7ff9ece9f850)') 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(0x7ff9ecee9680)') 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(0x7ff9eceed978)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7ff9eceed978)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7ff9ecee9680)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (91.0 KB) - added by anonymous 17 months ago.
zentyal.log
software.log Download (73.9 KB) - added by anonymous 17 months ago.
software.log

Change History

Changed 17 months ago by anonymous

zentyal.log

Changed 17 months ago by anonymous

software.log

comment:1 Changed 17 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

Hello faboiohsouza,

we already knew this bug, you can see it in the ticket #3407 . We have fixed it i nthe repository but for fixing your server you can do the following:

Go to 'Module status' and enable the 'Users and Group' module then save changes. After that try to create users, you should not have problem now.

I suggest you delete the previous created users and create them again to make sure they are properly created this time.

We have

Regards,

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.