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

learn more… | top users | synonyms

0
votes
0answers
59 views

Why can't my root user log in to ssh anymore?

I recently add a new system user and now my root user can no longer log in via ssh. My /etc/ssh/sshd_config is below. cat /etc/ssh/sshd_config # Package generated configuration file # See the ...
0
votes
0answers
16 views

Centos - Extend root partition size on rescue mode

I was wondering what is the best way (and what are the command lines) to extend the root partition size on a rescue mode system, without losing data already in it. My server is running on CentOS 6.6 ...
0
votes
1answer
1k views

NFS Share with root for anonuid / anongid

I've exported a share from my server and set anonuid and anongid to be 0 (root). However, when I mount the share on the client, it doesn't appear my settings are working as I'm getting permission ...
7
votes
4answers
17k views

Why (or how) does the number of open file descriptors in use by root exceed ulimit -n?

Our server recently ran out of file descriptors, and in regards to that I have some questions. ulimit -n is supposed to give me the maximum number of open file descriptors. That number is 1024. I ...
2
votes
5answers
9k views

MySQL root problems (access denied for root user)

I've having some very weird issues with my MySQL (5.5) root user. I'm trying to allow an external host to access the root user, but it seems as though my root@localhost does not have "GRANT OPTION" to ...
0
votes
3answers
64 views

How to disable root-login completely

I have server at OVH that suddenly went offline around 12:10 PM. According to my logs the hacker came in with the root-user. Which means that he probably had my password. I already changed this ...
0
votes
1answer
27 views

Root cannot access a directory - access denied

Under Linux (Ubuntu 14LTS), I'm trying to access an encrypted local directory created by a regular user (encfs) as root, but I get access denied: root@toad:/home/robert# cd inbox bash: cd: inbox: ...
0
votes
4answers
207 views

Security policy: servers without root/administrator password

I am considering running public web and application servers with blank root/Administrator passwords, and I'm wondering whether this might be a bad policy. I see several advantages of having no ...
0
votes
1answer
30 views

Amazon EC2 Centos instance needs sudo password after update

I've got a terrible problem on a running webserver. It's a webserver running on CentOS, one of the default Amazon EC2 AMI's (images). I've been able to ssh to the server and do my thing until now. ...
0
votes
1answer
37 views

How to fix sudo file on EC2

I managed to save my sudoers file with a syntax error so now I can't do sudo -i any more on my EC2 instance. This effectively locks me out of root account since the only way to get root access on EC2 ...
0
votes
1answer
36 views

how do you secure mysql without a server root password?

I'm currently trying to install mySQL server on a centos6.5 server. I do not have a root password because i use a SSH Key Pair to access the server. During the installation process the prompt says: ...
2
votes
1answer
46 views

How to log administrator activities in Red Hat Enterprise? [closed]

Is it better to use auditd or sudo logs to log root and other user activities on a Red hat enterprise machine?
1
vote
1answer
32 views

Using Unison / rsync over SSH to synchronize sites where full file system access is required yet root login is disabled

Assume two sites A and B with file server at either end. The contents of /storage should be synchronized between the sites, preserving ownership and permissions. There's no all encompassing group that ...
6
votes
2answers
4k views

What is the difference between `su` and `su -` in CentOS?

I tried to switch to 'root' in CentOS by running su. It does change to 'root', but it doesn't seem to be a real 'root' user. For example, by default, ifconfig command in /sbin is not found in the ...
-1
votes
2answers
50 views

How do I remove my user from the “roots” group? [closed]

I accidentally added my user myuser to the group root using the command sudo usermod -a -G root myuser. Now I want to remove myuser from roots, but I am unable to do so. I tried the following: ...
3
votes
4answers
6k views

How Ubuntu cloud version enforces the “no root login” over ssh?

I'm looking to tweak ubuntu cloud version default setup where is denies root login. Attempting to connect to such machine yields: maxim@maxim-desktop:~/workspace/integration/deployengine$ ssh ...
4
votes
2answers
2k views

Denied root access to user mounted FUSE file system

