Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - stfn

Pages: [1]
1
Right after running the above command:

Code: [Select]
beheer@thuis:~$ sudo /usr/share/zentyal-samba/fix-id-map
Updating users mappings...
Updating uidNumber mapping for user 'Administrator' (uidNumber: 50500)
Updating uidNumber mapping for user 'dns-thuis' (uidNumber: 51101)
Updating uidNumber mapping for user 'media' (uidNumber: 51108)
Updating uidNumber mapping for user 'natasja' (uidNumber: 51106)
Updating uidNumber mapping for user 'stfn' (uidNumber: 51105)

Updating groups mappings...
Updating gidNumber mapping for group 'Domain Admins' (gidNumber: 50512)
Updating gidNumber mapping for group 'senn' (gidNumber: 51104)

Done.

Code: [Select]
beheer@thuis:~# ls -ls /home
total 72
 4 drwx------   2 Administrator __USERS__  4096 Aug 16 19:39 Administrator
 8 -rw-------   1 root          root       8192 Nov  4 22:20 aquota.group
12 -rw-------   1 root          root      11264 Nov  4 22:20 aquota.user
 4 drwx------  10 beheer        beheer     4096 Nov  9 11:22 beheer
 4 drwx------   2 dns-thuis     __USERS__  4096 Aug 11 15:45 dns-thuis
16 drwx------   2 root          root      16384 Sep 15 10:53 lost+found
 8 drwxrwx---+ 14 [b]media[/b]         [b]__USERS__[/b]  4096 Nov  9 11:18 media
 8 drwxrwx---+ 13 [b]natasja[/b]       [b]__USERS__[/b]  4096 Oct  4 23:26 natasja
 4 drwxrwx---+  4 root          __USERS__  4096 Aug 11 15:44 samba
 4 drwxrwx---  31 stfn          beheer     4096 Sep  3 20:15 stfn

A few minutes later:

Code: [Select]
beheer@thuis:~$ ls -ls /home
total 72
 4 drwx------   2 Administrator __USERS__  4096 Aug 16 19:39 Administrator
 8 -rw-------   1 root          root       8192 Nov  4 22:20 aquota.group
12 -rw-------   1 root          root      11264 Nov  4 22:20 aquota.user
 4 drwx------  10 beheer        beheer     4096 Nov  9 11:22 beheer
 4 drwx------   2 dns-thuis     __USERS__  4096 Aug 11 15:45 dns-thuis
16 drwx------   2 root          root      16384 Sep 15 10:53 lost+found
 8 drwxrwx---+ 14 [b]root[/b]          [b]root[/b]       4096 Nov  9 11:18 media
 8 drwxrwx---+ 13 [b]root[/b]          [b]root[/b]       4096 Oct  4 23:26 natasja
 4 drwxrwx---+  4 root          __USERS__  4096 Aug 11 15:44 samba
 4 drwxrwx---  31 stfn          beheer     4096 Sep  3 20:15 stfn

Edit: bold tag doesn't seem to work inside code tag.

Although user and group are set to root instead of username and __USERS__ both media and natasja user are able to access their filess with RW-permission.

2
Thanks! I was looking for a way to restart the "file sharing" module with a cronjob cause it is causing high kswapd CPU usage every few days. This info helped me do it.

3
Hi all,

I recently had to umount my /home dir to perform some maintenance on the filesystem. Somewhere in this process Zentyal decided to delete al my users and groups (ldap, mail). User files in /home were not lost because it was not mouned. Files in /var/vmail were deleted. So I recreated the users through Zentyal's Dashboard and put the mail backup back in place. But for some reason Zentyal chown's 2 user home dirs to the wrong uid. This happens at least at every reboot, can't conform for the moment if this is also happening when the server is up for a few days.

Code: [Select]
root@thuis:~# ls -ls /home
total 76
 4 drwx------   2 Administrator __USERS__  4096 Aug 16 19:39 Administrator
 8 -rw-------   1 root          root       8192 Aug 18 11:40 aquota.group
12 -rw-------   1 root          root      11264 Aug 18 11:40 aquota.user
 4 drwxr-xr-x   4 root          root       4096 Aug 18 10:57 backup
 4 drwx------   6 beheer        beheer     4096 Aug 14 17:27 beheer
 4 drwx------   2 dns-thuis     __USERS__  4096 Aug 11 15:45 dns-thuis
16 drwx------   2 root          root      16384 Aug 10 15:41 lost+found
 8 drwxrwx---+ 14       3000008 __USERS__  4096 Aug 17 19:50 media
 8 drwxrwx---+ 13       3000008 __USERS__  4096 Aug 11 20:49 natasja
 4 drwxrwx---+  4 root          __USERS__  4096 Aug 11 15:44 samba
 4 drwx------  31 stfn          __USERS__  4096 Aug 14 17:56 stfn

I think it is the uid from 1 of the users it previously deleted. It is a little bit strange that Zentyal gives 2 different users the same uid?

So 2 issues here:

  • 1. How do I prevent Zentyal from deleting my users when /home is unmounted
  • 2. How do I prevent Zentyal from chowning homedir's with the wrong uid?

Any suggestions?

Edit: Zentyal 3.0

Pages: [1]