Hallo
Ich habe mehrere ssh user auf meinem server, ich möchte nun das nur ein user "User-A" sich über "su" root rechte erlangen kann. Wie stelle ich dies zustande?
Os: Debian Edge
su nur für ein user
Re: su nur für ein user
Code: Select all
groupadd wheel
gpasswd -a User-A wheel
chgrp wheel /bin/su
chmod 4750 /bin/suRe: su nur für ein user
/etc/pam.d/su
Code: Select all
# Uncomment this to force users to be a member of group root
# before they can use `su'. You can also add "group=foo"
# to the end of this line if you want to use a group other
# than the default "root" (but this may have side effect of
# denying "root" user, unless she's a member of "foo" or explicitly
# permitted earlier by e.g. "sufficient pam_rootok.so").
# (Replaces the `SU_WHEEL_ONLY' option from login.defs)
auth required pam_wheel.so
-
cybersonic
- Posts: 30
- Joined: 2006-05-03 19:22
Re: su nur für ein user
welche files könnte man noch in bedracht ziehen mir fällt da jetzt nur wget ein
