Modify

Ticket #4286 (closed defect: worksforme)

Opened 13 months ago

Last modified 12 months ago

When creating user: chown fails

Reported by: afontaine@… Owned by: cperez@…
Milestone: 3.0 Component: users
Severity: normal Keywords:
Cc:

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

Hi,

When I create an user , the user group is not insert in cmd.

Thx.

Error

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

Command output: . 
Exit value: 1

Trace

root command set -e
mkdir -p `dirname /home/aurelien`
cp -dR --preserve=mode /etc/skel /home/aurelien
chown -R aurelien:__USERS__ /home/aurelien
chmod 0700 /home/aurelien failed. 
Error output: chown: invalid user: `aurelien:__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/aurelien`\x{a}cp -dR --preserve=mo...', 'output', 'ARRAY(0x7fa253e2b018)', 'error', 'ARRAY(0x7fa253cf0b88)', 'exitValue', 1, ...) called at /usr/share/perl5/EBox/Sudo.pm line 213
	EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/bwVucb0CbY.cmd 2>...', 'set -e\x{a}mkdir -p `dirname /home/aurelien`\x{a}cp -dR --preserve=mo...', 256, 'ARRAY(0x7fa253e2b018)', 'ARRAY(0x7fa253cf0b88)') called at /usr/share/perl5/EBox/Sudo.pm line 182
	EBox::Sudo::_root(1, 'mkdir -p `dirname /home/aurelien`', 'cp -dR --preserve=mode /etc/skel /home/aurelien', 'chown -R aurelien:__USERS__ /home/aurelien', 'chmod 0700 /home/aurelien') called at /usr/share/perl5/EBox/Sudo.pm line 136
	EBox::Sudo::root('mkdir -p `dirname /home/aurelien`', 'cp -dR --preserve=mode /etc/skel /home/aurelien', 'chown -R aurelien:__USERS__ /home/aurelien', 'chmod 0700 /home/aurelien') called at /usr/share/perl5/EBox/UsersAndGroups.pm line 549
	EBox::UsersAndGroups::initUser('EBox::UsersAndGroups=HASH(0x7fa252052550)', 'EBox::UsersAndGroups::User=HASH(0x7fa252561e80)', 'fun200385') called at /usr/share/perl5/EBox/UsersAndGroups/User.pm line 552
	EBox::UsersAndGroups::User::create('EBox::UsersAndGroups::User', 'HASH(0x7fa253db0b90)', 0) called at /usr/share/perl5/EBox/CGI/UsersAndGroups/AddUser.pm line 77
	EBox::CGI::UsersAndGroups::AddUser::_process('EBox::CGI::UsersAndGroups::AddUser=HASH(0x7fa253e23bf0)') called at /usr/share/perl5/EBox/CGI/Base.pm line 274
	EBox::CGI::Base::run('EBox::CGI::UsersAndGroups::AddUser=HASH(0x7fa253e23bf0)') called at /usr/share/perl5/EBox/CGI/Run.pm line 133
	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(0x7fa253e0f4b8)') 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(0x7fa253d883f8)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
	ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7fa253d883f8)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
	ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7fa253e0f4b8)') called at -e line 0
	eval {...} called at -e line 0

Attachments

zentyal.log Download (85.8 KB) - added by anonymous 13 months ago.
zentyal.log
software.log Download (31.6 KB) - added by anonymous 13 months ago.
software.log

Change History

Changed 13 months ago by anonymous

zentyal.log

Changed 13 months ago by anonymous

software.log

comment:1 Changed 13 months ago by jamor@…

  • Owner changed from jamor@… to cperez@…
  • Component changed from base to users
  • Description modified (diff)
  • Summary changed from Bug report from Zentyal Server to When creating user: chown fails

comment:2 Changed 13 months ago by jamor@…

  • Status changed from new to accepted

comment:3 Changed 12 months ago by jamor@…

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

Cannot reproduce this but we have seen it some time in our automated tests, I haven't seen it after the last massive changes so if we are lucky maybe it has been inadvertently fixed.

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.