FTP and umask : how to change the umask of a FTP account for a given user

Hello !

I would like to change the umask for a given FTP account WITHOUT changing default umask of ftpd for the other accounts.

I know that i can give some commands in the FTP session (changing umask when connected), but i CANNOT do that because the application wich connects to the ftp server cannot evolve.

So i MUST do that in an administering way, changing a conf file ...

Thanks !
LVL 1
cobol60Asked:
Who is Participating?
 
giltjrCommented:
I've been looking more and there does not seem to be a away to do it by user.  At least not that I have found yet.
0
 
giltjrCommented:
What ftp server software are you using?
0
 
cobol60Author Commented:
Solaris 8 & 10 ftpd
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
giltjrCommented:
It looks like Solaris uses wu-ftpd by default.  If that is true you should be able to setup the user in a specific class and then using defumask, setup a unqiue umask for that class:

     class special "userid"
     defumask 0177 special

Not 100% sure about this, I don't have a wu-ftpd setup I can test with right now.
0
 
giltjrCommented:
O.K, don't think that will work.  After reading more the class statement seems to require specifing a IP address or IP subnet.

You may want to read:

http://man.cx/ftpaccess%285%29/ko
0
 
cobol60Author Commented:
I read this document and effectively, it seems there is a way to define a umask for a given class. But classes are defined with net addresses.

0
 
cobol60Author Commented:
It's strange that a such feature seems not to exist while a umask by an ip address seems to be functional ... I post if a found any solution. Thank's giltjr for your help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.