09-14-2016 09:19 AM
Two fairly simple Linux issues that I cannot solve in PetaLinux.
1. I wish to configure (or add) an FTP server with a login requirement (for some security) as the BusyBox ftpd server is designed to be anonymous. Is there anything included with the package or are there any recommendations for this?
2. I wish to create a new user with administrator rights that isn't root. Then I will use su when root access needed. At the moment I find that su can only be used in the root login. If I create a user that belongs to the group 'root' this doesn't help.
Also, as a basic level Linux user, I am finding that documentation on PetaLinux is hard to find (rather than the PetaLinux tools). Can anyone suggest any good references for managing a PetaLinux system with regard to users, file handling and security etc?
09-21-2016 09:34 AM
I have made some progress with support from Avnet but I'm still stuck.
The "petalinux-config -c rootfs" tool allows the addition of the Dropbear software. This adds an SSH and an SFTP server that both appear to work successfully. I have turned off the option that starts the FTP server in the inetd.conf file. Now I have a secure SFTP interface.
However my issue is that our client interface only supports FTP and not SSH. So I really need an FTP server to run on PetaLinux. I have looked at proFTPD and BFTPD but both tools are designed to compile on the target and I cannot see that PetaLinux has an on board compiler.
Does anybody know how to cross-compile these packages or get a compiler running on PetaLinux please?
09-26-2016 12:44 PM
I've successfully cross-compiled some packages using the Petalinux tools, though it has been a while. There frequently is an option you can specify if there is a configure file where you say something like:
See if this works for you. I have also found a compiler that works on Petalinux. See my blog;
09-28-2016 04:48 AM
Many thanks for the response, I will give it a try.