Jika Anda menetapkan password root dan diaktifkan selama instalasi,
pengaturan mengkonfigurasi untuk membatasi pengguna yang lain selain root
root@rufaidah:~# usermod -G adm wheezy
root@rufaidah:~# vi /etc/pam.d/su
# line 15: uncomment and add the follows
auth required pam_wheel.so group=adm
Cobalah untuk beralih Kelogin Root
root@rufaidah:~# su - wheezy # switch to a user
wheezy@rufaidah:~$ su - # switch to root
Password:
root@rufaidah:~#
Kemudian kita tambahkan pengguna test user
root@rufaidah:~# adduser testuser
Adding user `testuser' ...
Adding new group `testuser' (1001) ...
Adding new user `testuser' (1001) with group `testuser' ...
Creating home directory `/home/testuser' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for testuser
Enter the new value, or press ENTER for the default
Full Name []: testuser
Room Number []: testuser
Work Phone []:
Home Phone []:
Other []:# input any one(it's Ok with empty)
Is the information correct? [y/N] y
root@rufaidah:~# su - testuser
testuser@rufaidah:~$ su -
Password:
su: Permission denied
testuser@rufaidah:~$
Thursday, 2 April 2015
Pengaturan Hak Aksess Untuk Login Root dan User
Posted By: Rufaidah-network - 19:51About Rufaidah-network
Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment
Subscribe to:
Post Comments (Atom)
Popular
Tags
Videos
0 komentar:
Post a Comment