Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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)
#
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-04-2009 at 12:25 AM..
Reason: not getting any help. so requesting again.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.