@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10



Comments:

<0> are you using IP or name?
<1> tried both
<0> is there a /etc/hosts or dns mapping back to your host?
<1> nope
<0> try adding that
<1> jbalint: what basically happened is the server got compromised
<1> i can't use cpanel transfer unless sshd works
<1> hence the question way earlier about setting up a new one
<0> did you take it off the internet?
<1> the server?
<1> no, unfortunately i can't do that because of client sites on it
<0> yeah
<1> :-/
<2> you really need to take this up with cpanel
<1> well, i need sshd to work
<1> thats what i need to do



<1> its not really cpanel's fault
<1> i SHOULD take it up with mambo
<1> hah
<1> anyways..
<1> okay great
<1> www.openssh.com loading for anyone?
<0> yes, it works fine
<1> ugh
<1> okay
<1> i think the wireless here is shot
<3> hi i accidently deleted root, is there a way to restore the user root through webmin?
<0> haha, probably not. is it gone from the p***word file?
<4> how's that ?
<4> you can't just delete root !
<4> WTF?
<5> VenumX: do you already have a root prompt open?
<5> or something sudo capable?
<5> VenumX: why are you asking, instead of trying it?
<5> i ***ume you already have a functional webmin
<3> dtm: yeah webmin works, but i edited /etc/shadow for my venumx user, but when i did i must have accidently deleted root from it, and so i saved it, obviously not thinking that root was edited
<3> and whne i got out
<3> i couldnt log into ftp, ssh, nothing
<3> webmind works, but not for root
<3> i have to run the commands for another user
<5> VenumX: and you have no other privileged webmin users?
<3> umm
<3> admin.dtc is my login for webmin
<3> does that have default root
<3> priveldges
<5> how would i know?
<5> why are you asking instead of trying it
<3> haha
<3> dtm: i can do anything except run process' under root
<0> bye
<5> does that mean it can't add users?
<3> dtm: yeah
<5> VenumX: you could get to the console and reboot to runlevel 1.
<5> that'll give you a root prompt without logging in.
<5> because uid0 is built in to the kernel
<3> im renting the server from a server hosting company
<3> so all i have is webmin
<3> so i have to make sure if i do something
<3> i can get back into webmin
<5> well i'm pretty sure that it'll boot back up properly but i've never heard of anyone doing this so i don't know.
<3> so what ur saying is
<3> if i reboot the server
<5> because the kernel knows uid0 and it executes /sbin/init which then executes everything else upon boot.
<3> it should put root back in
<3> >
<5> uid 0 exists even without root
<5> no, it's not
<5> if it's a remote system with no remote console server then you'd need a person standing there
<5> you should have done your playing on a local test system, like qemu
<5> and then only published the results to this host
<3> well i was told by someone on here to edit that file, all i was editing was /sbin/soemthing to /sbin/bash so that i could login to ftp
<3> and it seems like i deleted root from it
<5> mmhmm
<5> well you should have apparently done it via webmin, which would have sanity checked it
<5> before permitted an erroneous change
<5> or run 'vipw' instead of a regular text editr
<5> so do you have a person who can stand at the console upon its boot and know how to enter runlevel 1 and edit that file for you? [y/n]



<5> it'd take a minimally knowledgeable person about 3 minutes
<3> would something like
<3> echo root:$1$55886783$4TWTJUfLqHepqiKmyXzzx/:13378:0:9999:7::: >> /etc/p***wd
<3> do it?
<5> something LIKE that would work if you already had a root prompt which you said you didn't.
<5> if you could run that command, you could just run the text editor again.
<3> there is a command shell
<3> that might work
<5> oh there is?
<5> as root?
<3> in webmin
<3> i dunno
<5> :-I
<5> keep poking in webmin for a while.
<3> k
<3> what baout
<3> echo root:$1$55886783$4TWTJUfLqHepqiKmyXzzx/:13378:0:9999:7::: >> /etc/shadow
<5> no that's the /etc/p***wd format which is not what you need. you need /etc/shadow
<5> you said that you have no administrative user in webmin.
<5> thus the point is moot
<5> are you still certain of that?
<3> no
<3> haha
<5> well.
<3> well
<3> if i had root
<3> what should i put for the shadow file
<5> try logging in as root in webmin.
<3> for root
<5> wait i'm smokin crack. you were right the second time. that was the /etc/shadow syntax, not the /etc/p***wd syntax.
<3> ok so if i do
<5> and this should be atop your /etc/p***wd file:
<5> root:x:0:0:root:/root:/bin/bash
<5> not necessarily atop but that's where it is by default
<3> dtm: so if i did echo root:x:0:0:root:/root:/bin/bash >> /etc/p***wd
<5> you said you broke /etc/shadow, not /etc/p***wd
<3> and echo root:$1$55886783$4TWTJUfLqHepqiKmyXzzx/:13378:0:9999:7::: >> /etc/shadow
<5> and you haven't answered the question of whether any of this is possible.
<6> VenumX, you root p***word is "test"? :)
<5> :-o
<5> lawl
<5> fired
<3> my root p***word is test?
<3> why u think that?
<6> VenumX, i ran john on it. took 2 seconds.
<3> haha
<3> yeah i just set it to that
<3> just now u did
<3> ?
<3> now i think i have root priveledges
<3> for root
<3> now how to i fix ssh
<3> lol
<5> what?
<5> you think?
<3> haha
<3> no idea
<3> why its not working
<5> why'd you say it then?
<3> oh
<3> i think because now i can do the vi /etc/shadow file command
<3> from user root
<3> in process
<3> and i wasnt able to do taht before
<5> how'd you get "user root"
<5> and what did you do to enable this if you couldn't before?
<6> VenumX, i hope only your own site is on that server :)
<5> VenumX: run this ----> echo $UID
<5> and tell me whether it is 0 or not
<7> lol
<3> yeah
<3> it is
<5> well then that's root.
<3> good


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #centos
or
Go to some related logs:

Can't locate RawIP.pm windows
grub edit menu1
ibook sound trouble debian
yum install transcode livna
#web
debian do.maintenance script
#linux
quetzl
#mysql
xorg x1600



Home  |  disclaimer  |  contact  |  submit quotes