Latest Server related questions

Score: 0
Nuno avatar
Require root password when executing "sudo -s"
us flag

I have a CentOS 7 server on AWS.

When logged in with the centos user, how can I prevent sudo -s logging in to root without requiring root's password?

[root@server ~]# cat /etc/sudoers | grep rootpw
Defaults rootpw
[root@server ~]# getent group wheel
wheel:x:10:centos
[root@server ~]# gpasswd -d centos wheel
Removing user centos from group wheel
[root@server ~]# getent group wheel
wheel:x:10:
[root@s ...
Score: 0
Danya02 avatar
Postfix: How to forward mail matching a specific pattern to a local mailbox, instead of a catch-all?
cn flag

I have a Postfix mailserver, and when I made it I expected to be the only user, so I set up a catch-all rule using a virtual_alias_maps rule using regexp mode:

/.+@example.com/ username

I have since then given out several ...@example.com addresses to different people and websites, so I need to maintain the catch-all rule. However, now I need to create a separate mailbox that should receive mail that ha ...

Score: 0
Kyle R avatar
Server changes Domain Name to IP in address bar
us flag

I'm no server guru so looking for some assistance. I am hosting a laravel project on a digital ocean droplet, and pointing a subdomain registered at godaddy to said droplet. The address bar is updating to display the server IP rather than the relevant domain when attempting to access the site.

The Domain is split into two parts with the base domain pointing to a wordpress server, and the myaccoun ...

Score: 0
Patrick Schulz avatar
Right method to start namenode (HDFS)
vg flag

I have a Hadoop Cluster over 2 nodes which i launch the namenode on master like so : 

 

hdfs namenode -regular

Is this command a good alternative to the hdfs --daemon start namenode ? and why my start-dfs opens datanode on the master ?

Thanks for clarifying this.

Score: 1
Caterina avatar
Error getting the correct Python3 dependency
cn flag

I get this error when trying to install HTCondor on Amazon Linux 2 instance:

Error: Package: python3-condor-8.8.15-1.el7.x86_64 (htcondor-stable)
       Requires: libpython3.6m.so.1.0()(64bit)

I tried installing python 3.6 on my own (given that the one installed was 3.7) and in /usr/local/lib I have libpython3.6m.so.1.0. Is this the same as libpython3.6m.so.1.0()(64bit)?

Adding it to the LD Library Path  ...

Score: 0
Where do I set dovecot protocols
ma flag

I have /etc/dovecot/dovecot.conf and then a lot of config files under /etc/dovecot/conf.d directory Which file should I edit to set protocols because in /etc/dovecot/dovecot.conf there's no protocol directive that isn't uncommented

Score: 0
DerpyNerd avatar
IIS websites in subdirectory => HTML source requests to root "/" points to default website instead of subdirectory
ph flag

Our IIS hosts our own website. But recently we have been tasked with hosting a third party website built using Laravel in a subdirectory.

The website is loading, but most of the resources like CSS and JS files are not being loaded (404) because of the way the third-party site requests it's resources. E.g:

<script source="/js/site.js"></script>

/js/site.js translates to https://defaul ...

Score: 1
guanza avatar
rsync -p. why would you want to preserve owner, permissions
sv flag

basically the title. I'm lacking unix basics but on windows if I backup with robocopy I wouldn't want to preserve ownership bc then I would have to take ownership of it again anyway when replaying the backup. (default is actually data, attr, timestamps)

I'm trying to backup a macbook in order to reset it and I'm hesitant to use the global archive flag -a. Will I have to take ownership of the file ...

Score: 1
Kavish Gour avatar
Setting up dnsmasq as a DNS and DHCP server on a LAN
kz flag

My routers:

Main Router: 192.168.100.1

Second Router: 192.168.101.1

The Main Router is provided by my ISP(a modem/router combo all in one). I don't have control over its settings. Except for changing the WIFI password and SSID.

On the Second Router, I have control over its DNS settings.

My Second Router's WAN port is connected to a LAN port on the Main router. I have a Debian Server with dnsmasq

Score: 0
Caterina avatar
Does AWS Educate allow the creation of NAT gateways?
cn flag

I am trying to have quick access to the internet from a private subnet. I get this error message when creating a NAT gateway:

There was an error creating your NAT gateway
You are not authorized to perform this operation. Encoded authorization failure message: PhLNSSs-pGaEXTXgy-Xfa-MWP2msuWBlj5q4xpM3DPEhewnsJ3pTcuVIQftrI_FaPsDU74zDPp9pg8O_hdq39bTOoKBh-hKIg9Cp4EElcPOCLzXeFtFpuLYegNGXg2I-hH1dhqI-wkARl ...
Score: 0
Shruti Prajapati avatar
Not able to upgrade OpenSSL version from 1.1.1g to 1.1.1l in RHEL 8.4
gs flag

I have Linux machine RHEL 8.4 with OpenSSL 1.1.1g. After running the vulnerability and penetration testing, It was found that this version of OpenSSL is not secured and recommended to upgrade OpenSSL 1.1.1g --> 1.1.1l

When I'm giving the command:

sudo yum update openssl

It's showing that version is already up to date.

1.Is this the correct way to update the version? 2.Is it like RHEL 8 has backporte ...

Score: 0
Arefe avatar
Jenkins: Unable to connect to the server. executable aws not found
bt flag

I run Jenkins on OS X and at one step, I receive the following error,

Constructing AWS CredentialsSetting AWS region us-east-1a 
 [Pipeline] {
[Pipeline] sh
+ echo 'Deploy blue container...'
Deploy blue container...
[Pipeline] sh
+ /usr/local/bin/kubectl apply -f ./blue/blue.yaml
Unable to connect to the server: getting credentials: exec: executable aws not found

It looks like you are trying to us ...
Score: 0
libpng.a(pngerror.o): requires dynamic R_X86_64_PC32 reloc against 'stderr'
in flag

I'm on Ubuntu 20 focal and I am trying to build Blender as a Python module. The final step of the build instructions is where I am having problems.

My building gets to 100%, but then fails with the following output:

/usr/bin/ld.gold: error: /usr/lib/x86_64-linux-gnu/libpng.a(pngerror.o): requires dynamic R_X86_64_PC32 reloc against 'stderr' which may overflow at runtime; recompile with -fPIC

I have tr ...

Score: 0
CORS and Nginx in front of apache reverse proxy/proxy pass not working to access API server
id flag

I'm trying to set up a reverse proxy to my api server but getting a 404 error page.

Context: Whilst setting up a react.js application and trying to find a solution to the CORS problem, I've decided to use reverse proxy (proxy pass) with nginx to invoke the api server internally and trick the browser to think the api is on the same domain.

This is my intended setup:

https://example.com points to the websit ...

Score: 0
Ben Opp avatar
Cannot reach Synology NAS with Windows Explorer
im flag

I cannot access the office Synology NAS from one of the clients on the network, using Windows Explorer. When I click its icon in the Network section, I get an error:

"Couldn't access \\SynologyNAS" "Error 0x80070035. Network path not found"

Windows problem diagnosis actually doesn't find any problems.

However, all other applications can locate the SMB shares:

  • This NAS is accessible through Win Explo ...

The Stunning Power of Questions

Much of an executive’s workday is spent asking others for information—requesting status updates from a team leader, for example, or questioning a counterpart in a tense negotiation. Yet unlike professionals such as litigators, journalists, and doctors, who are taught how to ask questions as an essential part of their training, few executives think of questioning as a skill that can be honed—or consider how their own answers to questions could make conversations more productive.

That’s a missed opportunity. Questioning is a uniquely powerful tool for unlocking value in organizations: It spurs learning and the exchange of ideas, it fuels innovation and performance improvement, it builds rapport and trust among team members. And it can mitigate business risk by uncovering unforeseen pitfalls and hazards.

For some people, questioning comes easily. Their natural inquisitiveness, emotional intelligence, and ability to read people put the ideal question on the tip of their tongue. But most of us don’t ask enough questions, nor do we pose our inquiries in an optimal way.

The good news is that by asking questions, we naturally improve our emotional intelligence, which in turn makes us better questioners—a virtuous cycle. In this article, we draw on insights from behavioral science research to explore how the way we frame questions and choose to answer our counterparts can influence the outcome of conversations. We offer guidance for choosing the best type, tone, sequence, and framing of questions and for deciding what and how much information to share to reap the most benefit from our interactions, not just for ourselves but for our organizations.