DEVGET.NET Blog

How to open ports on Cent OS/Fedora/Red Hat 0

How to open ports on Cent OS/Fedora/Red Hat

To open port XY

Open flle /etc/sysconfig/iptables:

# vi /etc/sysconfig/iptables

Append rule as follows:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport XY -j ACCEPT

Save and close the file. Restart iptables:

# /etc/init.d/iptables restart

Verify that port is open

Run following command:

# netstat -tulpn | less

Make sure iptables is allowing port connections:

# iptables -L -n
How to give www-data (or any other user) sudo 0

How to give www-data (or any other user) sudo

Use visudo so you don’t completely destroy your PC. (Visudo will tell you there are any errors before you save [mistakes will permanently lock you out of your own PC].

visudo

Enter the details below then save..

www-data ALL=(ALL) ALL

 

If you wish to be more specific and give this user passwordless sudo for particular commands use the format

www-data ALL=(ALL) NOPASSWD: /sbin/shutdown, NOPASSWD: /sbin/reboot

 

How to login to a ftp server in linux 0

How to login to a ftp server in linux

From your command line type

ftp
ftp > open ftp.myserver.com

Or Alternatively,

ftp ftp.myserver.com

It will prompt you for a username and/or password and you can just fill those in.

After you are in, you can see a list of commands by using the command:

ftp> help
Commands may be abbreviated.  Commands are:

!               cr              mdir            proxy           send
$               delete          mget            sendport        site
account         debug           mkdir           put             size
append          dir             mls             pwd             status
ascii           disconnect      mode            quit            struct
bell            form            modtime         quote           system
binary          get             mput            recv            sunique
bye             glob            newer           reget           tenex
case            hash            nmap            rstatus         trace
ccc             help            nlist           rhelp           type
cd              idle            ntrans          rename          user
cdup            image           open            reset           umask
chmod           lcd             passive         restart         verbose
clear           ls              private         rmdir           ?
close           macdef          prompt          runique
cprotect        mdelete         protect         safe

If you are familiar with linux this should be fairly straight forward. The only ones Ill cover for anyone completely new are ls, get and put. (more…)

How to install/uninstall Zimlets In Zimbra 8 5

How to install/uninstall Zimlets In Zimbra 8

TO INSTALL:

First place zip file in:

/opt/zimbra/zimlets

Then type

su zimbra
zmzimletctl install zimlet_archive_name.zip
zmzimletctl deploy zimlet_archive_name.zip
zmzimletctl enable zimlet_archive_name

 TO UNINSTALL/REMOVE:

su zimbra
cd /opt/zimbra/zimlets
zmzimletctl disable zimlet_name
zmzimletctl undeploy zimlet_name

(more…)