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.
|