- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: howto change egid of root
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:01 AM
06-03-2004 12:01 AM
If i do 'id' after a 'su -', i see the egid=20(users).
This gives me some problems and i just want to get rid of the egid.
Who can help me (hpux 11.11) ?
Regards,
Ceesjan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:07 AM
06-03-2004 12:07 AM
Re: howto change egid of root
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:13 AM
06-03-2004 12:13 AM
Re: howto change egid of root
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:18 AM
06-03-2004 12:18 AM
Re: howto change egid of root
egid is still set to 'users'. Also confirmed by other systems. Maybe some strange bit set on /sbin/sh or su ?
Regards,
Ceesjan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:23 AM
06-03-2004 12:23 AM
Re: howto change egid of root
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:34 AM
06-03-2004 12:34 AM
Re: howto change egid of root
# telnet vpart1
Trying...
Connected to vpart1.paychex.com.
Escape character is '^]'.
Local flow control on
Telnet TERMINAL-SPEED option ON
GenericSysName [HP Release B.11.11] (see /etc/issue)
login: hbrown
Password:
Please wait...checking for disk quotas
$ id
uid=104(hbrown) gid=20(users)
$ grep hbrown /etc/password /etc/group
grep: can't open /etc/password
/etc/group:users::20:hbrown
$ grep hbrown /etc/passwd /etc/group
/etc/passwd:hbrown:PASSWORD:104:20:harry,webster,0574,7582:/home/hbrown:/usr/bin/ksh
/etc/group:users::20:hbrown
$ su -
Password:
(c)Copyright 1983-2000 Hewlett-Packard Co., All Rights Reserved.
WARNING: YOU ARE SUPERUSER !!
# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp)
# grep root /etc/passwd /etc/group
/etc/passwd:root:PASSWORD:0:3::/:/sbin/sh
/etc/group:root::0:root
/etc/group:other::1:root,hpdb
/etc/group:bin::2:root,bin
/etc/group:sys::3:root,uucp
/etc/group:adm::4:root,adm
/etc/group:daemon::5:root,daemon
/etc/group:mail::6:root
/etc/group:lp::7:root,lp
#
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 12:55 AM
06-03-2004 12:55 AM
Re: howto change egid of root
login: hattumc
Password:
>(c)Copyright...
$ id
uid=111(hattumc) gid=20(users) groups=4(adm)
$ su -
$ id
uid=0(root) gid=3(sys) egid=20(users) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp)
$ grep root /etc/group /etc/passwd
grep root /etc/group /etc/passwd
/etc/group:root::0:root
/etc/group:other::1:root,hpdb
/etc/group:bin::2:root,bin
/etc/group:adm::4:adm,root,hattumc,install
/etc/group:daemon::5:root,daemon
/etc/group:mail::6:root
/etc/group:lp::7:root,lp
/etc/passwd:root:*:0:3::/:/sbin/sh
$ #this is what i do not like:
$ perl
No program input from stdin allowed while running setgid.
$ # So i already tried:
$ echo "-g SETRUGID" >>/etc/privgrp
$ setprivgrp -f /etc/privgrp
But setprivgrp, which is normally not used on the system, doesn't help either.
What else is there to check?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 01:05 AM
06-03-2004 01:05 AM
Solution$ /usr/bin/su -
To go to root.
Also try:
$ ll $(whence su)
$ what $(whence su)
Your su binary should be similar to:
# ll /usr/bin/su
-r-sr-xr-x 1 root bin 28672 Oct 4 2002 /usr/bin/su*
# what /usr/bin/su
/usr/bin/su:
$Revision: @(#) all CUP11.11_BL2002_1004_2 PATCH_11.11 PHCO_27781
Fri Oct 4 00:27:58 PDT 2002 $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 01:08 AM
06-03-2004 01:08 AM
Re: howto change egid of root
in both your postings you refer to egid=20 rather than gid=20 is there something I am missing here.
can you cut and paste your output please.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 01:14 AM
06-03-2004 01:14 AM
Re: howto change egid of root
On the system i have:
#ll $(whence su)
-r-sr-xr-x 1 root bin 24576 Nov 14 2000 /usr/bin/su
ontob3:/#what /usr/bin/su
/usr/bin/su:
$Revision: B.11.11_LR
Wed Nov 8 20:03:34 PST 2000
While on another system i have:
ll $(whence su)
-r-sr-xr-x 1 root bin 28672 Oct 4 2002 /usr/bin/su
ontob2:/archive# what /usr/bin/su
/usr/bin/su:
$Revision: @(#) all CUP11.11_BL2002_1004_2 PATCH_11.11 PHCO_27781
Fri Oct 4 00:27:58 PDT 2002 $
So.. i'v replaced su and it runs well.
THANKS,
you've triggered my to rescan all patches.
Kind Regards,
Ceesjan
(case closed)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2004 02:07 AM
06-03-2004 02:07 AM
Re: howto change egid of root
The cause of the problem was different than all of the above:
In the .profile of root, there was a last line 'ksh' appended.
So.. a shell calls directly a shell..
This ksh was /usr/local/bin/ksh
with -r-x--S--- from userX of group users.
The former administrator left the building..
Nice.. isn't it...
Regards,
Ceesjan