What I mean to say is that neither CentOS 4 or 5 require you to be in any specific group to "su" BY DEFAULT, sys admins frequently restrict this after installing.
Main Topics
Browse All TopicsI'm using Linux CentOS. I am unable to login in to root (su) when in a terminal. When I go and do any administrative tasks in linux 'windows' environment my root password works fine. For instance, I can change the root password vi a Applications->System Settings->Root Password. After that niether the old password nor the new password work in the terminal. The new root password is accepted for other root tasks that are not done inside the terminal, btw.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Ok lets get the things clear first:
- Do you just login from the console using non-root account ?
- Then you want to run "su -" in a terminal windows but ti refuses to run root shell ?
- But still you can change the password of root while you're logged on non root user ?
Will you please describe your set-up in more detail? Moreover when you are denied root access you must have some information in your /var/log/access
I can login from the console as either root or a non-root user. When I am logged in as root, everything seems to work properly. However, when I am logged in as the non-root user I am unable to get into the root shell. It rejects the root password I used, only moments before, to login as root. It is as described in the fourth post: it displays su:incorrect password. I can indeed perform root actions outside the terminal such as changing the root password or editing users and groups.
To answer your last question, I do not seem to have a /var/log/access file before or after an attempt at logging into the root through the terminal.
What I don't understand is how can you perform root actions in a non-root user's login screen without using su?
- Are you using a text or GUI console ?
- Please check your /var/log relative files : audit.log, messages and secure. You can display last lines with a command like:
tail /var/log/audit.log (or /var/log/messages , /var/log/secure)
Ok let me explain what I understand:
- You get a succesful root login through GUI console
- You get a successfull non-root login through GUI
- When you logged-in as a non-root user and when you execute "su -" through an xterm launched from non-root login you get this "su: incorrect password"
If this is the case your audit.log and access must include some errors twhich is eventually causing your access being denied. Please post them here. If you logas are not important for you you might as well tuncate them before trying su so that you will know what is the latest output from them. To turncate your files please use these commnds:
# cd /var/log
# > access
# > messages
# > audit.log
then post the contents here.
I don't have the files access and audit.log in my /var/log directory. Here is what my message file displays after I make an attempt.
Oct 15 10:09:34 mm149212-pc last message repeated 13 times
Oct 15 10:10:39 mm149212-pc last message repeated 13 times
Oct 15 10:10:40 mm149212-pc su(pam_unix)[23683]: authentication failure; logname=office uid=500 euid=500 tty=pts/1 ruser=office rhost= user=root
Oct 15 10:10:44 mm149212-pc pam_timestamp_check: pam_timestamp: `/var/' permissions are lax
Business Accounts
Answer for Membership
by: arrkerr1024Posted on 2007-10-11 at 08:05:11ID: 20057890
Check your /etc/pam.d/su and see if it requires you to be in the "wheel" group to su, or just try putting yourself in wheel and see if you can then su.
Neither CentOS 4 or 5 require you to be in any specific group to run "su".