1839659 Members
3135 Online
110152 Solutions
New Discussion

using ftpaccess

 
itai weisman
Super Advisor

using ftpaccess

hi ppl
i managed to use ftpaccess file to specified specific umask on upload direcotry using the following line:
upload /DiskBill/shells/MED/ * yes billday users 0666 dirs
(user "billday" home directory that defined our nis enviorment is /DiskBill/shells)
i managed to set the mask of the files created on the user's home directory, and i want now to change the mask of the subdirecotries under this user home directory (in thos example, the directory DiskBill/shells/MED/).
is it possible?
if so, how?
5 REPLIES 5
RAC_1
Honored Contributor

Re: using ftpaccess

Did you put following and try??

upload /DiskBill/shells/MED/ * yes billday users 0666 dirs
There is no substitute to HARDWORK
itai weisman
Super Advisor

Re: using ftpaccess

is.
it doesn't work.
it uses the defualt mask of root (as it do without ftpaccess file)
Devesh Pant_1
Esteemed Contributor

Re: using ftpaccess

RAC_1
Honored Contributor

Re: using ftpaccess

Try puttinh this entry first - upload /DiskBill/shells/MED/ * yes billday users 0666 dirs

and then
upload /DiskBill/shells * yes billday users 0666 dirs
There is no substitute to HARDWORK
Ermin Borovac
Honored Contributor

Re: using ftpaccess

If I understand you correctly you'd like to set permissions on new ftp created directories.

You can use '-u' option to ftpd in /etc/inetd.conf to set new umask (default is 027). This would apply to all ftp directories regardless of location.

Second option is to download WU-FTP 2.6 from www.software.hp.com, which has ability to set directory mode in the upload directive via optional d_mode field (see below).

upload root-dir dirglob yes|no owner group mode dirs|nodirs [d_mode]