Questions tagged [amazon-linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
56 views

bash function command not found in cronjob

In my crontab , I set following bash function and applied it for my job. it is indicated to add timestamp to the log. adddate() { while IFS= read -r line; do printf '%s %s\n' "$(date)&...
0
votes
1answer
25 views

What is the difference between the directories conf, conf.d and conf.modules.d in httpd?

I installed the httpd package on my Amazon Linux instance and the /etc/httpd/ directory contains the subdirectories: conf/ conf.d/ conf.modules.d/ I noticed that these are directories for ...
0
votes
2answers
33 views

Successfully installed amazon-efs-utils but cannot find it

$ sudo yum install -y amazon-efs-utils --verbose Loading "extras_suggestions" plugin Loading "langpacks" plugin Loading "priorities" plugin Loading "update-mood"...
0
votes
0answers
165 views

How to avoid permission denied error with ssh from vscode remote-ssh extention

When I tried to ssh via VScode Remote-ssh extention, The following error occured. I also tried via putty. I could connect via putty Why the vscode vomit errors ? to avoid permission error, are there ...
0
votes
1answer
38 views

How to (re)install ca-bundle.crt

When I tried to install packages, I encountered the following problem [Errno 14] curl#77 - "error setting certificate verify locations: CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none&...
0
votes
2answers
375 views

How can we safely upgrade SSH 7.4 to 7.8 on AmazonLinux2

I have an SFTP server that runs on Amazon Linux 2 on AWS. The current SSH version is OpenSSH_7.4p1, is it possible to safely upgrade this to version 7.8. If yes how can I get it done. Since the SFTP ...
2
votes
3answers
97 views

Is there a limit to the number of user entries in AllowUsers that can be given in sshd_config file in Linux?

I have an SFTP server where I need to restrict users with specific IP addresses or ranges. To achieve this, I had been appending AllowUsers entries to the sshd_config file like below and there are 180 ...
0
votes
1answer
37 views

Expanded root volume but tmpfs and devtmpfs is limited

I have expanded root volume in my Amazon ec2 machine (Amazon Linux 2) but the space in tmpfs and devtempfs is still limited. Here is what output of df -h command looks like: $ df -h Filesystem ...
1
vote
1answer
413 views

Start systemd service from Ansible Playbook

What specific syntax must be used to get an Ansible playbook to successfully start a systemd service and make sure that the systemd service is running on an Amazon EC2 instance? CURRENT SYNTAX: The ...
0
votes
0answers
29 views

Unsquashfs fails: unknown inode type in read_inode

I've a pre-squashfs'ed file and then I am trying to merge it with another zip file, which will be first unzipped and merged and squashfs'ed with the previous one already created. Previous squahsfs ...
0
votes
1answer
50 views

SSH pem/private-key based login error?

I just created an ec2-instance with Amazon Linux 2 OS, then logged in to the system using login: ec2-user and an associated privatekey. Next, I created a new user x and copied the .ssh/authorized_keys ...
-2
votes
2answers
27 views

SFTP jail for the root user?

So While I've been looking into ways of locking down users and locking them down into jails. I've came across an interesting question that I haven't seen answered anywhere. How can one posses the ...
0
votes
0answers
22 views

TigerVNC doesn't let me change keyboard

TigerVNC (1.10) client installed in my local MAC. TigerVNC server installed in Ubuntu server with a xfce4 based desktop. I want to type in other languages using my MAC English US keyboard. I am able ...
0
votes
0answers
26 views

capturing yum update transaction to replicate on another machine

Looking for a way to capture a "yum update" on machine "A" and replicate the exact same actions on machine "B" (maybe at a later date after testing on machine "A&...
1
vote
1answer
103 views

Changing font in mlterm

I am not able to see complex fonts like Devanagari, Arabic, etc correctly in terminal-- they do render but circles appear on the screen for Devanagari, Arabic is also garbled. Everything is fine in ...
0
votes
0answers
156 views

Are there alternative/unofficial browsable package repositories for Amazon Linux 2

In the amozonlinux:2 docker image I've tried the following to figure out what are the package repositories sh-4.2# yum repoinfo Loaded plugins: ovl, priorities Repo-id : amzn2-core/2/x86_64 Repo-...
0
votes
0answers
62 views

Azcopy not taking the aws credentials

I have installed the azcopy utility tool in my linux machine, to copy the files from S3 to azure blob. and i have setted up the AWS credentials in linux like below: export AWS_ACCESS_KEY_ID=XXX ...
1
vote
1answer
153 views

Disconnected: No supported authentication methods for sudo user who authenticates using password

On an Amazon Linux 2 EC2 instance, password authentication from remote users has been enabled by running the following command during the cloud-init startup script: sed -i 's/PasswordAuthentication no/...
0
votes
2answers
228 views

Apache is starting multiple port 80 and 443 listeners until the server crashes

When I start the httpd (Apache) server on my Amazon Linux 2 it is creating numerous repeated port listeners on port 80 and 443. Every couple minutes it adds another set. The original port 80 and 443 ...
5
votes
2answers
264 views

Unable to connect vm to IPv6 internet via virtual tap interface

I'm having trouble connecting a vm to the IPv6 internet through a virtual tap device on the host. I.e., I cannot ping ipv6.google.com or the public IPv6 host global primary interface address. Ex: -...
1
vote
2answers
48 views

Can't ping virtual tap network interface via IPv6 from primary interface (eth0)

I'm having trouble communicating with my virtual tap devices via ipv6. Essentially ping6 -I eth0 <tap interface link-local ipv6 address> doesn't return anything. I can't even ping the host-...
0
votes
0answers
57 views

AWS: Connections drops after scp to ec2 instance. Have to stop/start ec2 insdtance to reeconnect

New to AWS: I ssh into my ec2 instance without issue until I use scp to copy files from another Linux box. 5 seconds after the transfer the connection is closed and the ec2 instance needs to be ...
0
votes
2answers
318 views

What does “status=10/n/a” mean in systemd output?

I am developing a .service file so that systemd can manage an app as a service on Amazon Linux 2. But when I type systemctl start my-new-service, the following error is reported in the logs: Mar ...
-3
votes
1answer
178 views

mkdir permissions needed for script called by systemctl start service

How can I give mkdir permissions to a script that is called by sudo systemctl start <service-name> ?? Here is the error being thrown in the results of sudo journalctl -u jekyll -f when I type ...
2
votes
1answer
673 views

Postgres install on Amazon Linux

Trying to install postgres on Amazon Workspace Linux but struggling for these reasons: The OS claims to be rhel fedora centos but doesn't have the rhel-release libraries. It seems like epel-release ...
0
votes
2answers
96 views

How to process wipefs command output?

My command, wipefs /dev/sdX, gives the below output: offset type ---------------------------------------------------------------- 0x111 ext4 [filesystem] ...
2
votes
1answer
2k views

Dependency error: install MongoDB on Amazon Linux

I need to install MongoDB community edition on an Amazon Linux machine. I followed the steps described in the MongoDB documentation that are, very simply: Create the repo file in /etc/yum.repos.d ...
0
votes
2answers
196 views

Install additional software in Amazon Linux

I have created Amazon Linux instance on Amazon Lightsail cloud. Now I would like to install Mosquitto buy entering command: sudo yum install mosquitto But system codn't find it. UPD I tried to add ...
3
votes
1answer
2k views

Timezone correct, UTC correct, time still wrong

I have an AWS EC2 server running Amazon Linux (like rhel fedora) which does not know how to tell time, or is somehow not accounting for Daylight Savings Time. This makes all of my timestamps off by 1 ...
0
votes
1answer
31 views

Cron logs show activity, but app logs show nothing

I'm trying to run a daily cron app. What I did: crontab -e Inside file, I have: 0 0 * * * cd /home/ec2-user/myapp && docker-compose up when I check /var/log/cron, I get: Jul 29 00:00:...
0
votes
1answer
2k views

xterm error loading font: which font package includes iso10646 fonts?

Everytime I start an xterm on my Amazon Linux release 2 (Karoo) server, I get an error complaining about a missing font: xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-...
1
vote
0answers
327 views

AWS EFS: unable to mount on amazon linux using amazon-efs-utils

I have created a simple EFS and trying to mount it to my AWS EC2 which is using amazon-linux distribution. I have been following the very simple instructions given there, I login to the my EC2, then ...
0
votes
1answer
183 views

how to update amazon linux gmp package?

We have an Amazon Linux server and we scan it using OpenVAS. It detected one high vulnerability which is Amazon Linux Local Check: alas-2016-754. Looking at the solution it says Run yum update php70 ...
4
votes
2answers
10k views

How to set environment variables permanently in Amazon Linux 2

I have experimented with many approaches to setting permanent environment variables EC2 instances running Amazon Linux 2, but none of the approaches are persistent across users and across login ...
2
votes
1answer
234 views

Can No Longer Login With Ec2-user After Creating A New User

I've tried looking in the forums before posting this but can't find anything that really addresses my issue. Very simply, my problem is in the topic: I created a new user, afterwards, I can login ...
2
votes
1answer
4k views

Return the private IP of an EC2 instance from within the EC2 instance

What specific syntax can be used to return the private IP address of an Amazon Linux EC2 instance from the command line within that instance? So far, I have come up with the following: # Get ...
1
vote
1answer
212 views

Ansible User module removes sudo configuration. Why?

An Amazon Linux 2 machine is configured with a user that can sudo without password as follows: # Add user sudo groupadd -g 2002 one-username sudo useradd -u 2002 -g 2002 -c "One Username Account" -...
-1
votes
1answer
35 views

Defining Ansible inventory on remote server

What specific changes need to be made to the code below so that the Ansible Playbook will know how to pull testFile.txt from ServerB into ServerA? These are both Amazon Linux servers. Note that ...
3
votes
1answer
7k views

yum lockfile is held by another user

Amazon Linux 2 instances are operated upon by an Ansible Playbook which performs multiple yum tasks one after the other. What specific changes need to be made to the syntax below in order for the ...
0
votes
1answer
648 views

multiple yum repos with name=packages-microsoft-com-prod

A group of Amazon Linux 2 instances have duplicate instances of name=packages-microsoft-com-prod in redundant yum repositories with different names. What is a safe way to remove the duplicate ...
1
vote
0answers
227 views

How to enable ZipArchive PHP class

Recently I have installed a PHP on Amazon Linux to run Chevereto. It's an image hosting service. When I wanted to install it on my EC2 instance, I got the following error: Aw, Snap! Your web ...
1
vote
1answer
2k views

Why does “hostname -i” return “Unknown host”?

We have created an AWS EC2 instance using AMI type Amazon Linux AMI 2018.03.0.20190514 x86_64 HVM. After we started up the instance, our software printed out an IP address error. When we tried ...
0
votes
0answers
897 views

get back sudo with Putty: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

apparently I messed up too much with my permissions and now I'm getting this while trying to use 'screen' again: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set If I try: chown root:...
0
votes
1answer
578 views

GNU Parallel facing silent exit and invalid option error

I tried performing the full installation from: http://git.savannah.gnu.org/cgit/parallel.git/tree/README The installation was successful. It's working well when installed on Mac OS but on Amazon ...
1
vote
1answer
397 views

Syntax error checking if file exists [closed]

A bash script running in Amazon Linux 2 is trying to test if a file exists. Then if it does exist, the script should delete the file. The following error gets thrown every time the script runs. ...
1
vote
3answers
4k views

How to install multiple RPM packages using Shell script and by taking it from comma separated input file? [closed]

I have to install multiple packages using shell script and rpm (package) name is in the input file. I have done it in this below way. My input file is path is = /mstr/mstr_input_file.txt MY Script ...
0
votes
2answers
5k views

How do I switch users on Amazon Linux for EC2 instances?

I saw How to change to normal user in the command line when logged in as the root user? How to switch between users on one terminal? I have access to sudo. I tried [ec2-user@ip-172-99-99-99 Weekly ...
1
vote
1answer
418 views

Logstash Unrecognized service Amazon Linux

I have been following this tutorial to install ELK stack in a remote server which runs on Amazon Linux. https://www.aytech.ca/blog/setup-elk-stack-amazon-linux/ I was able to install Elasticsearch and ...
2
votes
2answers
9k views

How do I configure my Amazon Linux service to auto-restart if it fails?

I'm using Amazon Linux. I have a script to start and stop a service, written in bash, located at /etc/init.d/wildfly At the various run levels, I have symlinks to ensure the script starts and stops,...
1
vote
1answer
1k views

Permission denied when accessing a file with acls on xfs file system

I'm trying to use ACLs with the xfs file system on Amazon Linux (RHEL-ish distribution). However, when I configure acls and try to access a file with a test user, my access is denied. I currently ...