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
1
vote
2answers
19 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 ...
0
votes
0answers
11 views

Samba Share skip directory levels

MY organization has setup the samba share and one of the share contains the backup of the files eg: /data/data@timestampdaily/orgname/prod/(directories to access) /data/data@timestamphourly/orgname/...
1
vote
0answers
23 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 ...
-2
votes
0answers
25 views

How to change user privileges from 'Y' to 'N' in MySQL Server? [migrated]

I want to change a privilege to my glpiuser from 'N' to 'Y'. In MySQL server, what is the command to do this task? Here's the image that display my users. I'm using Ubuntu 20.04.1
0
votes
0answers
9 views

Runuser Not Return Expected Results

There are two accounts in my linux computer, appuser and root. For testing purpose I wroto below code into /home/appuser/.profile export key=value then as root I execute below commands separately: 1....
0
votes
1answer
32 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.
-1
votes
1answer
34 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 ...
0
votes
2answers
19 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 ...
3
votes
0answers
90 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 ...
0
votes
2answers
86 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 ...
1
vote
2answers
68 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 ...
1
vote
2answers
65 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 ...
1
vote
1answer
141 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 ...
-1
votes
1answer
556 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 ...
-1
votes
1answer
24 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 ...
0
votes
1answer
401 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/ ...
0
votes
1answer
36 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 ...
1
vote
1answer
75 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 ...
0
votes
0answers
54 views

How can I ROBOCOPY from the root shared folder?

I have two mapped drives and I want to copy data from A to B. As the data is huge, I don't want to robocopy folder after folder, Is there any way where I can run the robocopy on the root folder? Or, ...
0
votes
1answer
76 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 ...
0
votes
0answers
52 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 ...
1
vote
1answer
211 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: ...
0
votes
0answers
12 views

OpenLDAP admin has insufficient access

I'm trying to implement my mail server with the LDAP Database, where I get the mail addresses from using this instruction https://www.vennedey.net/resources/2-LDAP-managed-mail-server-with-Postfix-and-...
0
votes
1answer
75 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 ...
1
vote
0answers
81 views

ZFS RAIDZ1 root on gentoo fails to boot after disk swap

I have a 3-disk RAIDZ1 array with 3 HDDs: # zpool status ... config: NAME STATE READ WRITE CKSUM gpool ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 ...
4
votes
3answers
677 views

How to intentionally cause ssh root connection refused

Simple, how do I make ssh (port 22) drop/refuse a connection if root@ip_address request is received, but still allow user@ip_address to work properly. Basically hide the fact there's a server at that ...
0
votes
0answers
81 views

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 ...
0
votes
1answer
358 views

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 ...
1
vote
1answer
125 views

How do I parse /* or */* to a bash shell script

I am trying to write a script that will let me get the arguments while running the script. I am able to do so with $@ in the script. But if I run the script with /* or */* it gives the list of all the ...
0
votes
1answer
25 views

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: ...
0
votes
1answer
171 views

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....
1
vote
3answers
1k views

I am getting access denied in Ubuntu terminal after sudo chmod 754 .. from /home. Do I have a brick now?

In effect, I changed the permissions of / to 754 The machine is 14.04 I cannot type any shell command as it says permission denied. -bash: /bin/ls: Permission denied I can't even use sudo to ...
0
votes
1answer
234 views

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 ...
0
votes
1answer
423 views

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 ??
1
vote
2answers
155 views

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

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

Why is SSH authentication failing when using the login password?

I am trying to login via ssh to a server with the root account (yes, I know, a bad idea; I'm just testing), but authentication keeps failing : Feb 21 09:26:38 myserver sshd[4481]: Failed password for ...
3
votes
1answer
16k views

Is PermitRootLogin=prohibit-password still necessary when PasswordAuthentication=no?

Our server cluster has remote root access enabled for rescue purposes, and we generally set PermitRootLogin prohibit-password in /etc/ssh/sshd_config because LDAP users can still login using password. ...
0
votes
1answer
138 views

How to create a “normal” Ubuntu user account on Ubuntu-Server 19.10

I've successfully installed Server 19.10.1, then got a desktop (Mate) going on a single Raspberry Pi 4 (4gb). I went with the 32-bit version, having heard the 64-bit is not very stable. (Please ...
0
votes
0answers
112 views

Attach root-user screen session as non-root user

I have a screen session that is started by root and I would like the non-root account (guest) be able to attach the root user's screen session in multi-user mode with screen -x. Is this possible? ...
3
votes
1answer
883 views

Why does CNAME for a root domain conflict with most other records? [duplicate]

As far as I understand, a CNAME record is served to retrieve only the A record of its destination. E.g.: www.example.com CNAME domain.com Here the DNS resolver will search for the A record (IP ...
0
votes
0answers
325 views

Can not su - root. su: incorrect password

I am trying to switch to root user using the su command. I am getting the following error $ su - root Password: su: incorrect password I checked the /var/log/messages and found the following: ...
1
vote
1answer
484 views

CentOS 7 move free space from home to root

I need to resize my CentOS 7 root on my mail server. I found this answer: https://serverfault.com/a/811124/213096 but I don't know if I can do it while server is running or do I have to stop it, run ...
0
votes
1answer
294 views

MySQL Can't set password requirement for root user? [duplicate]

I have just setup a new vps with Ubuntu 18, I did a fresh installation of mysql-server: sudo apt-get update sudo apt-get install mysql-server sudo mysql_secure_installation In this menu, I typed in ...
1
vote
1answer
53 views

How is server root defined in this context?

I asked a question over at Information Security and received an interesting response which in part included the following: move them off the server root So in the context of moving uploaded files "...
1
vote
1answer
154 views

Drop packets with iptables for ssh login by user root

Is it possible to have iptables DROP any packets with user "root" so that the SSH daemon doesn't even have to waste cycles denying the login attempt? I already deny root login attempts in my ...
-1
votes
1answer
64 views

Does it makes sense to permit only root to use ssh? [closed]

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

Root DNS servers report wrong NS

I have an issue with the last step of DNS delegation by the root servers. I have transferred a domain from registrar A to registrar B a couple of months back and forgot about it, until I had to ...
8
votes
1answer
1k views

Used PowerShell to change my RHEL root passwords via PuTTY, but I don't know what I changed my password to

Basically the title. My friend provided me a script to batch change RHEL passwords via Powershell and PuTTY, but the new password I entered doesn't work when I try to log in. I think the issue is that ...
0
votes
1answer
92 views

Run custom script as root user after completion of www-data user script

I have the following script to update the price, stocks and thereafter refresh the cache. File: /var/scripts/update-web.sh #!/bin/bash echo "$(date)" echo "\n" echo ======================= Updating ...

1
2 3 4 5
11