|
Misogynist posted:You just need to boot into single-user mode from your GRUB (boot loader) menu (which is not your BIOS) and reset the root password with passwd. broken server posted:sulogin: cannot open password database!
|
# ? Oct 22, 2011 23:08 |
|
|
# ? May 10, 2024 16:33 |
|
Instead of single you can use init=/bin/sh You may have to mount / unmount things manually, especially be sure to at least run 'sync' before restarting.
|
# ? Oct 22, 2011 23:22 |
|
If your /etc/shadow file is hosed, save a copy of it (just in case) and make a new one. Put this in there: root:$1$ln/kWfRE$Lw7FbAaUZe/NhnszVLhFl1:15269:0:99999:7::: That will allow you to log in as root with the password 'password' and you might be able to rebuild a working shadow file. E: In single user mode or a rescue environment or something.
|
# ? Oct 22, 2011 23:42 |
|
/etc/shadow seems to have all the system users present and looks okay. /etc/passwd only has my user - no root or anything else... I can get to a console with init=/bin/sh but I cannot su at all - the system seems to have no idea who any of the users are. Ugh, it's really late here, think I'll work on it tomorrow.
|
# ? Oct 23, 2011 00:01 |
hootimus posted:I can get to a console with init=/bin/sh but I cannot su at all
|
|
# ? Oct 23, 2011 00:54 |
|
BSD uses rcorder to track dependencies listed inside rc scripts (a comment at the top of the file states dependencies) to order scripts for start up and shut down. It's a simple solution but I don't believe they've added support for parallelization.Socket Ryanist posted:Why do you need to su? You're already root Single user mode logs you in you as root. If you're ever unsure, the "id" command will let you know who you are. Edit: That's for hootimus.
|
# ? Oct 23, 2011 01:06 |
|
Ninja Rope posted:BSD uses rcorder to track dependencies listed inside rc scripts (a comment at the top of the file states dependencies) to order scripts for start up and shut down. It's a simple solution but I don't believe they've added support for parallelization. A possibly easier command to remember is 'whoami'.
|
# ? Oct 23, 2011 01:40 |
|
hootimus posted:/etc/shadow seems to have all the system users present and looks okay. Instead of running init as init, you run sh as init, and init runs as root, so your shell runs as root. e: Generally speaking worst case scenario for not being able to boot a linux system is using a liveCD and chrooting into your system to fix poo poo.
|
# ? Oct 23, 2011 09:08 |
|
I'm looking to switch to Linux for multiple hosting purposes. Its uses vary from Valve Source, Indie games, Mumble or something completely random. I'm currently using a Windows 2003 x64 VPS from nfoservers.com. They support several Linux OS servers. Excluding Windows, they offer: CentOS 6.0 Gentoo Linux Ubuntu 10.04-LTS Ubuntu 10.10 Debian Lenny Debian Squeeze For ease of use, stability and performance, will Ubuntu 10.10 serve me well? Otherwise, what do you suggest? Keep in mind I have zero Linux experience, but I'm still an IT nerd willing to learn. Thank you.
|
# ? Oct 23, 2011 09:45 |
|
Ubuntu is probably fine, but you're likely to be able to find more support (and stability) from a CentOS platform. Don't go with 6.x, though, do 5.x if you can. E: If you go with Ubuntu, do 10.04 LTS. It'll cause less headaches in the future.
|
# ? Oct 23, 2011 09:58 |
|
desco posted:For ease of use, stability and performance, will Ubuntu 10.10 serve me well? Otherwise, what do you suggest? Keep in mind I have zero Linux experience, but I'm still an IT nerd willing to learn. Thank you. Traditionally you would choose CentOS, Debian Squeeze, or Ubuntu LTS. They have the longest support. I would base my decision on how much experience I have with each of them, but since you don't have any, just go with whichever one is best supported by what you plan on installing on the server. 2 years of security updates isn't going to help when you can't get your poo poo installed in the first place without jumping through a lot of hoops.
|
# ? Oct 23, 2011 15:58 |
|
hootimus posted:/etc/shadow seems to have all the system users present and looks okay. I think Debian keeps backups of these in /var/backups, not sure if other distros do the same.
|
# ? Oct 23, 2011 16:50 |
|
spoon0042 posted:I think Debian keeps backups of these in /var/backups, not sure if other distros do the same.
|
# ? Oct 23, 2011 17:29 |
|
I feel kind of stupid. The problem seems entirely related to /etc/passwd. It looked something like:code:
After repairing /etc/passwd the system seems mostly back to normal. So yes, I overwrote /etc/passwd using htpasswd At least I was able to correct the mistake. Edit: Yast saves a copy of /etc/passwd as passwd.YaST2save My Rhythmic Crotch fucked around with this message at 18:04 on Oct 23, 2011 |
# ? Oct 23, 2011 18:00 |
|
dolicf posted:Ubuntu is probably fine, but you're likely to be able to find more support (and stability) from a CentOS platform. Don't go with 6.x, though, do 5.x if you can. On the other hand, going with CentOS will plunge you into a waking nightmare from which there is no escape as soon as you need an even slightly esoteric or recent package installed, based on my experience. Ubuntu 10.04 LTS is probably your best bet.
|
# ? Oct 23, 2011 18:15 |
|
dolicf posted:Don't go with 6.x, though, do 5.x if you can. Just out of curiosity, why do you say this? Are there notable problems in 6? I haven't run CentOS since version 5.5.
|
# ? Oct 23, 2011 22:04 |
|
Postal posted:Just out of curiosity, why do you say this? Are there notable problems in 6? I haven't run CentOS since version 5.5. 6 changed a lot of stuff, and things just don't work as expected. It might be OK if you are just using what comes with the OS. I installed a cPanel box with 6 and had no issues because it supports it, but I have seen boxes set up manually that acted strange. Gotta disable or deal with NetworkManager and other little things. For Valve stuff, I don't know if it is any better running it on Linux, but I guess they support it. I hear complaints from our game server devision sometimes though (but they are doing large servers with tons of instances on a machine).
|
# ? Oct 23, 2011 22:27 |
|
ToxicFrog posted:On the other hand, going with CentOS will plunge you into a waking nightmare from which there is no escape as soon as you need an even slightly esoteric or recent package installed, based on my experience. You can usually find another repository for anything you need. RPMForge etc.
|
# ? Oct 23, 2011 23:13 |
|
Yeah, it's mostly because there are still some kinks that probably aren't worth the headache unless you have a specific need for something in 6.x.
|
# ? Oct 24, 2011 01:42 |
|
If you're like me and enjoy using the LXDE spin of Fedora but you want the much-improved font rendering that you see in Ubuntu, give this a shot: http://fedoraunity.org/Members/khaytsus/improve-fonts Basically you just add some fonts and change the font rendering over to freetype. Looks great.
|
# ? Oct 24, 2011 03:40 |
|
So at work we run Solaris on the servers, Ubuntu on the desktop. My boss is getting fed up with Solaris and it's bullshit, so we're thinking of moving some less critical stuff to Linux. The question is: which one. I'm in the Ubuntu camp. Run the LTS, so we've got up to five years between upgrades. We've already got the infrastructure to support Ubuntu (currently CFengine, moving to Puppet) and a guy on staff who knows Ubuntu. My coworker who is spearheading this doesn't want Ubuntu for vague reasons, so I suggested CentOS, since we're not going to bother to pay for RedHat, and CentOS is the closest to RedHat so there will be the most information on running Enterprise apps (right now we're looking at AMANDA and an RT server, but once this is off the ground, sky's the limit). Any suggestions guys?
|
# ? Oct 24, 2011 05:04 |
|
FISHMANPET posted:So at work we run Solaris on the servers, Ubuntu on the desktop. If you're all familiar with Ubuntu, then go Ubuntu. What kind of vague reasons did your coworker give?
|
# ? Oct 24, 2011 05:12 |
|
angrytech posted:If you're all familiar with Ubuntu, then go Ubuntu. What kind of vague reasons did your coworker give? At first it was "security" and then he dropped that when I pointed out that LTS server is supported four 5 years. Now he doesn't really have a reason to give. I actually suggested CentOS for him to look into. I know that whatever we choose it'll involve countless meetings and endless whining from the Solaris guy, I'd just like to have an unbiased view of everything. I'm voting for Ubuntu mostly because of familiarity, so I'm just wondering if there was any reason not to go with Ubuntu.
|
# ? Oct 24, 2011 05:19 |
|
FISHMANPET posted:At first it was "security" and then he dropped that when I pointed out that LTS server is supported four 5 years. Now he doesn't really have a reason to give. I actually suggested CentOS for him to look into. I know that whatever we choose it'll involve countless meetings and endless whining from the Solaris guy, I'd just like to have an unbiased view of everything. The only reasons to go with something like redhat arent technical reasons, they are slushy feel-good reasons. Redhat is a bigger name than Canonical. This can mean something to upper slushy management types. I've delt with redhat support exactly three times in the 10 or so years i've dealt with linux. Each time their support was pretty dang good. It took less time to get to a knowledgable person than it took with Sun. I've never dealt with Canonical. In my eyes, Canonical is more of a marketing arm, while Redhat is more of an engineering arm. I have no real data to back this up, but again, it's a slushy feeling. EDIT: To add, if you and the rest of your folks are more familliar with Bob's Linux and Bait, then thats what you should use, as long as Bob's Linux and Bait meets your needs. If you and the rest of the staff know Ubuntu best, then thats the best reason for you to use it. EDIT EDIT: Also look at Scientific Linux instead of centos, their recent release cycle has been better. nitrogen fucked around with this message at 05:47 on Oct 24, 2011 |
# ? Oct 24, 2011 05:44 |
|
JHVH-1 posted:6 changed a lot of stuff, and things just don't work as expected. It might be OK if you are just using what comes with the OS. Honestly, once you get over those few little things, RHEL6 is actually kinda nice. Just put NM_MANAGED=no in every ifcfg-ethX spankmeister fucked around with this message at 08:54 on Oct 24, 2011 |
# ? Oct 24, 2011 08:51 |
|
Bob Morales posted:Is it because those other Pages are on different ports than 80? No, everything is serving from port 80 on the LAN, and I have NAT rules going to my public IP ports (8080, 8081, etc). I've tried serving the sites internally using the 8080-range ports and had no change in behavior.
|
# ? Oct 24, 2011 14:21 |
|
spankmeister posted:Honestly, once you get over those few little things, RHEL6 is actually kinda nice. Hell, I went one step further and removed NetworkManager completely from my personal rh6 boxes.
|
# ? Oct 24, 2011 14:24 |
|
spankmeister posted:Honestly, once you get over those few little things, RHEL6 is actually kinda nice. Thats one of the first things I learned. I had battled with the drat NetworkManager a couple times on servers people just had to have Fedora installed on. The guys in our datacenter doing the OS installs though might not be so knowledgable and end up asking for help.
|
# ? Oct 25, 2011 05:07 |
|
Newbie Linux stuff: Have a question about MySQL server, although I think it's more relevant in this thread. I'm trying to run a private game server that uses a MySQL server for the player information, but I'm getting an Access Denied error, quote:Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /opt/lampp/htdocs/config.php on line 26 I tried resetting the password to my MySQL server via safemode, but during the installation of the server files, I think the installer installed another instance of a MySQL server somewhere else on my server (not in the default directory, so I didn't reset the right MySQL server/DB), and I want to find out how do I change the password on this other MySQL server. I'm running Ubuntu Server 11.04 64bit (no GUI). nescience fucked around with this message at 22:48 on Oct 25, 2011 |
# ? Oct 25, 2011 22:42 |
|
Userf4058 posted:Newbie Linux stuff: http://www.cyberciti.biz/faq/mysql-change-root-password/
|
# ? Oct 26, 2011 02:48 |
|
Bob Morales posted:http://www.cyberciti.biz/faq/mysql-change-root-password/ Yeah, tried this one, no luck =(. I don't know where this other MySQL server is installed.
|
# ? Oct 26, 2011 03:14 |
|
Userf4058 posted:Yeah, tried this one, no luck =(. I don't know where this other MySQL server is installed. mysql -u root -p -h hostname_or_ip If so, type in 'show databases;' and you should see a list of databases (they should have some for whatever game you are using or other software on the server) Then type: use mysql; select user, host, password from user; And you should see your users. You may have the username and stuff wrong, you really shouldn't have it setup to have a program connect as 'root'@'localhost'. Create a new user and give them the appropriate permissions on the database your game is using, and change the config file to use that user/password. http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
|
# ? Oct 26, 2011 03:31 |
|
Bob Morales posted:Can you even connect to the server with: ERROR1045(28000): Access denied for user 'root'@'localhost' (using password:YES)
|
# ? Oct 26, 2011 04:08 |
|
Bob Morales posted:Can you even connect to the server with: Once he manages to get into the database, none of that is going to work because I'm since he can't get into the DB, he can't get his server to create the tables in the DB. As for Userf, how did you go about resetting the password such that you think you installed another mysql instance? With Ubuntu it's really hard to install another version of a program like mysql unless you downloaded the source and compiled it yourself. You can run code:
code:
|
# ? Oct 26, 2011 04:17 |
|
FISHMANPET posted:Once he manages to get into the database, none of that is going to work because I'm since he can't get into the DB, he can't get his server to create the tables in the DB. with what you mentioned above, I found: code:
|
# ? Oct 26, 2011 04:27 |
|
Userf4058 posted:with what you mentioned above, I found: So when you start the mysql_safe with the --skip-grant-tables option, you put the full path in like so: code:
|
# ? Oct 26, 2011 08:12 |
|
dolicf Bob Morales ToxicFrog Postal JHVH-1 Thank you for your feedback and responses. I'll delve into 10.04 LTS and see how it goes. I may come crying back, but I'll give it my best newbie shot.
|
# ? Oct 26, 2011 08:17 |
|
IRCnet actually has some traffic in #linux, EFnet has a little more. It seems like every web page related to IRC networks is broken, they used to have up-to-date channel lists with user counts. I also remember the busier channels being things like 'linux-hackers' or 'linuxhelp' but maybe not.
|
# ? Oct 26, 2011 14:32 |
|
got my issue resolved, thanks everyone. Learned some stuff!
|
# ? Oct 26, 2011 19:07 |
|
|
# ? May 10, 2024 16:33 |
|
Userf4058 posted:got my issue resolved, thanks everyone. Learned some stuff! What was the solution?
|
# ? Oct 26, 2011 19:25 |