su nur für ein user

Rund um die Sicherheit des Systems und die Applikationen
Post Reply
cybersonic
Posts: 30
Joined: 2006-05-03 19:22
 

su nur für ein user

Post 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
User avatar
daemotron
Administrator
Administrator
Posts: 2641
Joined: 2004-01-21 17:44
Contact:
 

Re: su nur für ein user

Post 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)
codc
Posts: 97
Joined: 2004-01-08 02:55
Location: Tübingen
Contact:
 

Re: su nur für ein user

Post 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
cybersonic
Posts: 30
Joined: 2006-05-03 19:22
 

Re: su nur für ein user

Post by cybersonic »

welche files könnte man noch in bedracht ziehen mir fällt da jetzt nur wget ein
Post Reply