HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- A script wanted
Operating System - HP-UX
1832252
Members
3039
Online
110041
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-13-2004 12:43 PM
12-13-2004 12:43 PM
I have many many files in my system as below , I want to change the file permission of these files , if the owner group is not "sys" ( eg. ACC ,EDP ,ITT ) , then change the file permission to 777 , could suggest the script that can make it ? thx
-rw-r--r-- 1 root ACC 103 May 29 2003 aaaa18964
-rw-r--r-- 1 root EDP 28 Dec 9 2003 baaa10999
-rw-r--r-- 1 root ITT 28 May 29 2003 baaa18964
-rw-r--r-- 1 root sys 28 Dec 9 2003 caaa10999
-rw-r--r-- 1 root sys 28 May 29 2003 caaa18964
-rw-r--r-- 1 root ACC 103 May 29 2003 aaaa18964
-rw-r--r-- 1 root EDP 28 Dec 9 2003 baaa10999
-rw-r--r-- 1 root ITT 28 May 29 2003 baaa18964
-rw-r--r-- 1 root sys 28 Dec 9 2003 caaa10999
-rw-r--r-- 1 root sys 28 May 29 2003 caaa18964
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 12:59 PM
12-13-2004 12:59 PM
Solution
First of all, generally speaking, 777 is not a wise choice but if that's what you want:
find . ! -group sys -type f -exec chmod 777 {} \;
You should replace the -exec chmod 777 {} \; with a safe command (-exec ls -l {} \;) until you get the filters exactly like you want them. Man find for details.
You are opening up huge security holes with 777 and no executables should not have the executable bit set in any event.
find . ! -group sys -type f -exec chmod 777 {} \;
You should replace the -exec chmod 777 {} \; with a safe command (-exec ls -l {} \;) until you get the filters exactly like you want them. Man find for details.
You are opening up huge security holes with 777 and no executables should not have the executable bit set in any event.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2004 01:01 PM
12-13-2004 01:01 PM
Re: A script wanted
Oops, that last sentence should read:
You are opening up huge security holes with 777 and non-executable files should not have the executable bit set in any event.
You are opening up huge security holes with 777 and non-executable files should not have the executable bit set in any event.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP