HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- FTP - executable file permission
Operating System - HP-UX
1834479
Members
3344
Online
110067
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
10-07-2003 06:23 AM
10-07-2003 06:23 AM
What is the umask setting to allow a file that is FTP'd to be executable?
Currently any file that is FTP'd to my HP UX 11.0 box is 664 (-rw-rw-r--)
Currently any file that is FTP'd to my HP UX 11.0 box is 664 (-rw-rw-r--)
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2003 06:27 AM
10-07-2003 06:27 AM
Solution
Yes:
Write a cron script that periodically checks permissions on the directory and changes them.
There is no way in Unix to have default executable permissions on a file without a second act allowing executable permissions.
The reasoning behind this is that the designers of Unix want a human being to think before granting such priviledges. This is for security reasons.
Having this happen automatically makes it to easy to upload damaging code to a server.
SEP
Write a cron script that periodically checks permissions on the directory and changes them.
There is no way in Unix to have default executable permissions on a file without a second act allowing executable permissions.
The reasoning behind this is that the designers of Unix want a human being to think before granting such priviledges. This is for security reasons.
Having this happen automatically makes it to easy to upload damaging code to a server.
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
10-07-2003 09:04 PM
10-07-2003 09:04 PM
Re: FTP - executable file permission
If you are copying from another unix box, you can use tar or cpio with rcp to copy files, this will retain ownerships and permissions.
In some places, including here, rcp is forbidden, but rexec, which prompts for password, is ok.
Syntax, to copy files under somedir on source box, to destdir on destbox using account destdir, is
--
cd somedir
tar cf - .|rexec destbox -l destid "cd destdir;tar xvf -"
--
You will be asked for the password for destid. If you omit the "-l destid" you will be askd for the password for whatever id you are logged in as on the source box.
-- GRaham
In some places, including here, rcp is forbidden, but rexec, which prompts for password, is ok.
Syntax, to copy files under somedir on source box, to destdir on destbox using account destdir, is
--
cd somedir
tar cf - .|rexec destbox -l destid "cd destdir;tar xvf -"
--
You will be asked for the password for destid. If you omit the "-l destid" you will be askd for the password for whatever id you are logged in as on the source box.
-- GRaham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
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