Forums

Resolved
0 votes
I have a server running ClearOS 7, and I want to do a provisioning server for Polycom VoIP phones. The phones looks for files in FTP root directory, using user name "PlcmSpIp" in port 21.

The first obstacle I found, ClearOS doesn't allow usernames with uppercases. However, I've managed to change user names by editing ldap configuration files. ;)

However, here's my current problem: the phones looks for the files in FTP root directory. But, by using Flexshares, I can only make them accessible via the shares directory, i.e., ftp://myserver/share. Using home directories instead of Flexshare could work, but I can't change it to port 21, since Flexshare is using it.

Is there a way to make files available in FTP root directory via Flexshare OR swap those ports (21 to home directories and 2121 or other to Flexshare)?
Tuesday, December 24 2019, 01:33 PM
Share this post:
Responses (3)
  • Accepted Answer

    Tuesday, December 24 2019, 08:57 PM - #Permalink
    Resolved
    0 votes
    Hello Nick,

    thank you for your reply.

    Yes, I know that editing username is not a very elegant solution, but given my environment, is the best option (so far, at least, as I didn't hit any troubles by doing this). :D

    It is even possible to change the default username to some lowercase word... but the only way to acomplish this is by the phones' webconfig --, which invalidates the idea of a full automatic provisioning server. Using the uppercase username, it's just take the phones out of the box and plug in the network, it'll download the provision files and do the rest.

    Regarding to the FTP ports, I'll try both approaches to see which works best.

    Regards,
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 24 2019, 04:56 PM - #Permalink
    Resolved
    0 votes
    Thinking about it, you could perhaps drop your own file in /etc/proftpd.d so the webconfig will never overwrite it. I don't know if that is possible as it will have to be very selective and careful not to clash with the flexshare files.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, December 24 2019, 04:50 PM - #Permalink
    Resolved
    0 votes
    Be careful of editing usernames. It may have knock on effects as other parts of the system may do a convert to lowercase before validating, but I don't know.

    Re the Flexshare problem, the home ftp port can be changed in /etc/proftpd.conf and the flexshare one in /etc/proftpd.d/flex-21.conf. The problem is that every time you change a flexshare in the webconfig the /etc/proftpd.d/flex-21.conf file will get overwritten. You can get round it by setting the immutable bit on the file but you'll need to remember to unset it every time you change the flexshares.
    The reply is currently minimized Show
Your Reply