unable to create the home directory for a AD user from online rstudio server

Hello,
The 2023.06 rstudio server is installed on a bookworm Debian which added in our windows AD.

I copied /etc/pam.d/login to /etc/pam.d/rstudio. If I execute the command "pamtester --verbose rstudio mystudent authenticate acct_mgmt setcred open_session close_session" as root, everything is ok and the mystudent home directory is created.

But if I want to connect to the RStudio web interface with a new AD user, an error appears: "Could not connect to the R session on Rstudio server. Unable to connect to service (1)

rstudio-server status

● rstudio-server.service - RStudio Server
Loaded: loaded (/lib/systemd/system/rstudio-server.service; enabled; preset: enabled)
Active: active (running) since Wed 2023-06-21 14:37:02 CEST; 6min ago
Process: 790 ExecStart=/usr/lib/rstudio-server/bin/rserver (code=exited, status=0/SUCCESS)
Main PID: 803 (rserver)
Tasks: 4 (limit: 9303)
Memory: 58.2M
CPU: 2.597s
CGroup: /system.slice/rstudio-server.service
└─803 /usr/lib/rstudio-server/bin/rserver

Jun 21 14:37:02 mylinux systemd[1]: Starting rstudio-server.service - RStudio Server...
Jun 21 14:37:02 mylinux 1 systemd[1]: Started rstudio-server.service - RStudio Server.
Jun 21 14:38:57 mylinux rserver-pam[1658]: pam_unix(rstudio:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=mystudent
Jun 21 14:38:58 mylinux rserver-pam[1658]: pam_sss(rstudio:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=mystudent
Jun 21 14:39:01 mylinux rsession-mystudent[1689]: ERROR system error 13 (Permission denied) [path: /home2/mydomain/mystudent, target-dir: ]; OCCURRED AT rstudio::core::Error
rstudio::core::FilePath::createDirectory(const string&) const src/cpp/shared_core/FilePath.cpp:846; LOGGED FROM: void rstudio::session::{anonymous}::ensureDefaultDirectory(std:
:string*, const string&) src/cpp/session/SessionOptions.cpp:69
Jun 21 14:39:01 mylinux rsession-s191506[1689]: ERROR system error 13 (Permission denied) [path: /home2/mydomain/mystudent/.local/share/rstudio, target-dir: ]; OCCURRED AT
rstudio::core::Error rstudio::core::FilePath::createDirectory(const string&) const src/cpp/shared_core/FilePath.cpp:846; LOGGED FROM: int main(int, char* const*) src/cpp/sessio
n/SessionMain.cpp:2214
Jun 21 14:39:11 mylinux rserver[803]: ERROR RStudio session start failed for: mystudent: in 10.24s error: rpc error: system error 2 (No such file or directory) [host: mylinux.priv:8787, uri: /rpc/client_init, path: /var/run/rstudio-server/rstudio-rsession/mystudent-d, user-id: 6666666666]; OCCURRED AT void rstudio::core::http::LocalStreamAsyncClient::handleConnect(const rstudio_boost::system::error_code&) src/cpp/server/session/ServerSessionProxy.cpp:124; LOGGED FROM: void rstudio::server::SessionManager::removePendingLaunch(const rstudio::core::r_util::SessionContext&, bool, const string&)src/cpp/server/session/ServerSessionManager.cpp:423

The folder /home2/mydomain has the rights : drwxr-xr-x root root
If I replace them by drwxrwxr-x root rstudio-server then the home direcytory is not created either.

So I don't know what to do.

Can you help me please?

Thank you very much.

Best regards,
TUX

I precise that I installed the "Rstudio server", not the "Rstudio server - posit workbench"?

May be the "RStudio server" is not linked with libpam.so????

This version is not RStudio workbench. So you can't create a home directory from the web interface.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.