Moxa UC-8410A-T-LX [46/86] Edit servername in apache configuration file

Moxa UC-8410A-T-LX [46/86] Edit servername in apache configuration file
UC-8410A Series Linux Software General Debian Package Usage
5-6
Edit ServerName in Apache Configuration File
Edit apache2.conf.
moxa@Moxa:~$ sudo vi /etc/apache2/apache2.conf
Add an entry in the apache2.conf file for the server name of this device.
ServerName xxx
Restart apache2.
moxa@Moxa:~$ sudo /etc/init.d/apache2 restart
NOTE
Click the following links for more information on apache.
https://wiki.debian.org/Apache
http://httpd.apache.org/
SFTP
The default SFTP daemon will start when the system boots up. The login and password used are the same as
the system login and password (moxa/moxa). You can also configure the SFTP account using the following
steps.
1. Create a user & group for SFTP access, without a shell.
moxa@Moxa:~$ sudo adduser sftp
[sudo] password for moxa:
Adding user `sftp' ...
Adding new group `sftp' (1003) ...
Adding new user `sftp' (1001) with group `sftp' ...
Creating home directory `/home/sftp' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for sftp
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]
To block the user account “sftp” from being used for normal Linux logins, and only available for sftp
programs, we need to assign a special shell for the account. In the example shown below, we assign the
shell “/bin/false” to the user account “sftp” and change account’s folder and owner.
moxa@Moxa:~$ sudo usermod -s /bin/false sftp
moxa@Moxa:~$ sudo mkdir /home/sftp/upload/
moxa@Moxa:~$ sudo chown root:root /home/sftp
moxa@Moxa:~$ sudo chown sftp:sftp /home/sftp/upload/
2. Use the following command to append SSHD-related configuration to the file “/etc/ssh/sshd_config”.
Subsystem sftp internal-sftp
#Subsystem sftp /usr/lib/openssh/sftp-server

Содержание

Скачать