Page 1 of 1
su nur für ein user
Posted: 2007-08-22 13:38
by cybersonic
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
Re: su nur für ein user
Posted: 2007-08-22 13:50
by daemotron
Code: Select all
groupadd wheel
gpasswd -a User-A wheel
chgrp wheel /bin/su
chmod 4750 /bin/su
:google: Aber trotzdem gern geholfen 8)
Re: su nur für ein user
Posted: 2007-08-22 16:14
by codc
/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
Re: su nur für ein user
Posted: 2007-08-22 16:37
by cybersonic
welche files könnte man noch in bedracht ziehen mir fällt da jetzt nur wget ein