without a # preceding it, then your username must be in the "wheel" group. Go to /etc/group, find the line starting with "wheel", and add user username to the end of it. (If there is already another username there, add a comma (,) and then your username).
I dont think the admin who was installing the OS is knowledgeable enough to change this setting.
Btw, the OS is Red Hat.
I think I should describe this issue a bit further:
When prompting for the root password, after I type it the first time, there is no output and nothing happen, the second time, it complains "command not found"
user@server:~% su
Password:
bash: line 1: root_password: command not found
Ack! that's what I get too. Silly su. I still suspect the problem is with PAM somehow. Please post the pam-su configuration file. If there are any lines with "include", post the correspdonding file also.
% cat /etc/pam.d/su
#%PAM-1.0
auth sufficient /lib/security/$ISA/pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth sufficient /lib/security/$ISA/pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
#auth required /lib/security/$ISA/pam_wheel.so use_uid
auth required /lib/security/$ISA/pam_stack.so service=system-auth
account sufficient /lib/security/$ISA/pam_succeed_if.so uid=0 use_uid quiet
account required /lib/security/$ISA/pam_stack.so service=system-auth
password required /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so close must be first session rule
session required /lib/security/$ISA/pam_selinux.so close
session required /lib/security/$ISA/pam_stack.so service=system-auth
# pam_selinux.so open and pam_xauth must be last two session rules
session required /lib/security/$ISA/pam_selinux.so open
session optional /lib/security/$ISA/pam_xauth.so
Are you suggesting me to change root password? I do know root's password, I just wanna su from normal user to root. Btw, Im not in the sudoer file, I can edit that file, though.
Putting yourself in the sudoers file is a better way in general of getting root access, because every command you do with sudo is then logged. Nevertheless, your error message is unusual and I want to help you with that. Please also attach the file "system-auth" from the pam.d directory.
Also, is SELINUX enabled and properly configured? If it's not enabled, don't worry about it.