Difference between revisions of "Linux Notes"

From OpenEMR Project Wiki
Line 37: Line 37:
==FTP Servers==
==FTP Servers==
====vsftp====
====vsftp====
:Config File:  <tt style="font-size: 130%">/etc/vsftpd.conf</tt>
:Config File:  &nbsp;&nbsp;<tt style="font-size: 130%">/etc/vsftpd.conf</tt>
:After Config Changes:   <tt style="font-size: 130%">sudo etc/init.d/vsftpd restart</tt>
:After Config Changes: &nbsp;&nbsp;  <tt style="font-size: 130%">sudo etc/init.d/vsftpd restart</tt>
:File with a list of users that a NOT allowed FTP access:   <tt style="font-size: 130%">/etc/ftpusers</tt>
:File with a list of users that are NOT allowed FTP access: &nbsp;&nbsp;  <tt style="font-size: 130%">/etc/ftpusers</tt>
<br>
<br>
:'''Configuration File Settings'''
:'''Configuration File Settings'''

Revision as of 14:15, 26 May 2014

General




Text Editors - Command Line

vim
nano
  • Derived from pico, more features than pico, easier to use than vim.
  • Control-Y = Page Up. Control-V = Page Down.
emacs



jed
  • Menu based text editor. Yes, menus in the command line!



Mail Readers - Command Line

mail
mutt



Viewing Files

less [FILENAME]



FTP Servers

vsftp

Config File:   /etc/vsftpd.conf
After Config Changes:    sudo etc/init.d/vsftpd restart
File with a list of users that are NOT allowed FTP access:    /etc/ftpusers


Configuration File Settings
local_enable=YES Allow Authentication of Users
write_enable=YES Allow Upload of Files
chroot_local_user=YES Limit users to their home directory.
chroot_list_enable=YES Limit a specific list of users to just their home directories.
chroot_list_file=/etc/vsftpd.chroot_list Location of the list of users to limit.



proftpd



SSH Server

Configure

sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.default
sudo chmod a-w sshd_config.default
sudo nano /etc/ssh/sshd_config
[Change:  PasswordAuthentication yes]
sudo restart ssh



Directory Structure

binEssential user command binaries.
bootStatic files of the boot loader.
cdrom
devDevice files.
etcHost-specific CONFIGURATION files, i.e. preferences.
Startup, shutdown, start, stop scripts for every individual program.
homeUser home directories.
libEssiential shared libraries and kernel modules.
mediaMount point for removable media.
mntMount point for a temporarily mounted filesystem.
optAdd-on application software packages.
procProcess information. Virtual filesystem documentation kernel and process status as text files.
rootHome directory for the root user.
run
sbinSystem binaries.
srvData for services provided by the system.
sys
usrMulti-user utilities & applications.
varVariable files. The contents of the files here is expected to grow.
Contains log, lock, spool, mail, and temp files.


Miscellaneous Commands

sudo reboot