I am having a ubuntu server and forgot the root password. I could not find the pass in any documentation (My fault). Now I have another user which is in the sudo list but the password of that user is saved in kitty which I also dont remember, I can login with that but when I login and execute some admin commands with sudo its needs the password for that user which I can not see it. The question is how I can see that kitty password which is saved in hidden characters??
Toqeer's questions
I have a Multisite Wordpress setup with a dev box and a live. Whenever my developers change a theme on one of the sites or add a page/post/any other content on the deb box, I have to take the whole db and all wordpress files and move them to live.
I can take care of the changes in the files through svn but how can I copy only the changeset in the database to live. I don't want to copy the whole db every time especially since there might be new comments (for example) on live that I don't want overwritten.
Possible Duplicate:
How to configure php.ini with remote SMTP?
We have a php application running on Linux which sends emails to there users. Currently its setup like php.ini is configured to send via local sendmail server but we have separate mail server for our organization for this domain. I want to send the php application emails via that remote smtp server so these emails can have the correct SPF records and sign via DKIM.
But I could not see such option in php.ini to specify the remote host address to forward emails to that, its for windows only.
I saw some post which suggest phpMailer
but I could not find how to configure that so all our php application could send via our remote SMTP.
We have multi-site wordpress containing more then 50 blogs/sub-site.
Our base URL to wordpress site is www.example.com/base-site/ and we have other sub-sites in it like www.example.com/base-site/site1 site2 ... etc.
Now My question is to redirect the main-site to one of the subsites but a simple redirect 301 is not working. I tried some solutions of mod-rewrite but its not working either for this main-site to redirect to sub-site.
A solution is required to Redirect
www.example.com/base-site/
to
www.example.com/base-site/site1
Solution used so far but not working for me solution1 solution2
I want to loadbalance outbound emails via multiple IPs, is there any built-in tool or some easy way to do it with postfix, sendmail or exim? for example if I assign three IPs to the email server and emails are sent via all the ips one by one.
We have a cloud server on Amazon EC2. Our old admin setup the DNS and Mail Server on one server that is working fine but I just realized now that the instance is on Instance store not an EBS backed. So the hardware could be failed any time and we will loose all our emails etc.
So I want to migrate that instance from Instance Store to EBS Backed instance, also I want to split the DNS from Mail(Zimbra Server) before the migration so our other sites should not effect with this migration.
I need some solution, how to migrate from Instance store to EBS instance with less down time.
Whenever I install vsftpd
on centos
, I only setup the jail environment for the users and rest is default configuration of vsftpd
. I create user and try to connect with filezila
ftp client, but I could not connect with passive mode. I always change the transfer settings
to active mode to successfully connect to the ftp server
otherwise I get
Error: Failed to retrieve directory listing
So is there a way to change any directive in vsftp.conf
file and we can connect with passive mode to the server?
I am using zimbra server as our email server. Today I saw some weird emails in my inbox. The From and To address both belongs to my email address. The header of the email.
To: [email protected]
From: "[email protected]
But Received address is the following.
Received: from p3smtphosting04-02.prod.phx3.secureserver.net (p3smtphosting04-02.prod.phx3.secureserver.net [208.109.80.81])
Is there any solution if To and From address is my own that should go to SPAM folder. I know From address could be anything and generally this could not be stopped but at-least it goes to Junk. If there is any general rule I can add to spamassasin, so if the From and To matches it should be considered as SPAM.
When I create a user with useradd
command in centos 5, the home directory is created and its /etc/skel files are copied to that directory but when i give useradd
with -d
option to some different path to home directory it does not create the skeloton files, like .bachrc
, .bash_history
etc.
If someone can give a hint so I can resolve this problem. Actually I need to execute some specific command .bashrc file but its not there. I created it manually but stil it does not executed that at time of user login.
Regards
I am running centos version 5.4 with apache version 2.2.3, I want to get latest security patches for this apache version.
I checked the last update for apache via
rpm -q --changelog httpd | less
and it shows
Thu Mar 25 2010 Karanbir Singh <[email protected]> 2.2.3-31.el5.centos.4
- Roll in CentOS Branding
Thu Mar 04 2010 Joe Orton <[email protected]> - 2.2.3-31.4
- require and BR a version of OpenSSL with the secure reneg API (#567980)
.......
Now when I run yum update httpd
, it says
No Packages marked for Update
.
So is there any way I can update to the latest patch from centos? also I do not want to update from third party repositories.
Regards
I am running an instance backed by instance store, I know If I stop the instance it will be no longer available but can I restart that instance? I can see an option on amazon console when I right click on the Amazon instance store but I am not sure about that.
here is the answer but they did not mention if we restart the instance it will be no longer available. http://aws.amazon.com/ec2/faqs/#What_is_the_difference_between_using_the_local_instance_store_and_Amazon_Elastic_Block_storage_for_the_root_device
Regards
I am accessing my server on Amazon AWS via ssh and suddenly its no more accessible via ssh. I am getting " Connection closed by 'Live IP Address of Server' " error. I think there are too many connections or may be some other problem because I am getting the password prompt from the server, after giving the right password I am getting that error and connection is closed.
Now I don't have any other way to access my server, Please help how can I restart ssh the server or if there is any other way to get to the server.
Regards
Here is the ssh -vvvv result
[root@286457 ~]# ssh -vvvvvvvv toqeer@IP
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to IP [IP] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug3: Not a RSA1 key file /root/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
#### MANUAL SNIP; ABOVE LINE REPEATED OVER 20 TIMES ####
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug3: Wrote 792 bytes for a total of 813
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmacripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour 128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug3: Wrote 24 bytes for a total of 837
debug2: dh_gen_key: priv key bits set: 121/256
debug2: bits set: 499/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: Wrote 144 bytes for a total of 981
debug3: check_host_in_hostfile: filename /root/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 10
debug1: Host '50.19.215.114' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:10
debug2: bits set: 506/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: Wrote 16 bytes for a total of 997
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug3: Wrote 48 bytes for a total of 1045
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa (0xb8079508)
debug2: key: /root/.ssh/id_dsa ((nil))
debug3: Wrote 64 bytes for a total of 1109
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-with-mic,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
debug3: Trying to reverse map address IP.
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_0' not found
debug1: Unspecified GSS failure. Minor code may provide more information
Credentials cache file '/tmp/krb5cc_0' not found
debug1: Unspecified GSS failure. Minor code may provide more information
debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug3: no such identity: /root/.ssh/identity
debug1: Offering public key: /root/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug3: Wrote 368 bytes for a total of 1477
debug1: Authentications that can continue: publickey,gssapi-with-mic,password
debug1: Trying private key: /root/.ssh/id_dsa
debug3: no such identity: /root/.ssh/id_dsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup password
debug3: remaining preferred: ,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
usr@IP's password:
debug3: packet_send2: adding 32 (len 78 padlen 18 extra_pad 64)
debug2: we sent a password packet, wait for reply
debug3: Wrote 144 bytes for a total of 1621
Connection closed by IP
We are going to send huge bulk emails (It's an invitation to our site). I setup an instance on Amazon and installed zimbra on that along with phplist which is configured. DKIM and Domain keys are setup.
I am afraid my IP will be blocked by spam blockers so is there any way that I can tell them my IP address and they do not block my ip. Our emails are not spam but it will be millions of emails and sender is also so huge so I can could not subscribe to mailchimp like service, its becomes very expensive.
Email will be also sent to gmail, yahoo, hotmail and AOL. I need some way to tell spamblockers service providers that they do not block my IP. for example to the following spam blockers.
AHBL
BACKSCATTERER
BARRACUDA
BURNT-TECH
CASA-CBL
CASA-CBLPLUS
CBL
I have OpenVPN configured on a Centos server and client can connect via OpenVPN client from their Windows box on port 1194. Clients get the gateway 10.0.8.1.
The problem is clients' boxes have viruses on their system and they are sending spam via my OpenVPN server; I just want to block port 25 for my clients.
I added the following rule in my iptables, which allows all traffic and drops port 25.
iptables -t nat -A PREROUTING -p tcp --dport 25 -j DROP
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
eth0
is the interface of the OpenVPN server.
But still it is sending spam.
Can anybody suggest how can I block the emails from my OpenVPN client machines?
I created a windows 2003 instance on Amazon EC2, I created the snapshot for backup. Now I am creating the volume from that snapshot and try to attach to a new windows 2003 server.
I am able to up the new windows 2003 box but I could not login with any password now. Tried all the passwords but could login. Any thoughts will be appreciated.
Regards