02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.5 root <br />

1.5.3 su <br />

su root root <br />

PAMPluggable Authentication Modulessu <br />

<br />

wheel su root <br />

<br />

PAM /etc/pam.d/su vi 2 <br />

<br />

wheel su <br />

<br />

wheel su <br />

<br />

# vi /etc/pam.d/su<br />

#%PAM-1.0<br />

auth sufficient pam_rootok.so<br />

# Uncomment the following line to implicitly trust users in the "wheel" grou<br />

p.<br />

auth sufficient pam_wheel.so trust use_uid #<br />

# Uncomment the following line to require a user to be in the "wheel" group.<br />

auth required pam_wheel.so use_uid #<br />

auth include system-auth<br />

account sufficient pam_succeed_if.so uid = 0 use_uid quiet<br />

account include system-auth<br />

password include system-auth<br />

session include system-auth<br />

session optional pam_xauth.so<br />

<br />

suzuki su root <br />

root <br />

$ id suzuki<br />

uid=501(suzuki) gid=501(suzuki) =501(suzuki),5000(eigyou)<br />

www.lpi.or.jp 38 (C) LPI-Japan

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!