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
1answer
39 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
26 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
21 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
23 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
162 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
78 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
49 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
16 views

/dev/mapper/vg-root is eating all my hdd space [duplicate]

# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 16G 0 16G 0% /dev tmpfs 16G 0 16G 0% /dev/shm tmpfs 16G 202M 16G ...
0
votes
0answers
53 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
38 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 ...
0
votes
1answer
636 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
88 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
59 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? ...
0
votes
0answers
19 views

How is the signature of an email S/MIME certificate verified?

To my knowledge, the signature of an SSL certificate is verified by the public keys of root certificates that are installed in the browser certificate storage. How are signatures of the S/MIME ...
3
votes
1answer
400 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
82 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
291 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
147 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 ...
0
votes
0answers
17 views

Install java webapp as root of apache/mod-jk server

I successfully configure apache with mod-jk on my server, and now I can deploy a war file to my tomcat webapps directory, and access it with: https://my-domain/app. my vhost config is this: ...
1
vote
1answer
40 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
87 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
63 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
480 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
70 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
vote
1answer
41 views

Is this user root or not

I see the following in /var/log/auth.log (system is current Ubuntu). myserver su[14993]: illegal option minimum_uid=1000 myserver su[14993]: Successful su for jeanbon by root myserver su[14993]: + ???...
0
votes
1answer
64 views

Root password stopped working after upgrade - Ubuntu

I have an old development server I'm reviving. I'm a medium weak user - I can generally make things work, but it's been a few years and I'm pretty rusty. Everything is working mostly - I'm using xfce ...
0
votes
0answers
91 views

Postfix adding (root) after Sender Address Bounced Email

Postfix adds (root) after sender email address so it bounces. How do I remove the (root) after the email address? I'm using generic mapping and (root) is not part of the email address in the file. I ...
0
votes
1answer
44 views

root user on Ubuntu 16.04

I created a new user on my server, with: useradd newuser Then tried to set the login shell and group for the user afterwards, but seems I did something wrong. Now when I try to switch to root user I ...
-1
votes
3answers
125 views

Change WordPress root directory in nginx

I have a website that address is site.com and also a WordPress that is site.com/blog. I would change the WordPress root directory in the nginx. here is my config: server { listen 80 ...
0
votes
0answers
43 views

redirecting domain to subfolder with .htaccess

I'm new to using and changing the workings of a server and all that. So far I've only had one server with one domain for myself, but now a business is getting some traction and I want to use a ...
0
votes
1answer
64 views

Difference Between Running as root or a Service Account With a sudoers file entry

I have an evolution of an Earlier Question. Main Question: What are the meaningful differences between running a program as root, vs. via service account with a sudoers file entry? I have to deploy ...
29
votes
2answers
5k views

Why is the maximum length of OpenWrt’s root password 8 characters?

When I try to set root's password: root@OpenWrt:~# passwd Changing password for root Enter the new password (minimum of 5, maximum of 8 characters) Please use a combination of upper and lower case ...
2
votes
1answer
27 views

Dialogs still ask for user password (instead of root's) after adding rootpw to sudoers file

To add an extra layer of security I'm using the rootpw option in the sudoers file and while it works perfectly fine from the shell, when a specific command invokes the GUI version of "elevation", only ...
0
votes
0answers
41 views

Using root User

I installed WordPress with LEMP on Ubuntu 18.04. I'm using root account. So using root user can create security issues for LEMP? Should I restore my instance and install again with different user?
0
votes
0answers
89 views

Changing User - Ubuntu 18.04 LTS

I installed mariadb, nginx, php7.2-fpm, ufw, fail2ban, zip and unzip as a root in the past. My site is WordPress. Now I have added an user with root privilages into my server. I won't use root user ...
1
vote
1answer
105 views

Can the Megaraid 2208 mirrored root disks be hot swapped?

I've inherited a Supermicro SMC2208 RAID. The root drive (on which the OS is installed) is two RAID1 mirrored Intel SSDSC2CW240A3 240GB drives ... one of which is reporting as bad. Controller ID: 0 ...
1
vote
1answer
651 views

'ALL=(ALL) NOPASSWD: ALL' not working

restricting root ssh access works perfect in centos 6 but using the same method fails on centos 7. what are we doing wrong? an interesting point is that in our centos 6s we have stated that only our ...
-1
votes
1answer
191 views

Can't login after installing with, playing with, and uninstalling zsh

The really bad news here (I think) is that I use the root account to log in to my Centos 7 box. The other day I saw an article about zsh, and installed it out of curiosity. Today I decided it's ...
-5
votes
2answers
2k views

Disable root servers in bind [closed]

I installed a simple bind server on fedora 28. By default dns-queries for which it has no answers are sent to the root servers. However I want them to go to the openDNS servers. I have removed the ...
0
votes
1answer
205 views

Unable to login to Suse 12 SP1 vnc server as root, works as normal user

I have a Suse 12 SP1 server. I'm not able to login to the vnc service as root, however it works as a normal user. Log entries below are from root attempt. Timestamp and server name removed for brevity....
0
votes
1answer
824 views

Is it a good idea to put shared files outside public_html / root?

I just figured out that I can place files outside the domain root (outside public_html). The benefit of placing functions outside the domain root is that I can use the same file on multiple domains. ...
0
votes
3answers
146 views

Locked out of RedHat Server

I'm since a few years a Linux Admin and I know that I can change the password of root when I reboot the system with a live system and mount the / or /etc (depends on the directory distribution). I ...
0
votes
2answers
76 views

Running single web app in server - why not using root?

I have one cloud server to host only one website (django + gunicorn + nginx), postgres database will be deployed to another cloud server. In this case should I create special user for my website? ...
0
votes
1answer
522 views

MySQL root problems (using mysqlworkbench accidently revoked root's access)

please help!... I am facing a huge problem..i had access to mysql database through MySQL workbench but one of my coworkers accidentally went on to users and privileges and revoked something for ...
0
votes
2answers
1k views

Bind a tcp socket below 1000 with a non root user using Systemd, java and Ubuntu 16.04

I wanted to try socket activation with Systemd and Java on my ubuntu server 16.04. My idea is to make my program able to open directly a standard socket number with a user that is not root. I ...
1
vote
1answer
516 views

exim4 sending mail to root alias as bcc instead of to address?

I'm trying to configure exim4 to send all e-mail to my Gmail account (including e-mails to root). It's almost working, but my Gmail address is in the BCC field of the TO field. Here is a command I ...
0
votes
1answer
1k views

Sudo not working. How to reset root password Ec2 (AWS)

I installed a SSL certificated the day before. Today I wanted to log in to the server. When I try to "sudo" it gives me the following error message: sudo: unable to stat /etc/sudoers: No such file or ...
2
votes
3answers
925 views

How to create superuser in CentOS 7

I am very new to Linux OS (i've started with CentOS 7), so i was wondering if it's possible to create some sort of super user who will have same privileges as root. By that i mean ability to write + ...

1
2 3 4 5
10