Questions tagged [root]

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

root is the default administrative account for Unix-based systems. It is comparable to the Administrator account of a Windows system.

548 questions
0
votes
1 answer

chmod/chown/mkdir: Operation not permitted as root

I get Operation not permitted for root user on one server but not on the other "identical" server. Running on Amazon Linux 1. Server 1: [root@preprod-1 ]# chown root:root /s3mnt/outliers/ chown: changing ownership of ‘/s3mnt/outliers/’: Operation…
masterpiece
  • 115
  • 1
  • 1
  • 8
0
votes
1 answer

What do I need to do on a minimal CentOS 8 installation to receive root's emails?

I've tried searching but all of the results seem to be about setting up an actual mail server. I just want the simplest solution. I've added my email address to the bottom of /etc/aliases. I've had the server a week or more now, and I note that…
Codemonkey
  • 1,086
  • 4
  • 19
  • 41
0
votes
1 answer

Is it a bad idea to use rsync as root to sync /etc/letsencrypt and /etc/nginx between servers?

I have a failover setup with two servers and would like to sync /etc/letsencrypt and /etc/nginx between primary and replica. I am planning on using Match Address on replica to only set PermitRootLogin yes for a single IP. Is it a bad idea? If so,…
sunknudsen
  • 701
  • 3
  • 14
  • 28
0
votes
0 answers

Docker containers on startup not visible (started as different user?)

As the title indicates I have a bunch of containers that are set to restart always. Everything works fine as it is but things seem to go wrong when I restart the server (Ubuntu 20.04). The containers are in fact restarting on reboot since I see them…
0
votes
1 answer

How do I regain Root Access, whose Access has been disabled?

I recently decided to disable Root Access, to my VPS, via SSH/PuTTy. This being an obvious effort to increase the security of the VPS. I achieved this by heading into /etc/ssh/sshd_config and performing the following line changes: PermitRootLogin…
Craig
  • 145
  • 1
  • 1
  • 6
0
votes
4 answers

Ubuntu keep admin rights; skip entering password and sudo

I was wondering if there is a way to enter in my admin password someplace just once and keep it for my entire time logged in. I hate having to type sudo command-name* every five seconds, or typing in the password every time the system wants to…
jack bower
0
votes
0 answers

Centos 7 - Shrink size of LVM Partition

I have a Centos 7 VM which was built from an OVA template. I have it running under Virtualbox. Issue I have is the VM has a dynamic disk of 200G - but only 4 Gb used. I want to shrink the partition to 40Gb. EDIT. The file system is xfs Its an LVM…
Adam
  • 11
  • 2
0
votes
1 answer

Using Fail2Ban as non root

What is the best way to add IP to Fail2Bans blocklist for normal user, (non root) but without giving full acces to fail2ban-client for that normal user. To run for example this command for normal user: fail2ban-client set apache-badbots addignoreip…
0
votes
1 answer

Monitoring users logged in with SSH-CA (certificates)

I was hoping to get some help with an approach that could be used... I am building out a solution that will use SSH-CA (that is, SSH where authentication is done via certificates). Flow is simple: 1) User generates key pair 2) Authenticates with HSM…
Woodstock
  • 103
  • 1
  • 1
  • 11
0
votes
1 answer

Ubuntu Not Detecting Free Space In Root Partition

My server has a 40GB HDD and runs Ubuntu 18.04. The output for the command: sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL returns: NAME FSTYPE SIZE MOUNTPOINT LABEL loop0 squashfs 91.3M /snap/core/8592 loop1 squashfs 91.4M…
0
votes
1 answer

How to move /var back to Root from a different filesystem

I need to move my /var (dev/sdc1) back to the / (dev/sda2) from a different file system. I've resized the / partition and want to move /var back to / partition and resize /dev/sdc1 filesystem to mount another directory /data002 Currently, df -h and…
Sam89
  • 11
  • 4
0
votes
2 answers

qemu-system_x86-64 can you add a physical hard disk to a virtual machine without being root

As it is on the title I want to add a physical partition to my VM without having root privilege. Is it possible from Linux and how should I do this by using only qemu-system_x86-64 ??
0
votes
2 answers

Why do we remove Root access and create another user with the same privilege as Root?

I'm new to server learning and just started with AWS VPC. So the reading materials I have been reading are mainly from AWS. I can't wrap my head around the concept of deleting root and creating another user with the same privileges as root. Why…
Organic Heart
  • 157
  • 1
  • 8
0
votes
0 answers

Any downside to using `sudo git` to upload `/etc/nginx/sites-available/` and `/etc/nginx/ssl/` config files on github?

I'm contemplating uploading config files from /etc/nginx/sites-available/ and /etc/nginx/ssl to a private Github repository. Doing so would require me to use git with sudo (or from root user) for the ssl folder at least (which can only be read by…
Jean Monet
  • 121
  • 6
-1
votes
1 answer

Does it makes sense to permit only root to use ssh?

i have a question about some "security": What would happen in the worst case if the root has the permission to use the ssh tunel? Maybe it its better to use sudo instead of an root account? As a "ssh" newbwie i want to ask you. Thank you
Teodor C.
  • 3
  • 4