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

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 -u 0 -g 0 -N -d /root/ -M root2 it works but…
0
votes
1 answer

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 to disable root access to the VPS, via SSH, prior…
Craig
  • 145
  • 1
  • 1
  • 6
0
votes
0 answers

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 kmod_search_moddep() could not open moddep file…
fauve
  • 101
  • 1
0
votes
1 answer

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' // version 1 exec("runuser -u www-data -- ls"); // error ->…
holden321
  • 107
  • 1
  • 4
0
votes
1 answer

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 location block and below it I will explain the…
Aebian
  • 23
  • 6
0
votes
1 answer

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, even for root. A Read-only state is usually fixed by…
0
votes
0 answers

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 produces a permission denied…
alancc
  • 141
  • 12
0
votes
2 answers

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:~# ssh user@remote "compromised_executable" I'm…
morrow
  • 11
0
votes
0 answers

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/somedir: permission denied ~$ sudo mkdir…
TheEagle
  • 101
  • 3
0
votes
1 answer

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 than prompting for a password? I'm wondering if I'm…
dmgeurts
  • 13
  • 4
0
votes
2 answers

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 ridiculous easy to crack, all you need is physical…
Whois_me
  • 3
  • 4
0
votes
2 answers

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 be /bin/bash /path/myscript.sh Thanks in…
Omexlu
  • 43
  • 1
  • 9
0
votes
1 answer

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.
0
votes
2 answers

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

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 expected and creates the users in the file. Heres my…
kurupt89
  • 117
  • 4
0
votes
2 answers

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 it doesn't work because of the step systemctl…
Juan-Kabbali
  • 111
  • 7