CentOS 5 Networking :: Unable To Switch To Root After PermitRootLogin Set To No For SSH
Mar 11, 2010
I followed the instructions on this page ([URL]) in order to secure my sshd and prevent anyone form accessing the server directly as root. Therefore I changed the "PermitRootLogin yes" to "PermitRootLogin no" and restarted sshd. After that root access was denied directly but for some reason I am unable to switch to root from any of the normal user accounts with "su -" because I keep getting the "Incorrect password" errors. I am sure that the password is correct but for some, to me unclear, reasons I am unable to access the root account over SSH from a normal user account. I also noticed that after that I lost the ability to access the server as root over SFTP. why I am unable to generally use the root account after doing the named changes to sshd_config/ I am running CentOS 5.4 with the newest update.
View 7 Replies
ADVERTISEMENT
Oct 19, 2009
I just installed CenOS 5 on my server and am in the process of installing some software to the machine.
I understand repositories and was able to get it all set up for installation with the yum command.
My problem is that when I attempt the install, it says i need root access to install.
I tried using sudo commands to switch to root access, but after entering the password, it says my username isn't allowed root and that my actions will be reported.
I am the admin for the system and have total control, I just don't know how to switch to root in the terminal.
View 2 Replies
View Related
Aug 18, 2010
Having just installed fc13 and downloaded the KDE package I attempted to log out as user and back in as root, but I keep getting a message about the wrong password. This is odd as the same password works in terminal if I try to become a SuperUser. I have tried turning off SELinux to no avail. I cannot log in from cold as root,only as user.
View 1 Replies
View Related
Jan 28, 2011
I am running an old kernel for my XEN VPS CENTOS 5.5 x86_64 - 2.6.18-164.el5xenI did a 'yum update kernel' but when I rebooted still the same. I have downloaded the version 'kernel-2.6.18-194.32.1.el5' I cannot find grub.conf in both etc and boot, yes grub is installed via yum.
View 7 Replies
View Related
May 26, 2011
Figured out a straight shot at connecting to the Internet in Fedora 15. Follow these commands.
1.)****** SWITCH TO ROOT USER if you don't have privileges*******
2.) cd /etc/sysconfig/network-scripts
3.) rm ifcfg-XXXXX (DO NOT REMOVE THE IFCFG-LO)
4.) system-config-network
-> Once in this screen, press the enter key on "Device configuration"
-> Configure your network statically. ( I did the following.) Name: leave as default Device: Leave as default DESELECT "Use DHCP" Set Static IP as 192.168.2.117 (or 192.168.1.117) Set NetMask as 255.255.255.0 Set "Default Gateway IP" AND "Primary DNS Server" to 192.168.2.1 (or 192.168.1.1)
[Code]..
View 4 Replies
View Related
Mar 20, 2010
how do i switch from root (#) to normal non-root prompt($). I'm new to linux
View 3 Replies
View Related
Jan 25, 2009
Assume I installed originally CentOS Desktop with IP receiving from DHCP server.Later I decided to assign a fixed IP to the local CentOS installation.How do I switch (permanently) the dynamic DHCP IP assignment to a fixed IP?
View 1 Replies
View Related
Jul 30, 2010
Warning - Windows user who doesn't know much Linux outside of writing programs. Do feel free to patronise providing you explain in detail .
I have a working Windows XP machine. I've installed a second hard drive (channel 1, slave to Windows XP master) and installed Centos (having checksummed the images and verified the media). Problem is it will not boot.
The exact text on screen is...
Booting 'Centos (2.6.18-194.el5)'
root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
[Code]....
I've managed to use the "Linux rescue" to at least ensure the box default boots to Windows. how to get Centos to boot.
Also, given I told Centos where to install to, and I've not changed anything since, how come it could not even manage to create a working system? Never had this problem on Windows (OK, always on Windows 98 but I never considered that an O/S ).
View 12 Replies
View Related
Jul 27, 2011
I have router based on CentOS system with DHCP server. In one eth I have fiber converter attached in second one I have Cisco Catalyst switch connected. From the switch rest of ports are used to provide internet traffic to rest of network. I wanted to divide each segment of network (based on switch ports) that they don't see each other (it'll be good for me if someone will connect his wireless router to the network not to WAN by LAN port and start be a second DHCP server). So my network configuration:
CentOS:
DHCP with range 10.0.0.1/8 network
Switch ports
1 - CentOS DHCP
2 - second server
[code]....
Parts of networks I've assigned IPs 10.network_part.subnet_part.client_ip so I have addresses for clients: 10.1.1.2/8, 10.2.1.3/8, 10.3.0.4/8, etc ...
I've decided to give each port it's own VLAN like below:
Port / VLAN
1 / trunk
[code]....
I've configured switch ports by using:
(config)# interface Gi0/Port_Number
(config-if)# switchport access vlan VLAN_NUMBER
[code]....
And after doing that whole network stopped working. I think that cisco part of configuration is OK (at least customer ports, I don't know if there is any additional info needed for trunk port). On CentOS router I didn't setup anything regarding VLANs ...
View 4 Replies
View Related
May 11, 2010
I installed the CentOS v5.4 on a virtual machine vmware server v1.0. I put the the vmware ethernet on bridged mode and now I have an ip address, subnet mask and dns from my dhcp server from the the office where I am. I edit the file /etc/sysconfig/network and I put there the gateway ip. Now is okay but not at my home where I have another gateway ip. a script who switch between my gateways ?
View 4 Replies
View Related
Jan 7, 2011
I had something I think if very odd happen to one of my computers at work today, it appears to have spontaneously switched from having a static address set to getting its address by dhcp.this is a small office with a mix of mostly linux servers and desktops with a few stand alone windows computers, mostly notebooks. Most of the desktop computers get their address by dhcp, they all have NIS /NFS for remote mounted home directories (interchangeable desktops so anyone can log in at any desk). The particular desktop computer in question here has a shared printer on its parallel port, so has a static IP. Yesterday a UPS in the server rack died, after pulling it and plugging things back in and restarting the servers, it was easiest just to reboot all the desktops, everything came up ok including the desktop in question, and the printer did work.
Today I pulled the oversized UPS from this desktop to replace the dead one, and put a more appropriately sized one in its place, shut the servers down again, rebooted, etc,About an hour later someone tells me the printer is not working on the desktop, and after a lot of searching I find this desktop has the wrong IP address, I ran system-config-network and it showed the address was set to dhcp, I changed this back to the correct static IP and things seem to be working ok now.
View 3 Replies
View Related
May 23, 2009
Everything was fine yesterday, but today, the situation is the following:
When I try to login as root, using Gnome, after I enter username and password, it can do three things:
1- It brings me back to the GUI login screen again
2- Brings me to the prompt login screen (black)
3- It lets me in but I have no top or bottom navigation bars. (Sorry, cannot remember the actual names...) Sometimes I have access to a console screen, which allows me to reboot, and sometimes not, in which case I have to do a cold reboot. Not good.
The last attempt I made, I used the KDE interface and everything was fine.
I really don't understand what happened between yesterday and today, nobody but me uses this system at home and remote logins for root are disabled.
The systems is CentOS 5.3 with SELinux enforced.
View 1 Replies
View Related
May 24, 2010
Someone hacked my CentOS 5.4 test box, that I run at home with a gnome interface. It is connected to a domain name, the hacker changed only the root password. How can I change the root password? I get a graphical Grub at startup and if I press "e" nothing happens. Is there a different way to have Grub boot in text mode? Remember that I don't have root access. I was thinking to use the linux rescue mode, but I don't know what steps/commands to enter.
View 2 Replies
View Related
Dec 8, 2009
I have a program that attaches to an interface. I can run two copies of the program on two systems (each running one instance), connect it to a switch, say 1.1.1.1 & 1.1.2.1. In this configuration two instances of the program can communicate and everything is fine.
Now, to reduce cost, it want to use only one system with two nics connected to the same switch, running two instances of the above program, each instance attached to two interfaces respectively on the system. I have the following settings:
eth1 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXX
inet addr:1.1.1.1 Bcast:1.1.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth2 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXX
inet addr:1.1.2.1 Bcast:1.1.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[Code]...
View 6 Replies
View Related
Sep 25, 2009
i want to authenticate user (client) via switch to the radius server(CentOS)Can anyone tell me the authentication/authorization configuration that should be made in the switch (huawei) and the radius server(centos).Esp. the main files under /etc/raddb/ in the Server& the configuration to be made under the radius server template "test"( as of my case)...
View 1 Replies
View Related
May 30, 2011
i am not able to port 8080 on my CentOS VPS server.I have followed all the instuctions as mentioned on iptables wiki page.Also I am able to telnet my ip address and port number, But can not access from browser.
View 6 Replies
View Related
Mar 11, 2010
I want to add a new user. For that purposeI switch to su and give root passwd. There I gave a command " useradd ". [smith@localhost smith]#adduser when i press enter key by typing adduser command it say me "Command not found" .Then i log off from my own account and login again from root account. The command "useradd" is then accepted.is there any way that without logging off from normal user account I may enter my roor accout and work as a root account instead to log off from normal user account.
View 5 Replies
View Related
Feb 10, 2011
I've created LVMs, and use this after I have added new disks to the system. df -h give me some lines, and one of them looks like this:(this is the system which holds backup files - and I want to disconnect it from time to time to create a duplicate backup)
/dev/mapper/backup-backup 147G 123G 17G 89% /media/backup
Problem: When I disconnect this drive, the system will not boot. Gives me the "enter password for root" or click control+D to continue. How can I get around this check - if the disk fails to load, or have been taken out.
View 6 Replies
View Related
Sep 23, 2010
I need to access some things in "documents and settings" folders (my windows xp crashed). I believe I need to be root user in linux to do this. I am running a ubuntu linux live (uninstalled) cd. I am new to linux and I do not know if this is even possible. I want to copy some things from documents and settings folder to an external drive (as backup) but I cannot access them as things are now (linux gives me an error when I try) but I would like to do it in gui so I can physically "see" everything and look through it.
View 9 Replies
View Related
Jun 25, 2009
I'm running a server with CentOS 5 where the software that needs to run on the server uses ifconfig to verify the system IPv4.The problem is that /sbin isn't set for the user that is supposed to run the software (sadmin) which means the software can't execute ifconfig and thus terminates.now the workaround I've been using is simply to input.
View 10 Replies
View Related
Sep 1, 2010
I have a centOS 5 server running apache 2 with it's web root at /var/www/html. By setting up a dns entry to point to the computer's IP, I was able to go to testing.myservername.com and reach the contents of that directory.My question is, how can I go about mapping multiple future domain names to folders that are under this webroot?For example how would i bind www.temporarydomain.com to the /var/www/html/temporarydomain/ folder and also be able to map www.anotherdomain.com to /var/www/html/anotherdomain/?
View 1 Replies
View Related
Jan 26, 2010
I edited the passwd file to modify the default shell for root from bash to tcshnow when I try to login to root it gives me the following error:"su: /bin/tcsh : No such file or directory"
View 3 Replies
View Related
Apr 9, 2010
I was trying to edit a file requiring root permissions, so I used sudo. I typed the root password and it failed. This happened three times, and the process was ended. I then logged in as root (su) and was able to navigate to the file and make changes as root. Am I missing something? How would I edit the sudoers file such that this password would work? Or is there another way to log in to the sudo group to make these changes? How do I set sudo passwords?
View 1 Replies
View Related
Dec 23, 2010
I'm trying to install Nvidia graphic drivers. I'm not satisfied with performance of the Nvidia repository drivers the performance is so slow compared official drivers. So i downloaded graphic drivers from Nvidia official web site. But ctrl+alt+f1-f6 not working. Only mouse pointer is disappearing. when i press f7 it's reappearing again.
View 1 Replies
View Related
May 31, 2009
cant resolve anything via dns, can ping ips though, traceroute shows that traffic is going through.
[root@home ~]# uname -a
Linux home 2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@home ~]# route -n[code].....
View 1 Replies
View Related
Nov 14, 2010
I am unable to switch between the various TTY screens. I don't see that I am using the wrong keys or sequence but it wont take for some reason I don't quite understand. My /etc/init file is below though.
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
# Default runlevel. The runlevels used by Mandriva Linux are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this) .....
View 18 Replies
View Related
Dec 16, 2010
In my office i have a network of 172.16.31.0 and a squid proxy server running, all other systems have windows XP and one system has centos. On centos system i have three lan cards and i want to test some things on it. So i assigned another IP on it of range 192.168.7.0/24 and same range on another windows system. And all the systems connected through a same network switch.
Unable to ping between Centos and Windows system. If i ping from one centos to windows system with the series of 172.16.31.0 then it replies very well but same thing is not happening in other 192.168.7.0/24 IP series.
View 2 Replies
View Related
May 5, 2009
have read [URL] lspci | grep Wireless 10:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02
[Code]...
have read [URL] but still could not issue the problem how should I resolve my wireless isusues?
View 19 Replies
View Related
Jul 1, 2009
I have a server in my house with webmin and virtualmin installed et i made a mistake.Ive created a virual server and ive change the lan ip adresse. 192.168.2.30 ive change it for 192.168.2.31.Now of course nothing work. Im not able to connect via ssh via another computer.So, on the server i write ifconfig and it tell me the adresse is 127.0.0.1 and no more adresse like 192.168.x.x.
View 2 Replies
View Related
Dec 10, 2009
I am using centos 5.4, recently i come to know that people are'nt able to connect to my system using ssh.1. but i can easily connect to them. 2. I checked the firewall settings also, it seems ok to me.3. I tried restarting sshd also. " /etc/init.d/sshd restart " but to no avail.4. Before when i was using 5.3, it was not a problem..!!5. I tried the following command on other system. It shows the following output.
# ssh -v -l niks 43.88.101.99
OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
[code]....
View 1 Replies
View Related