- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ftpaccess upload applies on files but not director...
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
тАО08-26-2003 11:45 AM
тАО08-26-2003 11:45 AM
ftpaccess upload applies on files but not directories
I'm trying to configure restricted ftp on a HP-UX 11.0 server.
When I upload files, the permissions and ownerships works accordingly with the "upload" entry in my ftpaccess file. If i change the permissions in that file, the next ftp session picks up the changes. So, file-wise everything is ok.
But I'm not able to control the permissions or ownerships on creation of directories. Newly created directories are allways owned by user ext_usr and group ext_gr. And the permissions is allways drwxr-x---, no matter what i put in ftpaccess.
Some config info:
root@srv1:[~] grep ext_usr /etc/passwd
ext_usr:*:123:234::/home/ext_usr/./pub/:/usr/bin/false
root@srv1:[~] grep :234: /etc/group
ext_gr::234:LLadm
root@srv1:[~] grep ftponly /etc/group
ftponly::109:ext_usr
root@srv1:[~] grep '^ftp' /etc/inetd.conf
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a /etc/ftpd/ftpaccess
root@srv1:[~] cat /etc/ftpd/ftpaccess
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *
log transfers anonymous,real,guest
log commands real,guest
delete no anonymous,guest
overwrite no anonymous,guest
rename no anonymous,guest
chmod no anonymous,guest
umask no anonymous,guest
upload /home/ext_usr /pub yes ext_usr ext_gr 0660
upload /home/ext_usr /pub/* yes ext_usr ext_gr 0660
upload /home/ext_usr /pub/*/* yes ext_usr ext_gr 0660
path-filter guest /etc/pathmsg ^[-A-Za-z0-9_\.]*$ ^\. ^-
class gjester guest ftponly
guestgroup ftponly
root@srv1:[~]
Any help would be greatly appreciated.
-Bard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2003 12:14 PM
тАО08-26-2003 12:14 PM
Re: ftpaccess upload applies on files but not directories
Have you tried inserting the dirs argument at the end of the upload line? Example...
upload /home/ext_usr /pub yes ext_usr ext_gr 0660 dirs
Not sure if that will change the perms, but nodirs will disallow the mkdir command & I guess it's possible that explicitly stating the arg may change the default dir umask - but I've not tested this.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-26-2003 12:24 PM
тАО08-26-2003 12:24 PM
Re: ftpaccess upload applies on files but not directories
See:
http://www.wuftpd.org/man/ftpaccess.html
For owner, use normal sticky bit settings on the directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2003 12:24 AM
тАО08-27-2003 12:24 AM
Re: ftpaccess upload applies on files but not directories
Yes I tried that, but with no luck.
Chris, the d_mode you refer to is not in the manual on my server. There seem to be a difference in the versions of ftpaccess on HP-UX 11.0 and the one in http://www.wuftpd.org/man/ftpaccess.html.
-Bard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-27-2003 04:04 AM
тАО08-27-2003 04:04 AM
Re: ftpaccess upload applies on files but not directories
$what /usr/lbin/ftpd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 02:06 AM
тАО08-28-2003 02:06 AM
Re: ftpaccess upload applies on files but not directories
/usr/lbin/ftpd:
$Id: ftpd.c,v 1.22 1996/04/15 05:51:04 sob Exp sob $ based on ftpd.c 5.40 (Berkeley) 7/2/91
Copyright (c) 1985, 1988, 1990 Regents of the University of California.
$Id: ftpcmd.y,v 1.8 1996/03/15 06:26:20 sob Exp $ based on ftpcmd.y 5.24 (Berkeley) 2/25/91
Revision 1.1.214.8 Fri Apr 20 07:27:42 GMT 2001
$Id: glob.c,v 1.6 1996/03/16 04:00:06 sob Exp $ from glob.c 5.9 (Berkeley) 2/25/91
popen.c 5.9 (Berkeley) 2/25/91
$Id: logwtmp.c,v 1.7 1995/10/15 06:35:17 sob Exp $
logwtmp.c 5.7 (Berkeley) 2/25/91
$Id: access.c,v 1.8 1996/03/15 07:29:08 sob Exp $
$Id: extensions.c,v 1.16 1996/03/15 06:26:20 sob Exp $
$Id: realpath.c,v 1.7 1996/03/15 08:15:56 sob Exp $
$Id: private.c,v 1.6 1995/12/11 09:20:19 sob Exp $
root@dht-dwk:[/]
-Bard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 02:08 AM
тАО08-28-2003 02:08 AM
Re: ftpaccess upload applies on files but not directories
-Bard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2003 11:45 AM
тАО08-28-2003 11:45 AM
Re: ftpaccess upload applies on files but not directories
Install this:
http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=WUFTPD26
You might need to follow with patches if security is a concern.
The aforementioned commands will work once you're done.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2003 06:40 AM
тАО08-29-2003 06:40 AM
Re: ftpaccess upload applies on files but not directories
-Bard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2003 06:49 AM
тАО09-24-2003 06:49 AM
Re: ftpaccess upload applies on files but not directories
But the new version ignores my upload directives completely.
-Bard