Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [root]

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

-1
votes
1answer
24 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
73 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
17 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
32 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
65 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
0answers
20 views

Is disabling root user in linux really necessary, if password logins are disabled, and only SSH is used? [duplicate]

The title of my question is actually the whole question itself. Someone has asked a very similar one, but the answers do not help me, so let me elaborate a bit: Doesn't an SSH-only scenario play out ...
0
votes
2answers
32 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
0answers
80 views

Ubuntu - Root Installation Path for NPM Not Working EC2

I am running an Ubuntu server on my AWS EC2 instance and by default Amazon has me login with a non-root user (ubuntu) to operate in the server. This makes sense for security purposes and I am able to ...
0
votes
1answer
106 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
247 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 ...
0
votes
1answer
123 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
220 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
391 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 + ...
0
votes
0answers
45 views

Hop SSH servers with same key and escalate to root then query mysql and export results

Ideally, I would like to use a some sort of GUI to perform MySQL queries and be able to export results to the host computer. I need my host to ssh into a jump server, then ssh to another server, ...
0
votes
0answers
159 views

How to allow standard, non-admin, Active Directory users access to Docker without making them sudoers?

I have a compute server with users that authenticate over AD. I want these users to be able to use Docker without making them sudoers. The official advice is to add users to the docker group, as "[w]...
0
votes
0answers
26 views

SSH login are disabled after chmod 444 -R myfolder / [duplicate]

I have accidently ran chmod 444 -R myfoler /. Because of a space it changed root dir permission , I have immediately stopped but now all my login are disabled except root. Please need help asap. ...
1
vote
0answers
200 views

vsftp ignoring local_root and goes to home dir instead

I have setup vsftp multiple times with these settings without ever having a problem. But I recently got a new server which for some reason seems to ignore local_root. I have a user that if logged into ...
1
vote
2answers
542 views

Why are emails sent to root redirected to nobody?

$ uname -a Linux xxxx 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux $ cat /etc/aliases # See man 5 aliases for format postmaster: root root: root@xxxx.xxxx email ...
0
votes
0answers
36 views

Is it bad practice to have empty root password even if SSH key authentication is enforced?

I have a personal, private VPS with two users, an unprivileged user and root. The only way to access the server is by SSH, and key authentication is enforced. Would it be a bad thing if I removed the ...
0
votes
0answers
20 views

Can a removed PV from a LV mirror leg (from root) be used to clone the system it came from?

I asked this question in askubuntu.com and thought serverfault would be a better place to ask the question. So here it is: If I unplug dev/sde1 (see image of setup) -- one of my PV that holds one of ...
0
votes
1answer
117 views

Can someone get root privileges with an ansible installation?

A UNIX engineer of my hosting provider told me that having Ansible installed on a server is problematic, because one can get root privileges from it. Edited side note: Ansible is actually installed ...
0
votes
1answer
264 views

allow all users to execute a bash script as root

i want that my all users can run a bash script. But this bash script need to have root right, i want that this script is in read only and run with root right my bash script : #!/bin/bash /sbin/...
0
votes
0answers
28 views

Is it possible to use Active Directory to authenticate root account on Redhat?

I'm working on joining some Redhat (6.8) boxes to a Windows Active Domain (Server 2016) using Kerberos as per Redhat publications. Things are looking good and working, but something we are having an ...
0
votes
1answer
521 views

Login into an EC2 instance as root user

I am trying to run the following ansible playbook against an AWS EC2 instance. I need to run that script as root user in order to access the docker engine. I dynamically populate the builders hosts ...
2
votes
1answer
50 views

debian/exim4: eading local mail with the mail command as root

I am using a network-less LXC container with a small debian stretch setup, which contains exim4 and probably, nothing more from mail related programs. I am able to send mails to the root user and I ...
0
votes
1answer
42 views

login aws ec2 after setting up root passwd

I set the password for ec2 but after I log out I cannot log back in with my pem file. sudo su passwd ... ➜ ssh -i /Users/shawn/.ssh/shawn.pem ubuntu@ec2-13-56-168-110.us-west- 1.compute.amazonaws....
2
votes
1answer
282 views

Disabling logging in as root via kickstart? Advice recommendations?

This is a two part question. Firstly, I am just looking to validation, if I am doing this correctly since I am not sure how to test this. The goal is to disallow the login of the root account and have ...
0
votes
0answers
955 views

su: cannot set groups: Operation not permitted

I'm trying to get root access for a user who is initially logged in from a console. I have root access from another method. User does not have a username, so sudo is not an option. Running su returns ...
0
votes
0answers
28 views

CentOS 6 deleting files from /root/ after a reboot? [duplicate]

Twice recently I've noticed that my vim settings have changed to defaults. Investigation shows that all files have been deleted from my /root/ directory. (Yes I currently log in as root, that's a ...
0
votes
1answer
41 views

Debian - limiting access for not-fully-trusted admin users

I'm small company owner, currently managing about 15 Debian based boxes, providing VoIP and hosted PBX services Company is growing, I have less time to manage all of that machines I'd like to hire ...
0
votes
0answers
28 views

