So I successfully installed Active Directory on Nethserver but I am facing an issue with the admin user. I enabled the admin user, changed the password. I tried to login to the terminal with it, and the home folder was not created for it.
Could not chdir to home directory /var/lib/nethserver/home/admin: Permission denied
-bash: /var/lib/nethserver/home/admin/.bash_profile: Permission denied
-bash-4.2$ cd /home
-bash-4.2$ ls
tessierp (users I created after the AD creation have their home directory)
So by default it seems admin and administrators which I created from installing AD Services wont have home folders created.
Definitely a bug. Should I delete and just add again or will that mess up the AD config?
Also, another bug I found is, when I create a user through the user & groups on the webpage, a home folder is not created in /home/{user} but under /var/lib/nethserver/home. So when I create .ssh folder with authorized_keys or authorized_keys2 under it, it will not work.
Thanks for the response. Yes I realized the shell part and was able to get the home folder created under /var/lib/nethserver/home .
Where do you place the authorized_keys? It is under /var/lib/nethserver/home/{username}/.ssh correct? If that is so, that is what I have done and it doesnât work for me. Here are the permissions I have (default, didnât change anything after the creation of the users :
OK. Well Iâm having other issues now. For some reason I canât login to the cockpit with the newly created users. I had to remove and install the AD from scratch. But every user I create in the cockpit now canât login to the cockpit⊠:-/
Yes that is my feeling as well. It is now removed and I removed the AD As well to fix a few other things and start fresh without reinstalling everything. But now, I noticed that the NIC I used for the green network got bridged with the AD which lives in a VM, all that is normal I know however, what is not normal is that after uninstalling the AD I still have a bridge.
the samba AD container needs a bridge to be created, but a developer assumes that the same bridge could be used for vpn, so we cannot remove something, we simply do not know if the bridge is not a mandatory somewhere
I understand and this is good to know for future reference. I donât have a VPN yet. So is there a way for me to just reset to the original settings enps01 and remove the bridge just to start fresh? If so, what would be the procedure?
So just to touch base on this issue. I rebuilt my AD and enabled the admin user. SSH Certificate is installed under the userâs .shh folder. Just doesnât want to work. I tried the command you suggested, ssh-copy-id and got this :
/usr/bin/ssh-copy-id: ERROR: failed to open ID file â/var/lib/nethserver/home/admin/.pubâ: No such file or directory
(to install the contents of â/var/lib/nethserver/home/admin/.pubâ anyway, look at the -f option)
So Iâm missing a .pub folder. Is that required for .ssh?? Never needed that before.
So let me see if I understand correctly. Right under home, I should add a â.sshâ folder with all the authorized_keys for everyone as opposed to a .ssh in every userâs folder? If that is the case then I donât have that right now.
If I try to login, it doesnât work. It defaults to the password challenge. If I specify no password challenge, it wont let me login. It is like it is not seeing the .ssh. So I wonder if Iâm missing something in my sshd_config. Iâm running with the AD and from what I can see with your output, your user definition is different.