- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- umask for 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
06-24-2003 11:06 PM
06-24-2003 11:06 PM
I have ftp enable for users to ftp files to a fix directory (not using anonymous ftp). But I need to fix the file permission to be rwxr--r-- only. How do i ensure this is so for all files that are ftp into this directory??
I kept getting different permission set on the files being put in the directory.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 11:14 PM
06-24-2003 11:14 PM
Re: umask for ftp
what is the value of that?
#umask 022
for the setting the txt files will have
666
(-)022
----------
644 ie. rw-r--r--
FOr dir and exe's
777
(-)022
----------
755 i.e rwxr-xr-x
-----------
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 11:15 PM
06-24-2003 11:15 PM
Re: umask for ftp
If you look at man ftpd the default umask is 027. You can change this with the -u option.
Cheers
Con
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2003 11:16 PM
06-24-2003 11:16 PM
SolutionUse these steps to set the umask for all FTP login:
a. Modify /etc/inetd.conf and change the line:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l
to read:
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u044
b. Have the inted daemon reread the configuration file
by issuing this command:
inetd -c
This will restart the inetd process.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 10:45 PM
06-25-2003 10:45 PM
Re: umask for ftp
this could be done with a line in /etc/ftpd/ftpaccess, i.e.:
upload /transfer/input * yes user group 0744
So you can configure different permissions; the -u-option of the ftpd concerns all users.
Regards
Adam