Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can i disallow root or other user login #1034

Closed
suzj801 opened this issue Feb 7, 2018 · 4 comments
Closed

Can i disallow root or other user login #1034

suzj801 opened this issue Feb 7, 2018 · 4 comments

Comments

@suzj801
Copy link

suzj801 commented Feb 7, 2018

No description provided.

@evanlinde
Copy link

For root specifically, you can do this with the AllowRootLogin setting in /etc/xrdp/sesman.ini.

You can permit only specified users by adding them to a group (e.g. tsusers) and setting these settings in /etc/xrdp/sesman.ini:

TerminalServerUsers=tsusers
AlwaysGroupCheck=true

All of these settings belong in the [Security] section.

If you want to explicitly deny users instead of explicitly allowing them, you can do this via PAM. On CentOS/Fedora, the file you'll want to edit is /etc/pam.d/xrdp-sesman. This link should give you some idea of what to do:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/security_guide/sec-controlling_root_access#idm140656615618096

@metalefty
Copy link
Member

It is possible as evanlinde says.

@suzj801
Copy link
Author

suzj801 commented Mar 6, 2018

@evanlinde it's useful. thanks
@metalefty

@brijeshjaiswal
Copy link

Awesome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants