Jasmin shahrzad
asked on
domain user login to ubuntu
i have an ubuntu 16.04. server is join to samba active directory. i can see all users via wbinfo -u.
User can't login to server. i can see on /var/log/auth :
Failed to mount per-user tmpfs directory
pam_systemd(su:session): Failed to create session: Invalid argument
it's look like users can't create tmpfs directory under /run/user
i can create directory for each user on my /etc/fstab but this is not a solution.
i install libpam-tmpdir (via sudo install ...) but it's not working.
any idea how to solve this issue
User can't login to server. i can see on /var/log/auth :
Failed to mount per-user tmpfs directory
pam_systemd(su:session): Failed to create session: Invalid argument
it's look like users can't create tmpfs directory under /run/user
i can create directory for each user on my /etc/fstab but this is not a solution.
i install libpam-tmpdir (via sudo install ...) but it's not working.
any idea how to solve this issue
ASKER
i add the user in my /etc/passwd. still failed:
Successful su for DOMAIN/user by system_user
mkhomedir_helper: PAM unable to change perms on copy /home/DOMAIN/user/.bash_lo gout: Invalid argument
pam_systemd(su:session): Cannot create session: Already running in a session
it's doman user i do not write the same user for all other ubuntu 16 and not have a entry for domain user in my /etc/passwd. i just add ubuntu to domain then change the smb and nsswitch file and login as domin . it create domain name folder under home and create a folder for user.
in ubuntu 18 it create domain folder under /home and create folder for user. then says :
Successful su for DOMAIN/user by system_user
mkhomedir_helper: PAM unable to change perms on copy /home/DOMAIN/user/.bash_lo gout: Invalid argument
pam_systemd(su:session): Cannot create session: Already running in a session
Successful su for DOMAIN/user by system_user
mkhomedir_helper: PAM unable to change perms on copy /home/DOMAIN/user/.bash_lo
pam_systemd(su:session): Cannot create session: Already running in a session
it's doman user i do not write the same user for all other ubuntu 16 and not have a entry for domain user in my /etc/passwd. i just add ubuntu to domain then change the smb and nsswitch file and login as domin . it create domain name folder under home and create a folder for user.
in ubuntu 18 it create domain folder under /home and create folder for user. then says :
Successful su for DOMAIN/user by system_user
mkhomedir_helper: PAM unable to change perms on copy /home/DOMAIN/user/.bash_lo
pam_systemd(su:session): Cannot create session: Already running in a session
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
you should have folders that correspond with the users UID number in /etc/passwd.
For instance:
Open in new window
The UID for someuser is 1000 so typically there should be a /run/user/1000 folder with the user as owner.
Cheers