Hi,

To add my 2 cents, I workarounded this by creating a small helper script for 
provisionning my accounts which does the x2godbadmin --adduser stuff + a few 
other things (provisionning the /etc/skel content, setting right user perms, 
...)

I don't think it is mandatory to expand these features inside the script but 
creating good documentation about those script (and I include scripts such as 
x2golistsession, x2goterminatesession, ...) and good error reporting would be 
great because it's very hard o know what they do unless you tap directly inside 
the code itself (which I did at then end).


Regards,
Walid Moghrabi

TRAVAUX.COM
BAT I - PARC CEZANNE 2 290 AVENUE GALILEE - CS 80403
13591 AIX EN PROVENCE CEDEX 3

----- Mail original ----- 

De: "Nable" <nable.mainin...@googlemail.com> 
À: "Stefan Baur" <x2go-m...@baur-itcs.de> 
Cc: 1...@bugs.x2go.org 
Envoyé: Mercredi 8 Février 2017 02:32:52 
Objet: [X2Go-Dev] Bug#1145: Bug#1145: x2godbadmin + postgres + non-existent 
home directory = wrong ownerships 

> Are you aware of anything that does that and that we could call? 
I think that setup with absent homedir && non-configured pam_mkhomedir 
is broken anyway and one can only fail gracefully with a good error 
message. 
Other variants (homedir already exists and/or pam_mkhomedir is 
configured) can be covered by calling `su' or `sudo' with appropriate 
options (e.g. su -c /bin/true "${user_to_add}"). 
This would fail if homedir (either existing or not) is located on a 
network or encrypted FS (where local root can't do anything without 
knowing user's password) but this is a separate issue. 

I've also seen posts (e.g.[1]) about `oddjob-mkhomedir' (and I've 
already seen it in Debian repos) but I wonder if this way is 
production-ready. And this way seems to be more complex. 

[1] https://access.redhat.com/discussions/903523 
_______________________________________________ 
x2go-dev mailing list 
x2go-dev@lists.x2go.org 
http://lists.x2go.org/listinfo/x2go-dev
---
DISCLAIMER: This e-mail is private and confidential and may contain proprietary 
or legally privileged information. It is for the intended recipient only. If 
you have received this email in error, please notify the author by replying to 
it and then destroy it. If you are not the intended recipient you must not use, 
disclose, distribute, copy, print or rely on this e-mail or any attachment. 
Thank you
_______________________________________________
x2go-dev mailing list
x2go-dev@lists.x2go.org
http://lists.x2go.org/listinfo/x2go-dev

Reply via email to