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
17 views

CentOS 7 - root password works only once

I have a very strange issue here. My root password works only once, and as soon as I log out, it ceases to function. Subsequent attempts to log in come back as ‘login incorrect’. I have to drop back ...
-1
votes
0answers
10 views

How to generate stale jar [closed]

I have some jar files mounted on a file system(say /f1). For some of my tests, I want to generate the jar file stale. My linux version is-Enterprise Linux Enterprise Linux Server release 5.8 ...
-3
votes
1answer
32 views

SSH with user root from 2 different stations both running passwd [on hold]

A few days ago, we were connected to a xenserver through ssh (user root) from 2 different stations. And we tried passwd, and we changed the root password to 2 different passwords simultanously. And we ...
-2
votes
0answers
82 views

www.webmin.com is offline. What to do now? [closed]

I want to install webmin using this tutorial but www.webmin.com seems to be offline. Cause webmin is offline I can not execute this command: wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo ...
0
votes
0answers
83 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
22 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
3answers
70 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
35 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
1answer
37 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
42 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
39 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
48 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
36 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 ...
-1
votes
2answers
52 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: ...
0
votes
1answer
141 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 ...
-1
votes
1answer
28 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 ...
0
votes
1answer
51 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
53 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
81 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
1answer
93 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 ...
3
votes
1answer
784 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" >> ...
2
votes
0answers
141 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 ...
0
votes
1answer
244 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 ...
0
votes
1answer
125 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
43 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 ...
1
vote
2answers
102 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?
1
vote
1answer
187 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]$ ...
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 ...
-1
votes
2answers
155 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 ...
2
votes
4answers
67 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 ...
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 ...
0
votes
1answer
139 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 * * * ...
0
votes
1answer
166 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
1answer
84 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
0answers
64 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
74 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 ...
0
votes
4answers
216 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
683 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: ...
4
votes
1answer
5k views

Ansible ssh as user and execute has root (expect like)

I have to administer an important number of hosts where there is only one user able to access from SSH (let's call him foo) and then have to login as root to execute privilegied commands. Foo user ...
0
votes
0answers
358 views

EC2 instance with partitions for /boot as ext4 and root / as lvm possible?

I've been playing about with this for a few days now. I haven't managed to find an example of someone running an EC2 instance with the root volume partitioned to have /boot on ext4 (or 3 or 2) and ...
0
votes
0answers
45 views

UserDir is disabled yet server still responds differently to /~root

Using CentOS 6.5 I am trying to completely disable User Dir functionality so that /~ will not work at all. My httpd.config UserDir disabled and #UserDir public_html And also commented out ...
-1
votes
1answer
74 views

chowned root directory recursive [duplicate]

accidently I did "chown -R www-data:www-data /" (I wanted to chown current directory). Is the only good way now to set the system up again from beginning? waaaah -.- Thanks
-2
votes
1answer
365 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 ...
4
votes
0answers
409 views

Kerberos, .k5login and sudo

Background: I am using a Debian 7 system which I have integrated with an LDAP+Kerberos system using libnss-ldap, libpam-krb5 and nscd. I have modified sudoers to permit an LDAP group the right to sudo ...
0
votes
1answer
312 views

unable to open KVM when trying to VNC

I am trying to open a KVM session after connecting to the remote host through VNC Scenario: Server: 192.184.148.52 having a VNC server running at 192.184.148.52:2 with XYZ username and has a KVM ...
-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
3answers
145 views

What's the best way to mitigate NFS and sudo?

Quick background: We have 40 workstations running Linux. NFS is used extensively for bulk data storage and home directories. This allows users to roam freely will relatively transparent file ...
0
votes
1answer
504 views

Setting enviromental variables for login shells under root account in FreeBSD

I am currently in the process of configuring Open Grid Scheduler in FreeBSD. As part of this process I need to set the environmental variableSGE_ROOTas root. To do this I have been experimenting with ...
2
votes
1answer
2k views

How do I “sudo -i” specific command

I need to run important_script.sh as with sudo -i without password. If I have in sudoers: apache ALL = (root) NOPASSWD: /blah/important_script.sh and run "sudo /blah/important_script.sh" I can ...