Login

Apr 21, 2010

What version of linux is running (determine installed version) ?

Determine the Installed Version of Redhat-based Systems:
cat /etc/redhat-release
or
cat /etc/issue

you will see something like:
Linux version 2.4.21-15.EL (bhcompile@bugs.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)) #1 Thu Apr 22 00:27:41 EDT 2004

ls /etc/*release*
ls /etc/*version*
will give you a file that contains the version. Then use cat 'filename_found_ls'


For kernel version, go to a terminal and run:
uname -a
Full post / more »»

Apr 3, 2010

VsFTPd user with global FTP privileges (like 'root')

Give VsFTPd user a global (like 'root') privileges

There's not actually need to give a Linux user FTP access to entire server; each user can access its own directory (is chrooted), which locks the user to its directory and can not browse anywhere else.
This can be useful for an admin to create a generic FTP user, with a different username and password from any users with sudo to root capabilities.

Edit vsftpd.conf:
cd etc/vsftpd
vim vsftpd.conf

uncomment these lines (press i to enter insert/edit mode):
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list           (this file can be anything you like, just remember how you name it !)

and save/close the file (ESC, :, x)
Then edit the list,
vim /etc/vsftpd.chroot_list

and type in the user or users (one per line) which you want to break out of the chroot jail and give global FTP to.

Don't forget to restart vsftpd:
service vsftpd restart
Full post / more »»