Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting the default permissions for FTP

Status
Not open for further replies.

heprox

IS-IT--Management
Dec 16, 2002
178
US
Is there a way for users of a certain group (or maybe by user, or even ALL users), to have a default permissions for every thing they upload? I have a set of users that upload files to an AIX 5.2 server nightly. I want all of these users uploads to be chmod 666 and to have their owner:group changed to something like "chown server:dba filename". I don't want the user to have to execute the changes via FTP for security reason. Could UMASK be used for this? I know I could use a shell script run from root CRON to change all the uploaded files but that seems like the hard way?
 
Hammer,

I read the pages for FTPD, UMASK, and a few others but I'm not seeing the method for accomplishing this. The ideal thing would be to say that anything uploaded into the FTP directory has "this owner" and "this group", irregardless of who actually uploaded it (chown server:dba filename). I realize I could just create a script ran from root cron to change the ownership, but they seems like the hard way?
 
The aix ftp doe not provide the granularity you wanuse FTPpro you can assign groups to have different perms and dirs unique. and log the actions takend during ftp'ing
 
I thought FTP Pro was for Windows? Do they have an AIX version? Does anyone have a link?
 
hi ,

you can create ftp user which is owner ( server group dba)

you can edit /etc/inetd.conf

the line

ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -l
and add -u 000
which should have rw-rw-rw- file perms

so line should read:-

ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd -l -u 000

the refresh inetd

# refresh inetd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top