- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to change perms for read only on all direc...
Operating System - HP-UX
1748105
Members
4787
Online
108758
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
Discussions
Discussions
Forums
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
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-22-2010 09:19 AM
тАО12-22-2010 09:19 AM
Re: How to change perms for read only on all directories/sub-directories ?
Hi (again) Sammy:
> Instead of using one path, i.e, , I want to use various paths in the script
That's easily accomodated.
# cat ./myfix
#!/bin/sh
MYPATHS=$@
for MYPATH in ${MYPATHS}
do
while [ "${#MYPATH}" -gt 1 ]
do
echo chmod g+rw,o+rw ${MYPATH}
MYPATH=$(dirname ${MYPATH})
done
done
...run with one or more paths as the script's arguments, as for example:
# ./myfix /usr/local/patha/pathb /usr/local/pathc/pathd /usr/local/pathe/pathf
Regards!
...JRF...
> Instead of using one path, i.e, , I want to use various paths in the script
That's easily accomodated.
# cat ./myfix
#!/bin/sh
MYPATHS=$@
for MYPATH in ${MYPATHS}
do
while [ "${#MYPATH}" -gt 1 ]
do
echo chmod g+rw,o+rw ${MYPATH}
MYPATH=$(dirname ${MYPATH})
done
done
...run with one or more paths as the script's arguments, as for example:
# ./myfix /usr/local/patha/pathb /usr/local/pathc/pathd /usr/local/pathe/pathf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2010 10:04 AM
тАО12-22-2010 10:04 AM
Re: How to change perms for read only on all directories/sub-directories ?
Shalom,
The scripts are nice but I would just do this:
chmod -R 755 /app/weblogic10
You can even build this into the startup script, if you are willing to modify it.
Regards,
SEP
The scripts are nice but I would just do this:
chmod -R 755 /app/weblogic10
You can even build this into the startup script, if you are willing to modify it.
Regards,
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
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
тАО12-22-2010 10:17 AM
тАО12-22-2010 10:17 AM
Re: How to change perms for read only on all directories/sub-directories ?
Thanks Steve. That will do it for files as well and I only want perms to change for directories.
good judgement comes from experience and experience comes from bad judgement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2010 10:17 AM
тАО12-22-2010 10:17 AM
Re: How to change perms for read only on all directories/sub-directories ?
Hi:
> SEP: The scripts are nice but I would just do this: chmod -R 755 /app/weblogic10
@ SEP: That doesn't meet Sammy's stated problem if you re-read his opening remarks:
> "I just want the directories (not files) and I only want the subdirectories in the path below."
Regards!
...JRF...
> SEP: The scripts are nice but I would just do this: chmod -R 755 /app/weblogic10
@ SEP: That doesn't meet Sammy's stated problem if you re-read his opening remarks:
> "I just want the directories (not files) and I only want the subdirectories in the path below."
Regards!
...JRF...
- « Previous
-
- 1
- 2
- Next »
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP