Operating System - Linux
1822001 Members
3920 Online
109639 Solutions
New Discussion юеВ

changing default ftp umask in redhat 3.0

 
Edwin Ruiz1
Occasional Contributor

changing default ftp umask in redhat 3.0

Hi:

How can i change the default umask for ftp files in linux? i need to transfer files with umask 777 but i have this permision -rw-r-----

Pls help me!
4 REPLIES 4
Ivan Ferreira
Honored Contributor

Re: changing default ftp umask in redhat 3.0

The ftp command line (client) provides the umask command. The vsftpd.conf file allows you to specify local_umask/anon_umask values.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
skt_skt
Honored Contributor

Re: changing default ftp umask in redhat 3.0

ftp> user kumarts
331 Please specify the password.
Password:
230 Login successful.
ftp> umask
200 Your current UMASK is 022
ftp> umask 133
200 UMASK set to 0133
ftp> umask
200 Your current UMASK is 0133
ftp>


Editing the /etc/vsftpd/vsftpd.conf will effect all the file transfers(all the ftp users)
Edwin Ruiz1
Occasional Contributor

Re: changing default ftp umask in redhat 3.0

Thax for ur answers... i made changes but when i try to start vsftp daemon i get this messages:

vsftpd dead but subsys locked

any idea!
skt_skt
Honored Contributor

Re: changing default ftp umask in redhat 3.0

what command did u try?

did u try "service xinetd restart"?