- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I must use chmod for all subdirectories and files
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
Discussions
Discussions
Discussions
Forums
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
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
тАО03-25-2007 11:33 PM
тАО03-25-2007 11:33 PM
Now I'm installing a software on HpUx, source CDs has many subsolders in subfolders. I must use chmod to change permission. One by one change takes much long time, I want to use only one time chmod and change all subfolders and files permission to my aimed value(777).
Is there any method to do this.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2007 11:37 PM
тАО03-25-2007 11:37 PM
SolutionChmod -R
From man page;
-R Recursively descends through directory arguments, set-ting the mode for each file as described above. When symbolic links are encountered, the mode of the target
file is changed, but no recursion takes place.
HTH,
Prabu.S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-25-2007 11:49 PM
тАО03-25-2007 11:49 PM
Re: I must use chmod for all subdirectories and files
use chmod -R for the highest directory of this software.
See also 'man chmod' for options like 'a+r' for read permissions for 'all'.
Volkmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 12:02 AM
тАО03-26-2007 12:02 AM
Re: I must use chmod for all subdirectories and files
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 02:35 AM
тАО03-26-2007 02:35 AM
Re: I must use chmod for all subdirectories and files
Second -- Pete is correct. YOU ABSOLUTELY MUST check the permissions you are setting. Setting the permission to 777 for the files means that anyone can do anything to any of the files and directories. Somebody could easily, modify data, corrupt data, create a trojan program that does anything they want, or just delete everything.
777 are VERY BAD permissions to set on anything. You really need to rethink those permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 02:43 AM
тАО03-26-2007 02:43 AM
Re: I must use chmod for all subdirectories and files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 02:46 AM
тАО03-26-2007 02:46 AM
Re: I must use chmod for all subdirectories and files
If these are copies of DVDs, you would be much better off setting 555 or even 550 permissions.
Someone could theoretically substitute a hacked version of a program in one of these directories and the next time you install they could do anything from collect passwords to wipe out your entire system, especially since you generally do installs as root.
I don't care what it is, 777 is VERY BAD permissions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-26-2007 08:26 PM
тАО03-26-2007 08:26 PM
Re: I must use chmod for all subdirectories and files
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2007 07:36 PM
тАО04-02-2007 07:36 PM