Questions tagged [root]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
71 views

Should I use my personal admin user or create a dedicated 'ansible' user for SSH in Ansible?

I'm starting learining and using ansible and struggling a bit with the user ansible uses for ssh. Is ansible supposed to use my personal admin user to ssh onto the invetory hosts and escalate ...
Alphabit's user avatar
0 votes
2 answers
37 views

Use original linux user bashrc also as root user

I extended the bashrc file of my linux user. This file contains extra aliases, functions, whatever is useful. It's synchronized with a playbook across our 100+ servers. When i'm working on linux I ...
ansible_usah's user avatar
0 votes
1 answer
87 views

VMware ESXi 7.0 U3j Can't login via root after a few minutes

I can't login via root user at the moment . If I do a hardware reboot on the server , the problem is solved and I can login for just once before I'm locked out again after like 5 minutes . I have read ...
Prestige VPS's user avatar
0 votes
1 answer
88 views

i am root but ufw status says 'command not found'

as simple user, first I pass root with command : su I am now root on Debian 10 buster. When I hit ufw status, I have 'command not found'. But it works with sudo ufw status When I use su -, the command ...
rach's user avatar
  • 1
0 votes
0 answers
158 views

Unable to login as root user

[Ubuntu server] I was able to login to the server just fine for days. And now I cannot login with the root user with password and private key both are not working. Luckily I am currently logged in as ...
DENIS DENIS's user avatar
0 votes
0 answers
71 views

Cannot edit journald.conf

I'm working with a embedded linux machine that was made with Buildroot. The default user is root and I would like to edit /etc/systemd/journald.conf to set the SystemMaxUse to prevent the log files ...
Life Impactor's user avatar
0 votes
1 answer
106 views

Why create a new user with sudo privilege when you are the only person manage the server?

Please share some true use cases of benefits when you are the only admin of manage VPSs, I'm just hosted my first WordPress site. A lot of guide I read online suggests creating a new user after update ...
Maxfield's user avatar
  • 103
1 vote
0 answers
96 views

Samba server issue with mount point being owned by root instead of 'force user' specified in smbd.conf

I've created a samba share on an ubuntu server called teslausb with the following lines specified in smbd.conf: [teslausb] comment = John's home share on Ubuntu path = /mnt/sdb1/teslausb ...
gyrex's user avatar
  • 11
0 votes
1 answer
23 views

Add an aliases user root2, results changing the owner root to root2

Am looking to add an alias for the root user to log to the server with a different password So I followed this advice https://serverfault.com/a/870301/429729 by using the following command useradd -o -...
user1402259's user avatar
1 vote
1 answer
2k views

mariaDB 10.5.12 access denied for root@127.0.0.1

fresh installation of mariaDB 10.5.12 on debian 11 was hardened with 'mysql_secure_installation' script, question "Switch to unix_socket authentication [Y/n]" was answered with 'yes'. Now ...
mpr's user avatar
  • 11
1 vote
2 answers
472 views

Sshd root login errors even though root logins are disabled - how to solve?

