ONTAP Discussions

FTP default HomeDir except several users

lagenevoise
3,114 Views

Dear NetApp Community members,

I have a request from business:

I have to kinds of users:

  • Generic users (Not Anonymous)
  • Named users

In the same vFiler it's mandatory:

  • the generics users should have access to a default FTP dir
  • the named users must have access to a specific FTP HomeDir

My question, it's possible and how configure that?

regards

3 REPLIES 3

warrenb
3,114 Views

Hi Christophe,

This will probably depend on your particular environment.

If you have Windows users then you can use the CIFS home dir functionality to set the FTP home directory. If a user logs in and ONTAP cannot find a home directory then the login is denied. If, however, you set ftpd.dir.override to a valid path and ftpd.dir.restriction is set to off then users without a home directory will have it set to the override path.

You can then simply create folders in the path specified in the /etc/cifs_homedir.cfg file for named users and everyone else, your generic users, will get directed to the override path. Obviously if you are already using the CIFS home dir functionality then this may conflict.

If you have local users then you would set this in the /etc/passwd file.

I hope this helps.

Regards,

Warren


warrenb
3,114 Views

Hi Christophe,

Apologies, but I've been playing with this in the lab and the behaviour isn't as I described.

If you have Windows users then they must have a specific home folder.

Regards,

Warren

lagenevoise
3,114 Views

Thanks...

I will try few things and come back to you

Public