Modify

Ticket #3851 (closed defect: worksforme)

Opened 15 months ago

Last modified 14 months ago

add new user to pdc problem

Reported by: moaz.refat@… Owned by: jamor@…
Milestone: 2.2.X Component: users
Severity: normal Keywords: add user problem
Cc:

Description

when i tried to add new user to zentyal from web interface i faced this problem so anyone can advice please ?

root command set -e mkdir -p dirname /home/MRefat cp -dR --preserve=mode /etc/skel /home/MRefat chown -R MRefat:USERS /home/MRefat chmod 0700 /home/MRefat failed. Error output: chown: invalid user: `MRefat:USERS' Command output: . Exit value: 1

Attachments

Change History

comment:1 Changed 15 months ago by jamor@…

  • Status changed from new to accepted
  • Component changed from base to users

Hello Moaz Refat,

it seems that the USERS group is not created. You have clicked in 'Save changes' after enabling the users module?.

Regards,

Javier

comment:2 Changed 15 months ago by jamor@…

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

Hello,

since I have not more feedback I will assume that this is the problem of not having the group 'users' created due to not savign changes after enabling users.

To fix:

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.

Regards,

Javier

comment:3 Changed 15 months ago by moaz.refat@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

dear, no i is not working fine also Javier as i cannt add new users with the same problem , so please if u can help me :)

comment:4 Changed 15 months ago by jamor@…

Hello Moaz,

could you execute the failed commands by hand so we can see the exact problem. For example, for the user MRefat, this would be:

  1. sudo rm -rf /home/MRefat
  2. sudo mkdir -p dirname /home/MRefat
  3. sudo cp -dR --preserve=mode /etc/skel /home/MRefat
  4. sudo chown -R MRefat:USERS /home/MRefat
  5. sudo chmod 0700 /home/MRefa

Be warned that the sequence starts removing all the home directory for the user; this is necessary to assure a clean state. If it suits you better, use another user in this case change Mrefat in the commands for the other user;'s name.

Regards.

Javier

comment:5 Changed 15 months ago by moaz.refat@…

dear javier thanks too much for supporting

, but i did what u said before and i repeated it again , to ensure , i the user already created k and login in linux machines that uses ldap but it is not working with windows that are joined the domain .

thanks in advance i hope u get me more information to solve the problem

comment:6 Changed 15 months ago by jamor@…

Hello Moz REfat,

Forgive me, I think that before I haven't be able to explain myself.

The commands I listed will not fix the problem. They are to be executed to help diagnose the problem. So if you execute them, please past here their output. Maybe it would be useful to find the errors behind the user creation failure.

Regards,

Javier

comment:7 Changed 15 months ago by jamor@…

  • Status changed from reopened to accepted

comment:8 Changed 15 months ago by jamor@…

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

Sorry, I cannot reproduce/fix on my own.

Please, reopen if you can give us the requested feedback or other that give us light on the problem

comment:9 Changed 14 months ago by moaz.refat@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

please help me as the command that you listed work fine and everything seems without problems but when i'm trying to add new user from the web interface it gives me the upper error , please help me to solve the problem .

comment:10 Changed 14 months ago by jamor@…

Hello Moaz Refat,

i continue to be unable to reproduce it on my own. It would be possible to send me a configuration report to try to shed some light into this?.

You can made it in its section under 'Maintenance -> Import/Export? configuration', when you have it send it to jamor AT zentyal.com

Many thanks

comment:11 Changed 14 months ago by jamor@…

  • Status changed from reopened to accepted

comment:12 Changed 14 months ago by jamor@…

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

Sorry I cannot do this alone. If you can give me the information requested or another useful information, please reopen.

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.