Let me start with giving you the details of my setup: I am running Fedora 13 on an x86_64 arch. I have mounted a remote directory using sshfs: jim@localsite $ sshfs jim@remotesite:/home/jim ...
0
votes
1answer
103 views

Using docker without root rights but restricted sudo

I just started a new job and directly got problems with the guys operating our server farms (company is quite big). I was used to use docker and would like to keep that going with the products I am ...
15
votes
5answers
12k views

Bash Scripting: Require script to be run as root (or with sudo)

I'm trying to write a bash script (in Ubuntu) that will backup a directory using tar. How can I do a check in the script so that it can only be run as root (or with sudo)? For instance, if a user ...
1
vote
1answer
172 views

I am able to login to my server using WHM but when I SSH to a wheel group account I am unable to su to root [closed]

I have been having a problem over the last week or so executing an su - from a wheel group user account. I can log into WHM with the root password, but when I su - I get: [xxxxx@server public_html]$ ...
-1
votes
1answer
25 views

Running Rails Application as root user on nginx [closed]

My application(running on nginx) is unable to ssh into a remote machine, reason being that the client has has given ssh rights only to the root user on their server. While debugging this issue, I ran ...
22
votes
4answers
5k views

vim re-edit as root

I often open a file in vim, make some changes and when it's time to save the file is read-only.. (owned by another user). I'm looking for tips on how I could re-open the file as root and keep my ...
0
votes
1answer
49 views

Unable to log in to MySQL [closed]

I am trying to connect to MySQL through the command prompt. But I always get "access is denied for 'admin'@'localhost' user." (Error 1045). This MySQL is running on Windows 2012 R2 server. There I ...
1
vote
1answer
50 views

Is using su to drop root in shell scripts a security risk?

When searching for how to drop root permissions in shell scripts, I often see answers using su. However, when you're done using su you can just type logout and be back at the shell of the original ...
0
votes
1answer
71 views

ssh unable to login as root

I am unable to login as root via ssh. i have also set the password usin sudo passwd and sudo passwd root no luck. Any recomendations on how to solve this issue? # Package generated configuration file ...
0
votes
4answers
300 views

Obtaining root access to linux machines [duplicate]

Possible Duplicate: Lost Root and other user passwords I have a number of linux machines (debian and ubuntu) left from a former system administrator. There's no way to find out root ...
0
votes
1answer
74 views

Forgot user password and disabled root ssh signin Ubuntu 14.04 server

First I need to say that I'm not pro Linux admin but web master trying to configure server. Though I am learning. I disabled root ssh login in sake of security and then I forgot to save user account ...
104
votes
23answers
10k views

How do you make it obvious you are on a production system?

A few of us at my company have root access on production servers. We are looking for a good way to make it exceedingly clear when we have ssh'd in. A few ideas we have had are: Bright red prompt ...
2
votes
0answers
136 views

Reset root shell back to /bin/bash in suse 11

In my production server which is running SUse 11 SP1, the root shell is set to /bin/eksh. Not sure how come it is set to this..we are using /bin/bash as root's default shell. I tried to reset it like ...
3
votes
1answer
640 views

Cron job as root need to sudo to another user [duplicate]

RHEL6 In root's crontab a have: * 21 * * * /root/script.sh In script.sh there is a line: /usr/bin/sudo -u jira bash -c 'cd /opt/jira/bin; ./stop-jira.sh' && echo "Jira Shut Down" >> ...
11
votes
3answers
2k views

What's the best solution to manage root password of thousands servers

I'm a system administrator. In the production environment I need to manage thousands of servers. My colleagues and I uses a central manage server and distribute its public key through other servers. ...
0
votes
1answer
221 views

rm: cannot remove - Permission denied

Anyone have any idea why I can't remove these? ~# find /var/lib/php5/ -xdev -depth -type f -size 0 -exec ls -al {} \; -exec lsattr {} \; -exec rm -rf {} \; -rwxrwxrwx 1 root root 0 Jan 23 05:20 ...
6
votes
0answers
680 views

