- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SUID, SGID & Permission Issue on HPUX 11.31
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
12-12-2009 11:31 PM
12-12-2009 11:31 PM
I have removed SUID on below files.
/usr/sbin/swacl
/usr/sbin/swcopy
/usr/sbin/swinstall
/usr/sbin/swlist
/usr/sbin/swmodify
/usr/sbin/swreg
/usr/sbin/swremove
/usr/sbin/swverify
I have removed SGID on below file
/usr/bin/netstat
I have changed /var/adm/syslog/syslog permission from 644 to 600
As per our CIT policy, i have done this changes on all our servers.
But after sometime, it is changed to old setting automatically and it is happening only for few servers(not all our servers). Thats why i am confusing about this changes.
How to resolve this issue. Kindly help me on this.
Thanks In Advance
Shameem
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2009 11:59 PM
12-12-2009 11:59 PM
SolutionWhy? These already protect themselves from unauthorized users. And if you don't want swlist working for ordinary users, you can configure that too.
>it is changed to old setting automatically
"swmodify -F" will detect you fiddled with the correct permissions and restore them. Was that used?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2009 12:16 AM
12-13-2009 12:16 AM
Re: SUID, SGID & Permission Issue on HPUX 11.31
Thanks for your response.
>>Why? These already protect themselves from unauthorized users. And if you don't want swlist working for ordinary users, you can configure that too.
As per the CIT policy in our organization, this changes needs to be done.
is there any issue will occur due to this changes.
>>"swmodify -F" will detect you fiddled with the correct permissions and restore them. Was that used?
we were not using this command after done this changes.
Still it is changing to old setting.
Kindly help me on this.
Thanks
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2009 03:08 AM
12-13-2009 03:08 AM
Re: SUID, SGID & Permission Issue on HPUX 11.31
Does your policy allow for exceptions based on vendor configurations/recommendations?
>is there any issue will occur due to this changes.
Normal users can't use those commands.
>we were not using this command after done this changes. Still it is changing to old setting.
Then a sysadmin must be changing it manually.
You could use "ll -c /usr/sbin/swlist" to see the time of last inode changes.
Be aware there are 11+ hardlinks to the same sw* program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2009 04:53 AM
12-13-2009 04:53 AM
Re: SUID, SGID & Permission Issue on HPUX 11.31
Thanks for your response.
>>Does your policy allow for exceptions based on vendor configurations/recommendations?
It is possible based on vendor recommendation. We dont want to use this command by normal users.
I found /var/adm/syslog/syslog.log file permission changed from 600 to 644 automatically after reboot the server. is it related with any ACL? How to resolve this issue? &
Could you provide the hardlink details of sw*?
Thanks & Regards
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2009 05:35 AM
12-13-2009 05:35 AM
Re: SUID, SGID & Permission Issue on HPUX 11.31
Then you should leave the permissions alone and look into swacl to prevent users from using the commands.
>I found /var/adm/syslog/syslog.log file permission changed from 600 to 644 automatically after reboot the server. is it related with any ACL? How to resolve this issue?
Since the file is recreated at each reboot, the default permissions apply. I'm not sure if they come from the umask default or some configuration?
>Could you provide the hardlink details of sw*?
ll -i /usr/sbin/sw*
Then look for all files with the same inode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2009 09:52 PM
12-13-2009 09:52 PM
Re: SUID, SGID & Permission Issue on HPUX 11.31
I found that /var/adm/syslog/syslog.log file permission is changed due to UMASK configuration in syslog startup script(/sbin/rc2.d/S546syslog-ng). It is 022.
Is it advisable to change it ot 077 to achive our task?
Thanks & Regards
Shameem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2009 10:29 PM
12-13-2009 10:29 PM
Re: SUID, SGID & Permission Issue on HPUX 11.31
Yes, that seems like the correct minimal change to make it permanent.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2009 10:42 PM
12-14-2009 10:42 PM
Re: SUID, SGID & Permission Issue on HPUX 11.31
Thanks a lot. It is working for syslog.log file.