Hello,
I was messing with /etc/login.access to tighten login access to a machine I login to via ssh. This is what I did-
I can login OK over ssh as big_girl, but cannot su to root. Trying to su to root returns-
How can I modify the
EDIT: I should clarify- I do not have physical access to this machine. For security, I do not want to let root log in directly via ssh but rather allow root login only from another user in wheel.
Thanks for any help.
I was messing with /etc/login.access to tighten login access to a machine I login to via ssh. This is what I did-
Code:
+:big_girl:ALL EXCEPT LOCAL
+:root:console
-:ALL:ALL
I can login OK over ssh as big_girl, but cannot su to root. Trying to su to root returns-
Code:
pam_login_access: pam_sm_acct_mgmt: root is not allowed to log in on [FILE]/dev/pts/0[/FILE]
How can I modify the
+:root:console
line so that I can su to root?EDIT: I should clarify- I do not have physical access to this machine. For security, I do not want to let root log in directly via ssh but rather allow root login only from another user in wheel.
Thanks for any help.