PostgreSQL: Living without root [closed]

This is not a question with a concrete answer, I know, but one that seeks experienced views... The OS environment I run is as vanilla as possible so it's often undesirable to install things into root ...
0
votes
1answer
112 views

root accepts any password : how to change to a real password?

I have an old Linux system which can be accessed via a public IP address. When you connect to the SSH port you can login as root with any password. The only restriction is that the password needs to ...
0
votes
1answer
36 views

How do I find out when a MySQL root password was last changed?

I have looked for solutions to this. I am able to change it, but I need to find out when it was last done and preferably also seeing who was logged in when it was done. Need proof for a security ...
-2
votes
2answers
3k views

Set up Ubuntu FTP with root access to whole server

I've been trying to set up Ubuntu 12.10 with FTP to give the A user access to read/write any file on the server. I understand some people discourage root access for this, but at this stage I am more ...
1
vote
2answers
98 views

Should I sudo as root or use a public key [duplicate]

I have read a few times to disable root login and sudo as root using another user. But is using a public key as good if not better security?
7
votes
4answers
6k views

Ubuntu - can non-root user run process in chroot jail?

Is it possible for a non-root user to run a chroot process on Ubuntu?
0
votes
1answer
81 views

Monitor root commands issued by users

I tried to log the commands issued by the system administrators in our organization and its output using sudo plus the log_output directive as follows on the visudo file Defaults env_reset ...
2
votes
4answers
66 views

Changing the root password

What are the implications of changing the root password? Is there anything that will be affected? I'm using a private shared SSH key - I assume I do not need to change this as it is not tied to the ...
-1
votes
2answers
143 views

How to allow all clients access to remote MySQL server? [closed]

So I followed this guide to gain remote access to a MySQL server for my laptop. However, my IP changes and I want to be able to access the server outside my network. How can I allow any client IP ...
3
votes
1answer
2k views

Changing non-root user passwords from root (if you don't know the old password?) [closed]

Hey, so I created a user, and he has been sshing in and doing a lot of stuff, but he forgot his password - is there any way for me to change his password without knowing it?
0
votes
3answers
8k views

Root only has read permission for /etc/ssh/sshd_config?

I'm trying to edit my /etc/ssh/sshd_config file as per these instructions to properly set up git on my Synology NAS: http://www.wonko.de/2010/04/set-up-git-on-synology-nas.html (step 6) However, when ...
0
votes
3answers
2k views

root + crontab : permission denied [duplicate]

I'm using Debian 6, all patched up, but when I try to access crontab as root, I just get a permission denied: root@server:~# crontab -e -bash: /usr/bin/crontab: Permission denied Please note this ...
1
vote
5answers
4k views

Can't login using ssh as root

I am trying to virtualize an old linux server, and the PtoV software requires a password login as root via ssh. However, the root login is being prevented with a "Permission Denied" error on the ...
12
votes
11answers
10k views

Best way to go about changing a root password on 3000+ Solaris, AIX, and Linux servers?

Long story short: Big old corporation, lots of UNIX/Linux servers. I inherited responsibility for a bunch of scripts that that left a few years ago. One of them was a script that would be run every ...
0
votes
1answer
78 views

Root overwrite permission to user

Our developers WinSCP/Putty and have a dev user on our web-server. The site directory they are working on is owned by apache, that restricts them to overwrite files through FTP/SFTP as dev. I have ...
0
votes
1answer
127 views

Automysqlbackup - dumped files have wrong permissions

This question has been askewd here. But it was not answered. I just got a 3rd server and on all 3 servers I use Automysqlbackup script to create MySQL backups. I do it with cronjob: 52 04 * * * ...
-2
votes
1answer
337 views

Why I am not able to ssh as root?

I am two servers A and B under the same firewall. I can login from server A to B using root account but I cannot login from B to A. My ssh keys are properly configured but I am not able to figure our ...
17
votes
8answers
6k views

Should we disable the root user?

Should we remove the root password, disable remote login and basically require adminstrators to use sudo to perform administrative actions?