Если вы случайно поменяли права на директорию /etc и её содержимое.

Как я исправил обратно не помню, но помню что гуглил и менял обратно права. Но лучше советовали переустановить систему, если вам это не накладно.

Мне было лень переустанавливать и поэтому погуглив нашел пару инструкций выполнив которые я надеялся что вернул все на свои места.

Но вот вчера обнаружил, что не могу подключиться к PostgreSQL. Параллельно заметил, что у меня есть зависшие Vagrant. Я их не смог выгружить через vagrant destroy. Там было много ошибок и я думал, что это как-то связано. Но потом подумал, что возможно эта проблема никак не относится к Постргесс. Возможно это из-за того, что я установил новый виртуалбокс пока вагрант был запущен и тепер я не могу нормально удалить вагрант.

Есть такая команда 

pg_lsclusters

Она показывает рабочие кластеры. Запустил эту команду, а так путь к логу. Открыл лог и вижу такую ошибку:

Fix postgresql error FATAL: could not access private key file "/etc/ssl/private/ssl-cert-snakeoil.key": Permission denied

Не сразу до меня дошло, что это из-за моей случайной опечатки в прошлом, когда я сменил права на директорию /etc/

Нашел решение тоже в гугле: https://gist.github.com/GabLeRoux/0c60f9be0c28b6b41f64cb55474b0ccb#file-fix-ssl-cert-snakeoil-key-ubuntu-postgresql-sh-L5

 

# > It happened to me and it turned out that I removed erroneously the postgres user from "ssl-cert" group, set it back with
gpasswd -a postgres ssl-cert

# Fixed ownership and mode
sudo chown root:ssl-cert  /etc/ssl/private/ssl-cert-snakeoil.key
sudo chmod 740 /etc/ssl/private/ssl-cert-snakeoil.key

# now postgresql starts! (and install command doesn't fail anymore)
sudo /etc/init.d/postgresql start

комментарии (35)

