- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems with permissions on files when using ftp
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
03-26-2003 01:41 PM
03-26-2003 01:41 PM
When I transfer a file using ftp from my c:drive to unix, the file is getting the following permissions rw-r-- ---
the umask for the user that I am transfering to
is 000.
Is there a way to have the file permissions set to 666 when the file is transferred?
Thanks!
Ginny
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 01:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 01:53 PM
03-26-2003 01:53 PM
Re: Problems with permissions on files when using ftp
Yes you can.
You have to use the /etc/ftpd/ftpaccess file to do this.
Here's an example ftpaccess entry:
upload /home/user3 /systools/user3-ftp yes user5 sys 0666
Note how I can also change the default ownership of the file as well.
Also be advised that you have to change the ftp line in /etc/inetd.conf to read like:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -v -a
The key requirement is the -a parameter - tells inetd to use the ftpaccess file for ftp.
Do a man ftpaccess for further details - especially about the need for a class statement in that file.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 01:59 PM
03-26-2003 01:59 PM
Re: Problems with permissions on files when using ftp
You could have multiple entries in the ftpaccess file for mult users & even the same user with mult dirs.
Harder to initially setup, but infinitely more flexible.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 02:04 PM
03-26-2003 02:04 PM
Re: Problems with permissions on files when using ftp
It worked fine!
Rgds,
Ginny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2003 02:11 PM
03-26-2003 02:11 PM
Re: Problems with permissions on files when using ftp
Yes, Jeff's choice is certainly the more restrictive and therefore more secure. The default 'umask' for the 'ftpd' daemon in the absence of any '-u
Regards!
...JRF...