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
1answer
29 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
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 ...
0
votes
1answer
33 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
38 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
18 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
42 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
48 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
136 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
18 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
43 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
46 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
59 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
65 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
9k 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
115 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
389 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
164 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
662 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
93 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
33 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
78 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
77 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
65 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
133 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
3k 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
9k 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
74 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
111 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
288 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
5k 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?
4
votes
8answers
1k views

protecting my files from root

In a remote box, my files are 700-chmoded, but I'm worried that root may be reading them. Is there a way to add another layer of protection to avoid that, perhaps by encrypting them, but allowing ...
0
votes
1answer
141 views

Single user mode boot stuck

I have an old Ubuntu box with an unknown root password. It boots fine in regular mode, but it gets stuck when booting to single user mode: For searchability, the last few lines are: Begin: Running ...
0
votes
0answers
54 views

.pgpass other system user as in file

i have a working script with a working .pgpass file. Now i want to run the script as root with the same(copy) .pgpass file. I copied the file in the $HOME directory from root. And changed permission ...
0
votes
1answer
62 views

How to distribute root files with expect?

I've recently learned how great expect is, now that I'm suddenly responsible for managing 150 VMs. I've been using it to distribute config files to remote servers, but there's got to be a better way ...
-1
votes
3answers
190 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 ...
41
votes
3answers
3k views

nice sudo or sudo nice?

is there any difference between running an intensive task over sudo with the following commands?: nice sudo [intensive command here] sudo nice [intensive command here] BTW this is for Linux 3.x.
1
vote
1answer
598 views

Extend root logical volume for VM with Oracle Linux of VMWare

Please make me sure did I wrong thing, or not. I'm resizing the root partition which is under the LVM. This server is a VMWare's virtual machine with Oracle Linux. I'm using this article: ...
0
votes
1answer
177 views

Why can a local root turn into any LDAP user?

I know this has been asked here before, but I am not satisfied with the answers and don't know if it's ok to revive and hijack an older question. We have workstations that authenticate users on an ...