Mavis Mutch Mavis Mutch 2021-01-23 22:21:26
It is with sad regret to inform you StarDataGroup.com is shutting down. It has been a tough year all round and we decided to go out with a bang! Any group of databases listed below is $49 or $149 for all 16 databases in this one time offer. You can purchase it at www.StarDataGroup.com and view samples. - LinkedIn Database 43,535,433 LinkedIn Records - USA B2B Companies Database 28,147,835 Companies - Forex Forex South Africa 113,550 Forex Traders Forex Australia 135,696 Forex Traders Forex UK 779,674 Forex Traders - UK Companies Database 521,303 Companies - German Databases German Companies Database: 2,209,191 Companies German Executives Database: 985,048 Executives - Australian Companies Database 1,806,596 Companies - UAE Companies Database 950,652 Companies - Affiliate Marketers Database 494,909 records - South African Databases B2B Companies Database: 1,462,227 Companies Directors Database: 758,834 Directors Healthcare Database: 376,599 Medical Professionals Wholesalers Database: 106,932 Wholesalers Real Estate Agent Database: 257,980 Estate Agents Forex South Africa: 113,550 Forex Traders Visit www.stardatagroup.com or contact us with any queries. Kind Regards, StarDataGroup.com
Mellissa MacKillop Mellissa MacKillop 2021-02-02 20:52:50
It is with sad regret to inform you StarDataGroup.com is shutting down. Fire sale till the 7th of Feb. Any group of databases listed below is $49 or $149 for all 16 databases in this one time offer. You can purchase it at www.StarDataGroup.com and view samples. - LinkedIn Database 43,535,433 LinkedIn Records - USA B2B Companies Database 28,147,835 Companies - Forex Forex South Africa 113,550 Forex Traders Forex Australia 135,696 Forex Traders Forex UK 779,674 Forex Traders - UK Companies Database 521,303 Companies - German Databases German Companies Database: 2,209,191 Companies German Executives Database: 985,048 Executives - Australian Companies Database 1,806,596 Companies - UAE Companies Database 950,652 Companies - Affiliate Marketers Database 494,909 records - South African Databases B2B Companies Database: 1,462,227 Companies Directors Database: 758,834 Directors Healthcare Database: 376,599 Medical Professionals Wholesalers Database: 106,932 Wholesalers Real Estate Agent Database: 257,980 Estate Agents Forex South Africa: 113,550 Forex Traders Visit www.stardatagroup.com or contact us with any queries. Kind Regards, StarDataGroup.com
Lashay Roberson Lashay Roberson 2021-02-16 07:01:14
Use SendBulkMails.com to run email campaigns from your own private dashboard. Cold emails are allowed and won't get you blocked :) - 1Mil emails / mo @ $99 USD - Dedicated IP and Domain Included - Detailed statistical reports (delivery, bounce, clicks etc.) - Quick and easy setup with extended support at no extra cost. - Cancel anytime! Regards, www.SendBulkMails.com
Barbra Wallwork Barbra Wallwork 2021-02-23 20:55:22
Do you need more clients? We have amazing databases starting at $9.99 until the end of the Month! Visit us at StarDataGroup.com
SendBulkMails.com SendBulkMails.com 2021-02-26 03:51:00
SendBulkMails.com allows you to reach out to clients via cold email marketing. - 1Mil emails starter package - Dedicated IP and Domain Included - Detailed statistical reports (delivery, bounce, clicks etc.) - Quick and easy setup with extended support at no extra cost. - Cancel anytime! SendBulkMails.com
Dexter Hibner Dexter Hibner 2021-03-09 08:21:41
Hey, Listen, business is tough right now for most people. Does this sound like your situation? -Not enough quality leads? -Not enough revenue? -Always looking for more business? -Working too hard? I have the solution to help make this a great year for your business. I will show you how to Drive Revenue, Sales and Commissions...during the day and more importantly while you sleep... ==> https://sesforyou.com Regards, SesForYou.com
Cleo Erlikilyika Cleo Erlikilyika 2021-03-25 09:08:37
Hello, BestLocalData.com has a special package you get any group of databases for $49 or $249 for all 16 databases and unlimited emails for a year(Domain, IP, Dashboard included). You can purchase it on BestLocalData.com and see samples if you are interested.
Kacey Clibborn Kacey Clibborn 2021-03-28 12:48:24
Your All In One Solution For Creating All The Content You'll Ever Need. Proprietary AI Turns YouTube Videos Into Traffic Getting Articles At The Press Of A Button! We’ve Been Getting Free Autopilot Traffic From Google Without SEO Experience For Over 2 Years By Converting Others YouTube Videos Into Articles… https://warriorplus.com/o2/a/gmvfs/0
Hayley Chapin Hayley Chapin 2021-03-29 15:16:48
Need extra income? A fully hosted, done for you content + monetisation and a stunning design web based software that creates a fully automated done for you cryptocurrency affiliate site, Visit us: https://warriorplus.com/o2/a/f5s4y/0
Trevor Oppen Trevor Oppen 2021-04-08 10:24:27
Hey, It was nice speaking to you the other day, this is the service I was telling you about that helped us boost our ROI almost 2000% Its a company called Lifemail.studio sorry it took so long to get back to you. They allow you to send any email doesn't matter what. We dealt with a guy named Michael, he was friendly and got us setup really quickly. Regards, Trevor
Arturo Eddie Arturo Eddie 2021-04-14 02:11:35
Hello, Send unlimited emails to unlimited lists with one click and no monthly fees! $99 once off! LifeMailNow.com
Sherrill Koss Sherrill Koss 2021-04-19 19:00:58
Do you need clients? We compiled some of the world's top databases for you at ridiculous low prices. $49 for any of our databases or $99 for all 16 databases! Visit BestLocalData.com Regards, Sherrill
Normand Venables Normand Venables 2021-04-28 15:47:53
Hey! BestLocalData has an amazing special. 16 databases for $99. LinkedIn(43million records) USA B2B (28 million companies), Australia, South Africa, UK, Germany and all of that included. Instant delivery! https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7S34LZQSKKQHG Or check out more on our website! Regards, Normand
Wendi Frith Wendi Frith 2021-05-11 07:53:17
Hello from SendBulkMails.com, We have a special limited offer for you to send unlimited emails. We allow non-permission based emails and you won't ever get blocked. We also buy your domain for you and give you a clean IP and setup your DNS records. Check us out on SendBulkMails.com
Diane Hislop Diane Hislop 2021-05-11 21:30:48
Hello from BestLocalData.com Due to the pandemic BestLocalData.com is shutting down on the 14th of May. We have more than a 100 million records of Key Executives all over the world. We hope that this Data will serve other companies to succeed in their marketing efforts. We have reduced all the prices to next to nothing on our website BestLocalData.com We wish you the best in your future endeavours.
Paulette Landers Paulette Landers 2021-05-19 00:32:50
Hello from order-fulfillment.net, Doing your own product shipping or order fulfillment in house? Tired of it? Visit us on www.order-fulfillment.net We can store, inventory, and manage your drop shipping / order fulfillment for you. Based in the US for almost 2 decades - we ship around the world and will save you time and money. Who would be the best contact at your company to discuss? Here are some of the items we ship for clients: -Books, training manuals, guides -New member welcomes boxes and gifts -Product samples -Marketing materials -Medical program test kits -Follow up gifts to clients, leads, and prospects Thank you! Fulfillment Warehouse https://order-fulfillment.net
Nicholas Delagarza Nicholas Delagarza 2021-05-20 13:50:01
Are you looking for the best way to market your business? FbCourses.net has the answer.. Not sure where to start, or what to do? Why not learn from the best. All of the best. We are offering at never before seen prices all of the top courses for one insanely low price. If you have been thinking of how to generate more leads, website traffic or sales today is the day. All courses are available in full with immediate download on FbCourses.net Not sure which one you like, for the next 24 hours we are offering the entire suite of courses for the lowest amount you could possible imagine. Check us out : FbCourses.net You could be driving new income or starting the new side hustle today!
Bryon Reece Bryon Reece 2021-05-26 05:17:30
Hello, It is with sad regret to inform you that BestLocalData.com is shutting down. We have made all our databases for sale for a once-off price. Visit our website to get the best bargain of your life. BestLocalData.com Regards, Bryon
Trevor Newkirk Trevor Newkirk 2021-05-28 05:20:06
Hello, It is with sad regret to inform you that BestLocalData.com is shutting down. We have made all our databases for sale for a once-off price. Visit our website to get the best bargain of your life. BestLocalData.com Regards, Trevor
Sol McLamb Sol McLamb 2021-06-03 01:04:38
Hello, It is with sad regret to inform you that BestLocalData.com is shutting down. We have made all our databases for sale for a once-off price. Visit our website to get the best bargain of your life. BestLocalData.com Regards, Sol
Danuta Lugo Danuta Lugo 2021-06-11 15:04:33
We at BestLocalData.com has been hit badly by Covid-19 and as a result BestLocalData.com is shutting down. We provided the best data to companies to find their right customer base, we don't want other companies to go down the same path we went and go out of business. As a result we are providing our data till the end of the week at the lowest possible prices. BestLocalData.com
Katharina Krouse Katharina Krouse 2021-06-13 22:54:11
We at BestLocalData.com has been hit badly by Covid-19 and as a result BestLocalData.com is shutting down. We provided the best data to companies to find their right customer base, we don't want other companies to go down the same path we went and go out of business. As a result we are providing our data till the end of the week at the lowest possible prices. BestLocalData.com
Dewey Kiernan Dewey Kiernan 2021-06-15 17:06:35
Hello from order-fulfillment.net, Doing your own product shipping or order fulfillment in house? Tired of it? Visit us on www.order-fulfillment.net We can store, inventory, and manage your drop shipping / order fulfillment for you. Based in the US for almost 2 decades - we ship around the world and will save you time and money. Who would be the best contact at your company to discuss? Here are some of the items we ship for clients: -Books, training manuals, guides -New member welcomes boxes and gifts -Product samples -Marketing materials -Medical program test kits -Follow up gifts to clients, leads, and prospects Thank you! Fulfillment Warehouse https://order-fulfillment.net
Rhys Lockwood Rhys Lockwood 2021-06-18 16:07:25
Hello from FbCourses.net Want to pay $0.01 a click? We got you covered. A great team of Global Digital Marketing experts have compiled this list of 13 Best + Free Facebook Advertising Training, Classes and Courses to help you learn and excel at Facebook Ads & Marketing. Thousands of professionals have already benefited from this list on Facebook Training. Regards, Rhys
Jani Macdowell Jani Macdowell 2021-06-22 18:30:29
The plug welcomes you with a super discount of 15% on every product for a limited period of time! (Promo code: THEPLUG) We offer the largest assortment of private databases! Such as: - The Largest collection of Linkedin Databases! - Forex Consumers (worldwide) - Casino Consumers (worldwide) - Business Databases (worldwide) - Cryptocurrency consumers (worldwide) - many more.. And the best part of it! We are the only source you will ever need! We have the largest database on the market with the greatest prices and team. Visit us: https://silent-plug.com/
Myrtle Chambless Myrtle Chambless 2021-06-29 03:37:21
It is with sad regret to inform you that because of the Covid pandemic BestLocalData.com is shutting down at the end of the month. We have lost family members and colleagues and have decided to shut down BestLocalData.com It was a pleasure serving you all these years. We have made all our databases available for $99 (All of it for $99) for those interested. Kind Regards, BestLocalData.com Myrtle
Latesha Marcum Latesha Marcum 2021-06-30 21:25:14
Hi , I am following up on my message below. Who would I speak with about handling your US order fulfillment and shipping? Regards, Latesha order-fulfillment.net ------------------------------------------------------------------------ Hi, Who would I speak with at your company that manages your product shipping and order fulfillment? We are US company, offering warehousing, order fulfillment and drop shipping to our customers since 2005. Here are some of the items we ship for clients: -Books, training manuals, guides -E-com product drop shipping -New member welcomes boxes and gifts -Product samples -Health and Medical supplements -Marketing materials -Medical program test kits -Follow up gifts to clients, leads, and prospects Do you have some time to discuss - phone / email ? Thanks, Fulfillment Specialist www.Order-Fulfillment.net
Vanessa Ciantar Vanessa Ciantar 2021-08-05 17:25:42
6 August 2021. This is the last day BestLocalData.com will be online and operate. We are shutting down and all our data is for sale for $99. Regards, Vanessa
Ladonna Eisenberg Ladonna Eisenberg 2021-08-17 00:30:15
New data just for you! Hi, just letting you know you can now select from hundreds of millions of data records in 200+ countries and in various industries. Benefit from it as soon as possible. Browse our databases or request a custom list that suits your needs. There's something for everyone. Have a look! https://sundatagroup.one
Arlie Lauterbach Arlie Lauterbach 2021-08-21 14:23:32
Hello. Need leads for your business? We have a limited offer where we sell almost 400 million executives around the world in 165 countries for $299. Or you can buy your country individually for $99. www.SunDataGroup.one
Sarah Lykins Sarah Lykins 2021-08-28 00:48:07
We have an amazing database of leads for you. All countries are $99 and you can buy the entire world 165 countries for $179. This offer is valid till Friday. www.SunDataGroup.one
Krista Latham Krista Latham 2021-09-02 08:39:09
Hi from Order-Fulfillment.net Who would I speak with at your company about any of your order fulfillment and drop shipping needs? My company Order-Fulfillment.net can warehouse, inventory, and manage your drop shipping / order fulfillment for your customer orders. Based in the USA for almost 2 decades, near major USA air and sea ports. Here are some of the items we currently pick, pack and ship for clients: -Books, training manuals, guides -New member welcomes boxes and gifts -Product samples -Marketing materials -Medical program test kits -Follow up gifts to clients, leads, and prospects Thank you! Fulfillment Warehouse Order-Fulfillment.net Drop Shipping and Order Fulfillment Specialists since 2003
Marina Callahan Marina Callahan 2021-09-11 13:35:17
Hello from SunDataGroup.com We are selling leads from around the world. I thought your company could benefit from it. You can visit our website www.SunDataGroup.com to see some of our data. We have a special offer running. All our databases for $99.
Ivan Austin Ivan Austin 2021-10-01 06:27:15
Hello, My name is Johan, I am a PHP programmer that specializes in data driven web applications. Anything related to PHP, MySQL, Data scraping etc. If you have any custom jobs you can add me on skype to discuss your requirements. Skype: cmsdevelopers Regards, Johan
Christin Celestine Christin Celestine 2021-10-07 23:22:32
Hi , Who would I contact at your company that handles ordering your logo products, t-shirts, and promotional items? For over 20 years we have been creating and supplying our clients with all their custom logo merchandise. We can put your logo onto anything including: -Custom Printed T-shirts / Hoodies -Pens -Mugs -T-shirts -Bags -Banners -Table Covers -Key chains -USB flash drives ---plus 350,000 other items! We also offer PPE items such as hand sanitizer and masks. Are there any upcoming projects that you need logo items for? Thanks in advance for your time. Regards, Christin Custom Branded Product Specialist