- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftpaccess file and upload
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
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
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-02-2005 03:17 AM
тАО06-02-2005 03:17 AM
I have gone through all the posts regarding this subject, but still cannot get ftpaccess to work as I would like it to.
I have an ftp user (SGMftp) who's primary group is the ftponly group. The home directory is /tmp_mnt/reports/fats and the shell is usr/bin/false.
FTP works OK, and :
the files are created with the rw-r----- permission.
I would like this account to ftp the files, but another user to have access to the files, so I created the following line in ftpaccess
upload /tmp_mnt/reports/fats / fmdprod sgmfmd yes 0660
However, the files are still being created as :
-rw-r----- 1 SGMftp ftponly
-rw-r----- 1 SGMftp ftponly
Any help is much appreciated
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 03:38 AM
тАО06-02-2005 03:38 AM
Re: ftpaccess file and upload
usr/bin/false
should be
/usr/bin/false
Add the second user to the ftponly group.
Make sure the permissions on the directory are
chmod g+r
so that other groups can access the directory.
I think this may work better than the ftpaccess solution.
SEP
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
тАО06-02-2005 03:45 AM
тАО06-02-2005 03:45 AM
Re: ftpaccess file and upload
sorry, typing mistake in 1st post - the shell is /usr/bin/false.
The permissions for the directory are already :
drwxrwxrwx 3 SGMftp ftponly 1024 Jun 2 16:15 fats
But when the files are ftp'd, no one else can access them (apart from root) as the permission is rw-r-----.
Because the SGMftp account is ftp only, they cannot use this to telnet on and change the permissions.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 03:50 AM
тАО06-02-2005 03:50 AM
Re: ftpaccess file and upload
your ftpacces config. line looks a little suspicious, especially the space between "/" and fmdprod".
If "fmdprod" is a dir under "/tmp_mnt/reports/fats", then remove the space.
The whole line should look somewhat like this:
upload /tmp_mnt/reports/fats /fmdprod yes
where
It is my experience that every change in ftpaccess requires that restart of the inetd daemon.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 08:16 PM
тАО06-02-2005 08:16 PM
Re: ftpaccess file and upload
I have changed the ftpaccess line to :
upload /tmp_mnt/reports/fats / yes fmd_prod sgmfmd 0660
and restarted inetdbut the files still have the permissions :
-rw-r----- 1 SGMftp ftponly 1068 Jun 3 09:13 aicense.txt
-rw-r----- 1 SGMftp ftponly 80541 Jun 3 09:13 check.txt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:11 PM
тАО06-02-2005 09:11 PM
Re: ftpaccess file and upload
I have similar problem.
I think that you should change group owner on the directory /tmp_mnt/reports/fats from ftponly to sgmfmd and it will solve the problem.
Please send the ftpaccess file and the line for SGMftp in passwd file if you still have any problems. Also which is the version of FTP Server?
Regards,
Borislav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:24 PM
тАО06-02-2005 09:24 PM
Re: ftpaccess file and upload
when you establish the ftp session, do you then see the message: "User xxxx logged in. Access restrictions apply"?
If not, I think the definitions in ftpaccess are ignored.
regards,
John K.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:29 PM
тАО06-02-2005 09:29 PM
Re: ftpaccess file and upload
I do get the "access restrictions apply" message", so I'm happy that ftpaccess is being used.
The user SGMftp can only ftp to the /tmp_mnt/reports/fats directory and cannot telnet onto the machine.
I changed the owner and group of the folder but it hasn't made any difference.
I have attached the ftpaccess file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:41 PM
тАО06-02-2005 09:41 PM
Re: ftpaccess file and upload
Try this entry in passwd
SGMftp:nnnnnnnnnnn:148:101:FTP user,,,:/tmp_mnt/reports/./fats:/usr/bin/false
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:43 PM
тАО06-02-2005 09:43 PM
Re: ftpaccess file and upload
I've meaned try to change home directory entry in passwd file to :
/tmp_mnt/reports/./fats
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2005 09:46 PM
тАО06-02-2005 09:46 PM
Re: ftpaccess file and upload
Thanks you very much for your help.
It is now working OK.
I changed the entry in ftpaccess and the passwd file, and the permissions are now :
-rw-rw---- 1 fmd_prod sgmfmd 1068 Jun 3 10:43 aicense.txt
-rw-rw---- 1 fmd_prod sgmfmd 80541 Jun 3 10:43 check.txt
Thanks again.