Home > Oracle To Wheel Group > Add OS User to the Wheel Group.

Add OS User to the Wheel Group.

Step 01: Add user and set the password

[root@Teletalk ~]# adduser tamim
[root@Teletalk ~]# passwd  tamim
Changing password for user tamim.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:

Step 02: Add user Oracle and Tamim user to the wheel Group

visudo is a wheel user group config file User privilege specification

[root@Teletalk ~]# usermod -G wheel oracle
[root@contentserver root]# id oracle
uid=500(oracle) gid=500(oinstall) groups=500(oinstall),10(wheel),501(dba)
[root@Teletalk ~]# usermod -G wheel tamim
[root@Teletalk ~]# id tamim
uid=500(tamim) gid=500(tamim) groups=500(tamim),10(wheel)

Step 03: Uncomment the Wheel group in /etc/pam.d/su

[root@Teletalk ~]# vi /etc/pam.d/su
auth       required     /lib/security/$ISA/pam_wheel.so use_uid

Step 04: Modify the the /etc/ssh/sshd_config file.

Add following Line (AllowUsers  oracle tamim) in the sshd_config file which allow oracle and tamim to login, Also uncomment PermitRootLogin and set PermitRootLogin no rather then yes

[root@Teletalk ~]# vi /etc/ssh/sshd_config
AllowUsers  oracle tamim
PermitRootLogin no

Save the file Ctrl+X then Y then enter

Step 05: Restart the sshd Service

[root@Teletalk ~]# service sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                             [  OK  ]

Now you can’t login as a root user remotely by using ssh client or putty. You have to login as a oracle or tamim the swatch user to root.

  1. February 12, 2013 at 5:57 am

    Ur post, “Add OS User to the Wheel Group. Tamim DBA’s Blog” was indeed definitely worth commenting on! Basically wished to admit u really did a very good work. I appreciate it ,Leola

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: