Privilege separation user “sshd” does not exist

If you encounter this error while starting openssh server, it means either /etc/passwd file or some entries for sshd user does not exist in the /etc/passwd file.

To fix this error, you need to

Add this line into /etc/passwd,

sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

and this line into /etc/group

/etc/group:sshd:*:27:

It should fix the problem.

How to know if suPHP is enabled in cPanel?

Sometimes, you need to know current php handler in your server such as DSO, CGI, FastCGI/FCGID, suPHP, or “none”.

Using root SSH access the following command may be used to display the default PHP version, the current status of suEXEC, and the current Apache PHP Request Handler, such as DSO, CGI, FastCGI/FCGID, suPHP, or “none”:

/usr/local/cpanel/bin/rebuild_phpconf --current

Here is an example of the output:

root@server []# /usr/local/cpanel/bin/rebuild_phpconf --current
Available handlers: suphp dso fcgi cgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installed

Above output shows that suphp is enabled in the server. Also, other handlers such as dso, fcgi,cgi are available that you can use too.

Installing JPEGTRAN on Linux [cPanel]

JPEGtran allows to optimize JPEG images.

You can always find latest packages on their website.

http://jpegclub.org/

root@server # cd /usr/local/src

root@server [/usr/local/src]#

Go to http://jpegclub.org/jpegtran and download latest version.

root@server [/usr/local/src]# wget http://jpegclub.org/jpegcrop.tar.gz

root@server [/usr/local/src]# tar -zxf jpegcrop.tar.gz

root@server [/usr/local/src]# cd jpegcrop

root@server [/usr/local/src]# cd jpeg-9a/

root@server [/usr/local/src]# ./configure

configure: creating ./config.status
config.status: creating Makefile
config.status: creating jconfig.h
config.status: jconfig.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands cd /usr/local/src/

root@server [/usr/local/src]# sudo make install

root@server [/usr/local/src/]# jpegtran -h
usage: jpegtran [switches] [inputfile]
Switches (names may be abbreviated):
-copy none Copy no extra markers from source file
-copy comments Copy only comment markers (default)
-copy all Copy all extra markers
-optimize Optimize Huffman table (smaller file, but slow compression)
-progressive Create progressive JPEG file

You are done!!

1 111 112 113 114 115 118