On my Linux server (Ubuntu 18.04.6 LTS) I have set PermitRootLogin no in /etc/ssh/sshd_config and reloaded the config with sudo service sshd reload But I am still seeing Mar 14 06:18:02 myhost sshd[...
Deeepdigger's user avatar
20 votes
9 answers
6k views

root login or sudo user for server administration?

I'm trying to understand the technical arguments/security implications between ssh'ing with root directly, or making an auxiliary sudo user in the context of maintaining a server. To clarify, we're ...
alex.b.bg's user avatar
  • 143
0 votes
1 answer
212 views

How to disable Root Access, to VPS, via SSH?

I run a VPS, on a Linux Server, with CentOS 7 (64 bits) being the chosen Operating System. I have recently wiped the VPS, so it only has a clean install of Plesk Onyx at the moment. I would now like ...
Craig's user avatar
  • 135
0 votes
0 answers
918 views

ufw failed to be initialized

I just make a fresh Docker container. But, when I try to enable ufw, I get the following error message: # ufw enable ERROR: problem running ufw-init modprobe: ERROR: ../libkmod/libkmod.c:586 ...
fauve's user avatar
  • 101
0 votes
1 answer
787 views

cron/php how to run command as a non root user

I need to run command (only one command) as a non root user from cron. Have tried two versions and both fails; Cron: * * * * * php script.php script.php: exec("whoami"); // returns 'root' //...
holden321's user avatar
  • 107
1 vote
1 answer
392 views

Should both root and wheel users own the files that originally were only owned by root?

Should a wheel user that was created to disable root login and secure SSH have the same ownership as root from a security point of view?
Adam Alleman's user avatar
2 votes
1 answer
3k views

Amazon EC2 instance is out of space because "root" file is gigantic

I've been working lately on an AWS EC2 instance with ubuntu. This is my first experience working with servers, so I'm really new to this. Lately I've noticed my free space has completely filled up for ...
SSC Fan's user avatar
  • 21
1 vote
2 answers
88 views

Is there a rights managment system for linux in company networks for local root support?

I work at a large research institute (10k users) with various systems (Mostly Windows and Ubuntu Linux). I am not an expert in such network structures but I work at home with Ubuntu myself and like to ...
BenPhys's user avatar
  • 13
0 votes
1 answer
1k views

nginx - subfolders alias include all subfolder

I'm currently trying to fiddle around with a location block that has a different root. However I have some issues when accessing files that are in a subfolder on the different root. Here is my broken ...
Aebian's user avatar
  • 23
0 votes
1 answer
32 views

VM in Read-Only - no commands executed

A Ubuntu 18.04 LTS server VM has entered Read-Only Mode, to the point that basic commands such as ls are not executed anymore, and return the error message -bash: /usr/bin/ls: Input/output error, ...
PalomaLVP's user avatar
1 vote
0 answers
130 views

How can a file be visible to a regular user but non-existent to root?

I have asked this question yesterday but it was marked as duplicate and closed because of its context, as it was thought to be an X/Y question, whereas I was just interested in the general matter of &...
mbernard's user avatar
0 votes
0 answers
67 views

Which permissions does a Linux executable file has when it is executed by root?

I am using CentOS 6.8. I have an executable called railgun, whose user and group are both set to root. I then use the root user to start it as a service, as below: service railgun start However, it ...
alancc's user avatar
  • 133
2 votes
1 answer
811 views

Is the root user able to administer screen for other users?

We're trying to rewrite a draconian screen session killer for users who leave their screen sessions up for an inordinate amount of time and have in some way or other circumvented our session timeouts. ...
Peter Turner's user avatar
  • 2,146
1 vote
0 answers
29 views

Why a non-root installation can work across the whole cluster?

I recently installed anaconda (which includes a new python3) locally in my account folder on a cluster with a dozen of nodes (each node with several cores). I use it to install some package P that is ...
xiaohuamao's user avatar
0 votes
2 answers
122 views

Is SSH remote execution more secure as local non-root?

Is there a security benefit running a command remotely via ssh as a local non-root user? In other words, is this actually more dangerous compared to executing the ssh command as non-root: root@local:~#...
morrow's user avatar
  • 11
0 votes
0 answers
213 views

Why is my Samba share only writable by root?

I have set up a Samba share, and it is only writable by root. For example, I can only create a folder on that share with sudo: ~$ mkdir /mnt/SHARE/somedir mkdir: cannot create directory /mnt/SHARE/...
TheEagle's user avatar
  • 101
1 vote
1 answer
284 views

namespace - nobody to root mapping

I'd like to create new user namespace being root with the command: # unshare -U bash $ echo $$ 3500 $ id uid=65534(nobody) ... etc After that I edit /proc/3500/uid_map im my initial namespace as root:...
pawel__86's user avatar
4 votes
2 answers
4k views

Why is the root home directory, /root not in /home? (looking for reasons other than /home is mounted on a different drive)

i know that one reason for /root not being in /home is that usually /home is mounted on a different disk and if it were to fail, we still want root to be accessible. What are some of the other reasons ...
dor's user avatar
  • 77
0 votes
1 answer
322 views

FreeIPA - ssh as root prompted for password

I know the access via root won't work (client sshd_config and restricted account in FreeIPA). But is there a way to blacklist root either on the host or on FreeIPA so it's denied immediately rather ...
dmgeurts's user avatar
0 votes
2 answers
311 views

Linux: Is it possible to use the ssh key pair instead or in addition to the root privileges?

I'm facing the problem of securing an embedded platform. All ssh hardening have been setup, including 2 factor authentication and login with ssh key pairs. Now, the root and user passwords are ...
Whois_me's user avatar
2 votes
3 answers
1k views

Any point in running containers as non-root on openshift

The openshift documentation reads : To further protect RHCOS systems in OpenShift Container Platform clusters, most containers, except those managing or monitoring the host system itself, should run ...
bryan hunt's user avatar
0 votes
2 answers
97 views

Bash-script: run another script on bottom as an other user

I have a bash script that runs over crontab as root. On the bottom of that script I want to run another bash script as another user in a subshell (detached). How can I do that The normal command would ...
Omexlu's user avatar
  • 43
1 vote
0 answers
126 views

CentOS USER_CMD logs auditd

We are trying to start logging all executed commands by users (including root) on CentOS using auditd with type=USER_CMD, how we can do it? We already getting commands, starting with sudo, but not ...
Valeriy Soloninka's user avatar
0 votes
1 answer
47 views

Double call to root path "/" in a website

I'm checking my web page performance, but some strange reason it double calls to root path. Any idea why this is happening? Thank you.
Mauricio Reyes's user avatar
1 vote
1 answer
3k views

Permission denied var/run/nginx.pid

I get the following error: Permission denied var/run/nginx.pid Inside my nginx docker container the problem is the user running is unprivileged user with a random userid (forced by my company ...
aldokkani's user avatar
  • 121
0 votes
2 answers
34 views

Running newusers util in cron to batch create users does not run [duplicate]

I'm attempting to batch create some users from a file using the newusers util on ubuntu 18. When running in cron as the root user, nothing happens. When I run the command manually, it works as ...
kurupt89's user avatar
  • 117
3 votes
0 answers
706 views

sshd on Fedora: Recent changes to UsePAM break existing security; PermitRootPassword & UsePAM no not honored, minimal PAM config doesn't work either

I did upgrade on a Fedora Server and was SHOCKED to discover thousands of root attacks on my publicly facing servers and I can't seem to figure out how to stop them! To be clear; It IS possible to log ...
Richard T's user avatar
  • 1,212
0 votes
2 answers
1k views

How to run zabbix agent as root in Ubuntu 14.04?

We have some legacy servers which runs on ubuntu 14.04 and we need to execute zabbix-agentd as root for getting some performance information. zabbix-agentd version = 5.0 I've followed this guide but ...
Juan-Kabbali's user avatar
1 vote
2 answers
2k views

Instance does not have a volume attached at root

I recently started trying out EC2 servers and came across an issue when trying to get an instance back up from a snapshot (which is another odd issue I had, because you can't change root snapshots in ...
Tim's user avatar
  • 13
1 vote
2 answers
378 views

root user terminal slower than non-root in Debian GNU/Linux 10 (buster)

I have to quantify slow here. It is noticeably slow, but not extreme. Here is a test I did. I pasted the below (time in nanoseconds command) on terminal as a non-root user and then as root user (I ...
Senthil's user avatar
  • 21
1 vote
1 answer
2k views

Running script as user with root permissions

Due to conflicting and constantly changing permissions on mounted drives (which cannot easily be solved due to the development structure of programs), there is a script that must be run with root ...
Mark Deven's user avatar
-1 votes
1 answer
807 views

mysql --innodb_file_per_table

I have a simple question regarding access to mysql via command. When I tried to access it as a root it bounce back a message: mysql: unknown option '--innodb_file_per_table' How would it get it back ...
kantor's user avatar
  • 9
-1 votes
1 answer
42 views

Resetting lost root-pwd on CentOS 8 just don't work

i just don't know. I have reset lost root-pwds on Linux boxes maybe 5 times a year in the 30 years experience as IT-Admin, but this time i#m just confused. I just don't manage to login on my CentOS ...
Chris9834's user avatar
  • 151
0 votes
1 answer
2k views

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/ ...
masterpiece's user avatar
0 votes
1 answer
223 views

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 ...
Codemonkey's user avatar
  • 1,056
1 vote
1 answer
344 views

How secure is a "root" password that's 26 alphanumeric characters long?

I was playing around with a DigitalOcean droplet. Linux Ubuntu 18.04. I had a root password about 8 alphanumeric characters long. Port 22. It would take about 3 days for hackers with Chinese IP ...
thanks_in_advance's user avatar
0 votes
1 answer
501 views

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 ...
sunknudsen's user avatar
0 votes
0 answers
249 views

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 ...
Niels Segers's user avatar
2 votes
1 answer
3k views

PermitRootLogin yes seems not to be working [closed]

I need to SFTP with my IDE, that's why I set PermitRootLogin yes in sshd_config file. But it's not working I still need to sudo after logging in with password. Here is my full settings file content: ...
realplay's user avatar
  • 121
0 votes
1 answer
354 views

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 ...
Craig's user avatar
  • 135

1
2 3 4 5
11