Author Topic: possible bug: Deleted users' home directory remains, and looks strange  (Read 2155 times)

ATT1

  • Zen Warrior
  • ***
  • Posts: 120
  • Karma: +0/-0
    • View Profile
Hello.
I was trying to reproduce bugtracker's issue #4811 (which is, "suddenly cannot add users anymore, useradd fails!") by using a Zentyal server running in a Virtualbox.
I could not reproduce the bug, but I found another hint: I added several users, and then I deleted one user (in this case, "user10").
The home directory of "user 10" remains, and it looks like this:

drwxr-xr-x  15 att                att          4096 Mär 13 23:10 att
drwx------   2 office-assholesign domain users 4096 Mär 11 19:26 office-assholesign
drwx------   2 office-cyprus      domain users 4096 Mär 11 19:27 office-cyprus
drwx------   2 office-cyprus2     domain users 4096 Mär 12 20:58 office-cyprus2
drwxrwx---+  4 root               domain users 4096 Mär 11 18:45 samba
drwx------   2 user1              domain users 4096 Mär 11 19:21 user1
drwx------   2               2513 domain users 4096 Mär 12 20:19 user10
drwx------   2 user10-test2       domain users 4096 Mär 13 23:12 user10-test2
drwx------   2 user11             domain users 4096 Mär 12 20:55 user11
drwx------   2 user12             domain users 4096 Mär 12 20:56 user12
drwx------   2 user13             domain users 4096 Mär 12 20:57 user13
drwx------   2 user13             domain users 4096 Mär 12 20:56 user13-13
drwx------   2 user14             domain users 4096 Mär 12 20:59 user14
drwx------   2 user14-cyprus      domain users 4096 Mär 12 20:57 user14-cyprus
drwx------   2 user2              domain users 4096 Mär 12 20:16 user2
drwx------   2 user3              domain users 4096 Mär 12 20:16 user3
drwx------   2 user4              domain users 4096 Mär 12 20:17 user4
drwx------   2 user5              domain users 4096 Mär 12 20:17 user5
drwx------   2 user6              domain users 4096 Mär 12 20:17 user6
drwx------   2 user7              domain users 4096 Mär 12 20:18 user7
drwx------   2 user8              domain users 4096 Mär 12 20:18 user8
drwx------   2 user9              domain users 4096 Mär 12 20:18 user9
root@virtualzentyal:/home#

You notice this strange "user10" ?  -> drwx------   2               2513 domain users 4096 Mär 12 20:19 user10

It is still there, in the home directory, despite I deleted the user.
Where is the /etc/passwd and /etc/shadow credentials of each user stored? I cannot find it in these files....... ?
I thought if I delete a user, the home directory ought to be deleted too, and the /etc/passwd and /etc/shadow "entries" - whereever in Zentyal they really are now - also ought not to carry around the deleted user?
Any hints appreciated...


ATT1

  • Zen Warrior
  • ***
  • Posts: 120
  • Karma: +0/-0
    • View Profile
I better attach a screen shot so you immidately know what I mean:




BerT666

  • Zen Warrior
  • ***
  • Posts: 228
  • Karma: +17/-0
    • View Profile
Howdy,

the User Accounts are stored in the "AD", not in the (normal Linux) /etc/shadow, ...
So you do not have to edit any files manually.

I think, Zentyal does not delete the Users Home Folder (BTW: as far as I know, Win does not eigher), when deleting a User.
In most cases, there is data to move to other users / a group share...

Kind regards

Thomas