- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Chaning File Permission after FTPing
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
04-25-2002 01:27 AM
04-25-2002 01:27 AM
Chaning File Permission after FTPing
When I FTP a file from DOS to Unix (hpux 11i),
the file permission is -rw-r-----.
HOw should I change the file permissions, when FPTed?
Please ...
Thanks Regards
Syed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 01:34 AM
04-25-2002 01:34 AM
Re: Chaning File Permission after FTPing
you can't.
You can try to shell
!chmod $i
if you use a shell script to ftp for you
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 01:41 AM
04-25-2002 01:41 AM
Re: Chaning File Permission after FTPing
you can use a tool called CuteFtp and define the umask value (file permission)
If using unix you get a option
ftp> umask
will print the current umask value
--Niraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 01:48 AM
04-25-2002 01:48 AM
Re: Chaning File Permission after FTPing
You must configure /etc/inetd.conf.
Read man ftpd first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 01:50 AM
04-25-2002 01:50 AM
Re: Chaning File Permission after FTPing
You can change the default permissions by setting the umask in the ftpd options within your /etc/inetd.conf:
Example
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 077 -t600
The umask of 077 allows only the permissions of eg. 600 (rw-------) for default system permissions of 666.
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 01:53 AM
04-25-2002 01:53 AM
Re: Chaning File Permission after FTPing
I supposed we can dot that, but.. we can't change the file permission while FTP. But we can use umask command before we execute FTP.
Example:
I used umask command:
# umask u=rwx,g=,o=
Then i FTP to another host to get a file whose permission is different with my 'umask'.
Then when the FTP is close, i have the file with the permission similiar to my 'umask'.
Try this..!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2002 02:07 AM
04-25-2002 02:07 AM
Re: Chaning File Permission after FTPing
Dave.