- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- getting execute permission at file creation time
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
08-31-2001 03:31 AM
08-31-2001 03:31 AM
getting execute permission at file creation time
The background is that I'm installing Oracle software and it says to set the umask of the installing user to 022 before you start "... to ensure group and other have read and execute permissions, but not write permission, on the files the Installer creates. ..." Of course this doen't work and part way through, the installation fails because a script it's just created doesn't have execute permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 03:45 AM
08-31-2001 03:45 AM
Re: getting execute permission at file creation time
there is no way in creating executable files at once.
Umask 000 will create rw-rw-rw files and rwxrwxrwx directories. Execute permission always has to be given explicitely, the system can't know you're creating an executable file; most files on a system are datafiles.
regards,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 03:49 AM
08-31-2001 03:49 AM
Re: getting execute permission at file creation time
It seems he's right. There was no way I could make an executable file from creation. I tried all the numbers but to no avail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 04:10 AM
08-31-2001 04:10 AM
Re: getting execute permission at file creation time
After a failed install try making this script that fails r-xr-xr-x (555) and then re run the install.
It might error out on creating this script but it may not and therefore the script will already have execute permission.
If this works you may have to do the same on proceeding scripts but the install should then work.
Just an idea.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 04:13 AM
08-31-2001 04:13 AM
Re: getting execute permission at file creation time
Unfortunately, this isn't possible.
Have a look at Bill Hassell's comments (from a historical perspective) in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x25f9a12d6d27d5118fef0090279cd0f9,00.html
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 05:33 AM
08-31-2001 05:33 AM
Re: getting execute permission at file creation time
The only way this is possible is by creating/touching the file and then changing the permissions using chmod.
-Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2001 06:00 AM
08-31-2001 06:00 AM
Re: getting execute permission at file creation time
If I you simaultaneously to create the file and give the 755 permission then use as
$ vi file1 && chmod 755 file1
With this you can input the file and once you save the file will get 755 permisssion.
Thanks
Zafar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2001 12:19 AM
09-03-2001 12:19 AM