Configure job to utilize multiple nodes on faulty pbs setup without superuser

The cluster is using a Torque setup. Submitting jobs gives me the error mpdboot_master.cluster (handle_mpd_output 401): failed to connect to mpd on master.cluster Direct ssh into one of the few ...
0
votes
1answer
513 views

Google Authenticator PAM on SSH blocks root login without 2FA

Situation: I have activated Google Authenticator 2FA for SSH logins on Ubuntu 16.04 but made it optional in the /etc/pam.d/sshd: auth required pam_google_authenticator.so nullok I have setup the ...
0
votes
1answer
457 views

nginx is refusing connection after root password change

This is so strange. I am using digital ocean with serverpilot . I changed root password of the server and the site is down. root@niche-hunter:/# sudo service nginx-sp restart Job for nginx-sp.service ...
0
votes
3answers
639 views

nginx config multiple root doesn't work

According to the config, site.com should open html/web/index.php by default, however site.com/ticket should open html/ticket/index.php. Both ticket and web folders located in html. server { ...
2
votes
1answer
223 views

Why would I need root access?

I'm not a backend guy, so please forgive such a simple question. I'm considering a php management service like Cloudways, because I'd like dedicated droplets, but without the manual setup. However, ...
1
vote
0answers
42 views

LDAP and User root/sudo on local netboot ubuntu/debian machine

I'd like to create a debian/ubuntu pxe netboot image authenticating against ldap but I want give the user the power to install software on his local machine. In Windows I simply add a local admin ...
1
vote
2answers
185 views

Mail when root logs in but not from local host

I followed these instructions How to Get Root and User SSH Login Email Alerts You have to add this code to .bashrc `echo 'ALERT - Root Shell Access (ServerName) on:' `date` `who` | mail -s "Alert: ...
0
votes
1answer
290 views

setting up root password in aws linux instance

we have setup the aws linux instances with ssh keys. Ubuntu user can be login with ssh key , sudo su - getting into root user without prompt password and set the password for root even though not ...
2
votes
1answer
880 views

“user is not in the sudoers file” despite user belonging to group wheel

I've added a new user to the group wheel. I can ssh into the machine with this user and password and confirm that it belongs to that group: [newuser@xxx.xxx ~]$ groups newuser wheel But still, if I ...
0
votes
1answer
1k views

Permission denied to mkdir in /mnt

i am trying to mkdir inside /mnt/logs/ in order to mount an NFS mountpoint. But i am getting: mkdir: cannot create directory `/mnt/logs/server2': Permission denied /mnt/logs/ is full of other NFS ...
0
votes
3answers
1k views

Log in to SSH without home directory Synology

I need a knight in shining armour.. go internet! I have a failed volume on my Synology NAS. In DSM6 they have 'removed' the root user. - the only user which doesn't have a home dir. To recover, we ...
1
vote
2answers
80 views

Permanent way to execurte a command for root on system startup in Mac OS

On Mac OS my CI server's build agent runs as root. I have messed with the ruby version on by defaul ruby -v reports version 2.0, while after eval "$(rbenv init -)" is being executed, I get a desired 2....
2
votes
1answer
82 views

Any downsides of starting a SSH connection as root?

I'm aware that allowing root access to a server over SSH is a bad idea (i.e. allowing login as root over SSH). But how about the other end of the equation? Are there any downsides of initiating a SSH ...
0
votes
1answer
243 views

User root dissapear [duplicate]

I have a debian 8 box. It is a plesk server with 90+ websites. It seems somebody access to my server and delete the user root. I go to /etc/passwd and the file is not owned by root:root is owned by ...
0
votes
1answer
36 views

Keep Root Account Audit Trail

I am the owner of a company. I want to keep an audit trail of our Unix administrator who has root access to the CentOS system. How can I configure it such that the audit trail cannot be bypassed and ...
18
votes
5answers
3k views

Remote Linux Admin Consultant - Best Practice [closed]

We are engaging a consultant in India as our Linux Administrator. We don't know him well and he requires Root access to all our servers to do his job (including a security audit). What is the best ...
1
vote
1answer
68 views

make shutdown / reboot warn on a shared server in case of user sessions or high load

Is there an easy way to warn an admin on shutdown, reboot, poweroff, halt, ... about: ongoing computations (high load, high disk io) open bash / zsh / ... terminal sessions other logged in users ...
0
votes
0answers
75 views

I can not login with the root user's credentials

I have a server deployed with CentOS 6.8. This morning, without anyone on my team touching anything, we not have access to server with the credentials of the root user (this server is private and ...
2
votes
1answer
1k views

can't login as root on a remote Redhat Server

I am currently working on a remote RedHat server(RHEL version 6.7 x86_64). I can login as a user by using userID and password which is provided by the server administrator. But when I try to login as ...
0
votes
1answer
57 views

Oracle Linux virtual machine's root size is not getting increased

Size of root was 100% in OEL 7 virtual machine in ESXi, so I have used Gpated iso to resize the root space. After booting OEL 7 df -h still showing as 100% used i.e. still showing old size.