- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Setting UMASK value for FTP only user
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
Discussions
Discussions
Forums
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
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-29-2010 04:07 AM
тАО08-29-2010 04:07 AM
Setting UMASK value for FTP only user
I have recently set up an ftp-only account on one of our servers. I'm trying to set the umask to "rw- r-- rw-" i.e 020,but it's not working as expected.
I have done following :
Step 1:
/etc/ftpd/ftpaccess:
********************
upload /home/ftponly/ /home/ftponly/ yes ftponly ftponly 0020 dirs
/etc/inetd.conf:
***************
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
But i am still get permission "rw- r-- ---" when upload file using "ftponly" user.
Can any one help me what i am missing>>
Note: I dont want to set global umask for FTP
Thanks
Minhaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2010 07:49 PM
тАО08-29-2010 07:49 PM
Re: Setting UMASK value for FTP only user
Any help?????
ANy advise ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2010 08:25 PM
тАО08-29-2010 08:25 PM
Re: Setting UMASK value for FTP only user
Check the following threads.
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1283141375937+28353475&threadId=1170075
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1283141974496+28353475&threadId=866257
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1283141998972+28353475&threadId=150204
Regards,
Muru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2010 08:27 PM
тАО08-29-2010 08:27 PM
Re: Setting UMASK value for FTP only user
edit /etc/inetd.conf as below
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -u 020
Chandra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2010 10:12 PM
тАО08-29-2010 10:12 PM
Re: Setting UMASK value for FTP only user
I have followed "Jeff" post which is as below:
Hi Joe,
Yrs, there's a way to do this on an individual user basis.
Using the /etc/ftpd/ftpacces file you can insert a line as follows:
upload /home/username /path/to/upload/dir yes username groupname 0664
Syntax as follows:
1) upload - function
2) user's defined home dir
3) dir where user will be placing files
4) yes - uploads permitted
5) owner of file uploaded (may be diff than user)
6) same as above for group ownership
7) perms automatically placed on file
As you can see it's the last field that gives you this control. Also note that the 3rd field narrows this statement down to ONLY files coming into THAT dir. If user places in other dirs - you'll need mult statements. The second field narrows it down to the user with THAT dir defined as /home/dir
And as stated earlier this is available on 11.0 & above.
HTH,
Jeff
I have followed but still i did not get my required permission (rw- r-- rw-)
/etc/ftpd/ftpaccess:
====================
upload /geo_cdr/network_files /geo_cdr/network_files yes dwhoper etl 0646
/etc/inetd.conf:
================
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
/etc/passwd:
============
nss_user:*:124:109::/geo_cdr/network_files/./:/usr/bin/ftpshell
/etc/group:
==========
ftponly::109:
Thanks
Minhaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2010 10:13 PM
тАО08-29-2010 10:13 PM
Re: Setting UMASK value for FTP only user
/etc/ftpd/ftpaccess:
====================
upload /geo_cdr/network_files /geo_cdr/network_files yes nss_user ftponly 0646
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2010 07:20 PM
тАО08-30-2010 07:20 PM
Re: Setting UMASK value for FTP only user
Any help or any advise??
Thanks
Minhaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-04-2010 10:23 PM
тАО09-04-2010 10:23 PM
Re: Setting UMASK value for FTP only user
Can any one help me to find the resolution how can i set UMASK for particular FTP user??
Thanks
Minhaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2010 08:56 PM
тАО09-14-2010 08:56 PM
Re: Setting UMASK value for FTP only user
Minhaz