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
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
тАО04-05-2001 04:25 AM
тАО04-05-2001 04:25 AM
The boards directory has items like
724781
724782
In each of the 724xxx directories are other directories and files. The directories I am interested in are the analog, digital, fixture, and mixed. Let's say I need to modify the analog directory in each of the 724xxx directories. Would the path be /hp3070/boards/*/analog? If the path is correct can u also uses chmod and have,
find /hp3070/boards/*/analog | chmod 775 *
I have been trying to use the find command and now thinking I may need to use the grep command.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2001 04:33 AM
тАО04-05-2001 04:33 AM
Re: Chmod
You must execute:
find /hp3070/boards/*/analog -exec chmod 775 {} \;
Regards,
Manuel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2001 05:04 AM
тАО04-05-2001 05:04 AM
Solutionfind /hp3070/boards -type d -name analog | xargs chmod 755
This will search trough your directory findign all directories (-type d) with the name analog. The resutlign list is piped to chmod with the xargs command.
This will set the permissions to 755 to all directories called analog. If you need to change the permissions for files and directories under this analog directory you have to use chmod -R.
Hope this helps
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2001 05:17 AM
тАО04-05-2001 05:17 AM
Re: Chmod
chmod -R 775 /hp3070/boards/*/analog
this will change every directory, and sub-directories, under analog (included).
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2001 06:20 AM
тАО04-05-2001 06:20 AM
Re: Chmod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2001 07:17 AM
тАО04-05-2001 07:17 AM
Re: Chmod
chmod -R /hp3070/boards/*/analog
If you want to chmos only directorys then you need to use find:
find /hp3070/boards/*/analog -type d | xargs chmod 755
Pedro: I was skiped yuor replay, but as i had wrote mine yet ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2005 02:14 AM
тАО01-05-2005 02:14 AM