LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 09-02-2009, 04:03 AM   #1
Ron_09
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
running /usr/bin/groups <super user> returns void


Hi,

I am running /usr/bin/groups root to know all the groups root is present but it is not returning any info as below (running as root):-
# /usr/bin/groups root
#

But when i ran for non root user (not super user) it returns properly.
# /usr/bin/groups nobody
nobody : nobody

I have seen when I don't specify user and run command from root it returns correct info.

# /usr/bin/groups
root bin daemon sys adm disk wheel

While analyzing I saw /usr/bin/groups is a script when we execute
# /usr/bin/groups root
it internally calls "id -Gn -- root" which is crashing on linux 3.0 update 8.

Here is the output in my box:-
# id -Gn -- root
Segmentation fault

It runs fine for non root user as below:-

# id -Gn -- nobody
nobody

On further analyzing I see that if root is member of more than 4 groups
#id -Gn -- root will crash.

So I created another super user named aroot which is present in only 4 groups it does not crash as below:-

# id -Gn -- aroot
root bin daemon sys

When I add aroot to one more group it crashes as in the case of root.
Looks some buffer overflow issue in /usr/bin/id.

Here is my system details:-

# uname -a
Linux ejp5630vm18.india.sun.com 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:30:47 EDT 2006 i686 athlon i386 GNU/Linux
#

# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
#

part of my /etc/group file:-

# cat /etc/group
root:x:0:root,aroot
bin:x:1:root,bin,daemon,aroot
daemon:x:2:root,bin,daemon,aroot
sys:x:3:root,bin,adm,aroot
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root
lp:x:7:daemon,lp
:::::::::
:::::::::

--------------------------------------------

Due to this issue I am not able to install my program on linux AS 3.0.
Need some urgent help.

Regards
Ron

In fact it does not have anything to do with super user. If user is subscribed to more than 4 groups
then /usr/bin/id starts crashing. Any info on it?

Regards
Ron

Any help or opinion on the above. I am stuck for this problem as i can't avoid this part of the code.
it is a third party code. Will appreciate suggestion (if any). I hope there is a solution here.

- Ron

Last edited by Ron_09; 09-03-2009 at 11:25 PM. Reason: not getting any help. so requesting again.
 
Old 09-04-2009, 12:25 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
So which distro is this? I'm guessing from 'linux AS 3.0.' its RHEL AS 3.x, in which case phone them and ask and /or search the RH KB.
It may even be a known bug, try their Bugzilla or just google.

Please add your distro & ver to your profile in future.
Thx
PS if it is RedHat, then

cat /etc/redhat/release

will do the job
 
Old 09-07-2009, 01:28 AM   #3
Ron_09
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Chris,

Yes it is RedHat 3.0. I already put
# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 8)
#

Probably you missed it as posting is bit long.

Any url for their bugzilla?
It looks it is a bug as I saw some other reference while googling.
Not sure how to resolve it.

Regards
Ron
 
Old 09-11-2009, 02:07 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
https://bugzilla.redhat.com/ or phone them if you've got a subscription (ie current license).
RHEL 3.8 is pretty old, they're on 5.4 now.
According to this http://www.redhat.com/security/updates/errata/ you're already in phase 3 support with only 1 yr till no support...

Last edited by chrism01; 09-11-2009 at 02:09 AM.
 
Old 09-15-2009, 07:48 AM   #5
Ron_09
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks Chris.
Your information helped a lot. There is a Redhat bug (200327) that got resolved in coreutils-4.5.3-28.7.
 
  


Reply

Tags
root, void



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to chck remot comnd executin using shells /usr/bin/ssh and /usr/bin/rsh farnaw4u Linux - Software 2 04-06-2009 12:08 AM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
Running super user commands as normal user mickyg Linux - Security 5 10-14-2005 07:25 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM
when running make get: usr/bin/ld: cannot find -lart_lgpl_2 nigma Linux - Software 0 02-12-2004 09:22 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:41 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