LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-19-2023, 06:57 AM   #1
bomabay123
LQ Newbie
 
Registered: Oct 2020
Posts: 11

Rep: Reputation: Disabled
su:authentication failure


i am using redhat linux 7.9 x86_64
i have created two user oracle and grid.
i have added both the user to wheel group.

when i try to run command from oracle user
[oracle$srv1]$su grid
password-xxxxxxx

su:Authentication failure


[root@srv1~]#getfacl /usr/bin/su
# file: usr/bin/su
# owner: root
# group: root
user::rwx
group::rwx
other::r-x

on other m/c i have checked group permission as below,
on that m/c su grid command work without Authentication issue.
[root@srv2 /]# getfacl usr/bin/su
# file: usr/bin/su
# owner: root
# group: root
# flags: s--
user::rwx
group::r-x
other::r-x

here it show one more field called #flags: s--
i do not get this, how this flags appear here?


can any one known for this error solution?
 
Old 01-19-2023, 07:14 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
probably you used an incorrect password, you should enter the password of root, not the password of the user.
 
Old 01-19-2023, 07:28 AM   #3
bomabay123
LQ Newbie
 
Registered: Oct 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
su:authentication failure

Quote:
Originally Posted by pan64 View Post
probably you used an incorrect password, you should enter the password of root, not the password of the user.
i have given password of root, previously it was working
it is working on other m/c,
there is some extra permission on that m/c when i runt getfacl /usr/bin/su
#flags:s--
might be something related to this
 
Old 01-19-2023, 07:32 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
that is required as far as I know
 
Old 01-19-2023, 07:39 AM   #5
bomabay123
LQ Newbie
 
Registered: Oct 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
su:authentication failure

Quote:
Originally Posted by pan64 View Post
that is required as far as I know
how it appears flags:s--, this is the difference i have
noted on working m/c and not working m/c.
because earlier i have added the user to
wheel group and then it is started working
without any issue.
 
Old 01-19-2023, 08:31 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,646
Blog Entries: 19

Rep: Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480Reputation: 4480
The -s flag makes su run as root even though it's invoked by an ordinary user, which is what it needs to do in order to work. If you don't have this flag set on the affected machine, then su was wrongly installed. I think it's part of the shadow package; you could try reinstalling that.

Or you could try logging on as root and using chmod to set the flag correctly.

Last edited by hazel; 01-19-2023 at 08:39 AM.
 
Old 01-19-2023, 08:44 AM   #7
bomabay123
LQ Newbie
 
Registered: Oct 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
su:authentication failure

Quote:
Originally Posted by hazel View Post
The -s flag makes su run as root even though it's invoked by an ordinary user, which is what it needs to do in order to work. If you don't have this flag set on the affected machine, then su was wrongly installed. I think it's part of the shadow package; you could try reinstalling that.

Or you could try logging on as root and using chmod to set the flag correctly.
please tell me how to run chmod command exactly. ?
 
Old 01-19-2023, 09:25 AM   #8
bomabay123
LQ Newbie
 
Registered: Oct 2020
Posts: 11

Original Poster
Rep: Reputation: Disabled
it has been resolved by running following two command

[root@srv1 /]# chown root:root /usr/bin/sudo
[root@srv1 /]# chmod 4755 /usr/bin/sudo

and

[root@srv1 /]# chown root:root /usr/bin/su
[root@srv1 /]# chmod 4755 /usr/bin/su
 
  


Reply

Tags
bash



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failure after failure after failure.....etc 69Rixter Linux - Laptop and Netbook 5 04-14-2015 09:58 AM
PAM Authentication failure Authentication token no longer valid, allowed in anyway quikster Linux - Server 1 03-12-2015 02:37 AM
is this a disk failure msg - hdc: request senense failure walterj Linux - Hardware 3 03-25-2008 11:01 PM
Telnet : Temporary failure in name resolution : Host name lookup failure koodoo Linux - Newbie 10 02-11-2008 07:59 PM
PostScript failure result in printing failure cawwt Linux - General 2 10-01-2004 01:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration