2
votes
3answers
85 views

Disabled root login for SSH in Centos 5.9, key login no longer working

I have a Centos 5.9 server which I have previously configured to access via SSH key login and this has been working fine for many months. I recently had to have an issue resolved remotely which ...
0
votes
0answers
63 views

Pam password policy not working for root

I was following this guide (http://xmodulo.com/2013/12/set-password-policy-linux.html) for setting up pam and password for policy for CentOS. Everything works great except the root or any user's ...
1
vote
1answer
580 views

Accidentally deleted symlink libc.so.6 in CentOS 6.4. How to get sudo privilege to re-create it?

I accidentally deleted the symbol link /lib64/libc.so.6 -> /lib64/libc-2.12.so with $ sudo rm libc.so.6 Then I can not use anything including ls command. The error appears for any command I type ...
0
votes
2answers
409 views

How to reset root password CentOS (domU) hosted in Xen?

Need help on resetting root password of a CentOS which is a guess OS (domU) in XEN. I already tried to get to grub but it doesn't display or maybe using a different grub (pygrub). Thanks in advance.
-1
votes
1answer
234 views

Exim spaming errors to log and doesn't send mail to several domains

I have a server with CentOS 5.6 installed on it. It has working mail server of exim + dovecot + mysql + roundcube. My log file /var/log/exim/main.log is already of 3 Gb and continues to grow. It ...
0
votes
2answers
221 views

CentOS lost Root Access

For some reason I cannot access my root user via SSH. It displays the error on login: could not open session. However I happen to have another user account that is a normal non-sudo user. Is there ...
1
vote
2answers
970 views

CentoOS SSH Access

I'm executed this commands with root user i'm on a CentOS 6.3 server: #useradd newuser #passwd newuser #visudo then I added this line at end of file: AllowUsers newuser #service sshd restart ...
-3
votes
4answers
224 views

ps -u root shows that httpd is running as root - is this safe?

In the command line if I do this: ps -u root | less one of the lines is this 19974 ? 00:00:01 httpd is this safe, to have the main httpd process as running as root? if i do this : 'ps ...
1
vote
1answer
413 views

Cannot login as root to centos server

I used to login as ssh root@servip with a password authentication into my CentOS 6 server. I am not sure if what I have done has caused this, but while trying to get over my problem of accessing ...
0
votes
4answers
166 views

I run as root user in a subdir this command: mv /*

In a subdir (/var/www/html/subdir) by error I run as root: mv /* . It move ALL files under the working directory, commands as ls, mv, cat, not work, inclusive run by ./bin/ls. Keyboard and Mouse was ...
4
votes
1answer
234 views

Downgrade/replace root user?

Is it possible to safely downgrade the user 'root', replacing it with a different account name? (say 'admin'). So, in the end, 'admin' would be uid 0 and 'root' 123. I am using Centos, if that makes ...
6
votes
4answers
4k views

Allow root login from one IP address only

I have centos5. Is there any way that i can log into my vps server with root user from particular ip address only. I have read that i can use private key to login into sshd. But the problem is i am ...
4
votes
3answers
546 views

Why is my $PATH variable for root different when I use su root

When I was trying to run chkconfig as an ordinary user (on CentOS 5) I realized that I could not access it because the directory, sbin, is not in my $PATH. When I su to root it still doesn't work. I ...
0
votes
3answers
4k views

need to create space on CentOS - dev/md1 94% full

I have a CentOS Linux dedicated server that is sending me warning messages everyday that it is short on space. The Servers is CentOS Release 5.4 final running cPanel/WHM with fantastico and RVSkins ...
6
votes
2answers
3k views

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

I tried to switch to root in CentOS by running su, but 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 path ...
24
votes
4answers
56k views

Adding a directory to $PATH in CentOS?

We just got our new server(s) up and we're running CentOS on them all. After successfully installing Ruby Enterprise Edition, I would now like to add the REE /bin (located at ...