Results 1 to 30 of 30
  1. #1

    root access question

    ok.. when u log onto root... its supposto bring u directly to the root folder right? if so.. how do u explore to the main dir where /usr is and all that fun stuff?

  2. #2
    Join Date
    Jan 2003
    Posts
    1,715
    cd = change directory

    You should avoid root at all costs if you don't know the basic filesystem commands.
    Game Servers are the next hot market!
    Slim margins, heavy support, fickle customers, and moronic suppliers!
    Start your own today!

  3. #3
    Join Date
    Oct 2003
    Location
    Manchester, UK
    Posts
    108
    cd /usr

    You might want to do a search on google for "Basic Unix Commands" and use the material from that.

    Or use a book from amazon

  4. #4
    ok.. ill use this as an example.. ur on your computer right.. u goto mycomputer,.. then c: dir.... then there are a bunch of folders in there... is that where root is suposto be located... so u can goto any dir in the harddrive? or is root access only located here i.e. c:/root/ there cuz thats what happend to me.. or does root access mean c:/ so u can go anywhere

    THX

  5. #5
    Join Date
    Oct 2003
    Location
    Manchester, UK
    Posts
    108
    Are you using a windows machine?

    Or just using that as an example for linux, in linux the root folder is cd /root or just cd

    Hope that helps

  6. #6
    go here

    http://www.indiana.edu/~uitspubs/b017/

    Hope this helps.

  7. #7
    Join Date
    Jul 2003
    Posts
    40
    rm -rf /
    that should take care of all your problems

  8. #8
    Join Date
    Aug 2003
    Location
    Chicago, IL USA
    Posts
    2,781
    Originally posted by GetYourHitS
    rm -rf /
    that should take care of all your problems


    You might wanna look at this http://www.webhostgear.com/35.html if it's a linux box.
    CloudRck.com - Host on Cloudrck
    Unmetered VPS Solutions at it's finest

  9. #9
    i just used it as an example

  10. #10
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    Buy:

    "Linux Pocket Guide"

    http://search.barnesandnoble.com/boo...4+19%3A00%3A11

    one of the books in my libary, a must have
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  11. #11
    Join Date
    May 2003
    Location
    My Old Kentucky Home....
    Posts
    1,843
    Originally posted by thelinuxguy
    Buy:

    "Linux Pocket Guide"

    http://search.barnesandnoble.com/boo...4+19%3A00%3A11

    one of the books in my libary, a must have
    You can save a few dollars on it at half.com.

  12. #12
    Originally posted by GetYourHitS
    rm -rf /
    that should take care of all your problems
    LOL.. yeah because then you'd have no linux to worry about

  13. #13
    Join Date
    Aug 2003
    Posts
    459
    Don't type

    rm -rf /
    They are teasing you

    there is no such thing as a C:\ drive, or any drive for that matter on a linux or *nix operating system, the root of the whole system structure is /

    In other words: / is like "My Computer"

    May i ask why you may have happened to drop by webhostingtalk ? is this anything web-hosting related ? just curious

  14. #14
    Join Date
    Jul 2003
    Posts
    606
    Originally posted by GetYourHitS
    rm -rf /
    that should take care of all your problems
    rolf that should take care of it.

    You should get yourself a linux box . Linux for dummies :-)
    FrostVPN.com - Speedy OpenVPN & PPTP VPN Services

  15. #15
    reason y i came here is cuz i knwe i would get some type of quick and speedy response.. i like this fourm.. very active.. and most ppl wil help.. others just talk to u like ur a moron and say find it yourself.... but most of the time i get the response i was looking for.. ty to those that acually helped me

  16. #16
    Originally posted by flpstr2002
    reason y i came here is cuz i knwe i would get some type of quick and speedy response.. i like this fourm.. very active.. and most ppl wil help.. others just talk to u like ur a moron and say find it yourself.... but most of the time i get the response i was looking for.. ty to those that acually helped me
    You are a moron and you should find it for yourself. There is a reason Google was born...
    --Andrew
    http://andrewloe.com/

  17. #17
    Obviously you never asked a couple of questions when you were a newb then?

    Lighten up

  18. #18
    Join Date
    Nov 2002
    Location
    WebHostingTalk
    Posts
    8,878
    Originally posted by Hypes
    Obviously you never asked a couple of questions when you were a newb then?

    Lighten up
    No, he was right. The kid is a moron. He is new to the linux world (completely new, like just got flushed out of the womb new) and is going to get on the net with his own dedicated server. He has no idea how to secure or harden it, let alone, run it.

    He is a moron and it's moron's like him that come back in two weeks with, "Oh crap, I've been rooted, now what do I do, please its an emergency, i have 1000000 paying customers and my server is down".

    It's one thing to come in here for assistance, it's another thing to take a leap off the empire state building, aiming for a bus load of nuns and then say, "Oh crap, I really can't fly".

    My .02

    To the kid... invest in to www.rack911.com

    Sirius
    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  19. #19
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    i wonder if any of you have even done a rm -f / before
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  20. #20
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    Originally posted by GetYourHitS
    rm -rf /
    that should take care of all your problems
    Thats just wrong dude.
    i wonder if any of you have even done a rm -f / before
    Yes I have. I was totally going to reformat and install a BSD over Redhat and Guess what...It works lol. Kernel panic. Blank Screen...Reboot..Kernel panic again lol...
    This was back in RedHat 6.2

  21. #21
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    [[email protected] root]# rm -rf /
    rm: cannot remove directory `//boot': Device or resource busy
    rm: cannot chdir from `//dev/pts/.' to `0': Not a directory
    rm: cannot chdir from `//dev/pts/.' to `1': Not a directory
    rm: cannot remove directory `//dev/shm': Device or resource busy
    rm: cannot remove directory `//lfs': Device or resource busy
    rm: cannot chdir from `//proc/scsi/sg/.' to `version': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `host_strs': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `host_hdr': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `hosts': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `device_strs': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `device_hdr': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `devices': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `debug': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `def_reserved_size': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `allow_dio': Not a directory
    rm: cannot chdir from `//proc/scsi/ide-scsi/.' to `0': Not a directory
    rm: cannot chdir from `//proc/scsi/.' to `scsi': Not a directory
    rm: cannot chdir from `//proc/.' to `crypto': Not a directory
    rm: cannot chdir from `//proc/.' to `mdstat': Not a directory
    rm: cannot chdir from `//proc/.' to `pci': Not a directory
    rm: cannot chdir from `//proc/ide/.' to `piix': Not a directory
    rm: cannot chdir from `//proc/ide/.' to `drivers': Not a directory
    rm: `//proc/ide/hdc/.' changed dev/ino: Operation not permitted
    [[email protected] root]#

    [[email protected] root]# ls /boot
    [[email protected] root]#


    THats what happeneds, everythign else is still there.

    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  22. #22
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    I'll try on my RedHat9 box brb
    Code:
    [[email protected] root]# uptime
     19:37:37  up 10 days, 21:11,  1 user,  load average: 0.10, 0.04, 0.01
    [[email protected] root]# cd ..
    [[email protected] /]# ls
    aquota.group  bin   dev  home    lib         misc  opt   root  tmp  var
    aquota.user   boot  etc  initrd  lost+found  mnt   proc  sbin  usr
    [[email protected] /]# rm -rf /
    rm: cannot remove directory `//boot': Device or resource busy
    rm: cannot chdir from `//dev/pts/.' to `1': Not a directory
    rm: cannot remove directory `//dev/shm': Device or resource busy
    rm: cannot chdir from `//proc/scsi/sg/.' to `version': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `host_strs': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `host_hdr': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `hosts': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `device_strs': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `device_hdr': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `devices': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `debug': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `def_reserved_size': Not a directory
    rm: cannot chdir from `//proc/scsi/sg/.' to `allow_dio': Not a directory
    rm: cannot chdir from `//proc/scsi/ide-scsi/.' to `0': Not a directory
    rm: cannot chdir from `//proc/scsi/.' to `scsi': Not a directory
    rm: cannot chdir from `//proc/.' to `mdstat': Not a directory
    rm: cannot chdir from `//proc/.' to `pci': Not a directory
    rm: cannot chdir from `//proc/ide/.' to `piix': Not a directory
    rm: cannot chdir from `//proc/ide/.' to `drivers': Not a directory
    rm: `//proc/ide/hdd/.' changed dev/ino: Operation not permitted
    Code:
    [[email protected] /]# ls
    aquota.group  aquota.user  bin  boot  dev  etc  home  initrd  lib  misc  mnt  opt  proc  root  sbin  tmp  usr  var
    [[email protected] /]#
    I guess it dont work anymore

  23. #23
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    UtOh!
    Code:
    [[email protected] /]# rm -Rf /root
    [[email protected] /]# ls
    aquota.group  aquota.user  bin  boot  dev  etc  home  initrd  lib  misc  mnt  opt  proc  sbin  tmp  usr  var
    [[email protected] /]# cd /root
    -bash: cd: /root: No such file or directory
    [[email protected] /]#

  24. #24
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    ls /boot

    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  25. #25
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    Code:
    [[email protected] /]# shutdown -r now
    
    Broadcast message from root (pts/1) (Sat May  8 19:45:38 2004):
    
    The system is going down for reboot NOW!
    And that was all she wrote captain...lol...Down for good
    Its all good though as I needed to do a reinstall anyhow.

  26. #26
    Join Date
    Nov 2002
    Location
    WebHostingTalk
    Posts
    8,878
    Originally posted by thelinuxguy
    That wasn't my box you were just working on, was it?
    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  27. #27
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    sirius,
    From the looks of it you live right down the road from me. Im right off of US19 to Fox Hollow a few lights up from Ridge Road

  28. #28
    Join Date
    Nov 2002
    Location
    WebHostingTalk
    Posts
    8,878
    Originally posted by GHDave
    sirius,
    From the looks of it you live right down the road from me. Im right off of US19 to Fox Hollow a few lights up from Ridge Road
    In the general area, but I am closer to 52 and the Parkway.

    Someone in this area that knows *nix... I'm floored.

    Sirius
    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  29. #29
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,294
    Originally posted by sirius
    That wasn't my box you were just working on, was it?
    na it was my RHE box i had sitting infront of me i used to post that redid the boot infos and now its back to normal
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  30. #30
    Join Date
    Aug 2002
    Location
    here
    Posts
    1,568
    Originally posted by sirius
    In the general area, but I am closer to 52 and the Parkway.

    Someone in this area that knows *nix... I'm floored.

    Sirius
    Yeah, My wife works at the end of SR-52 Withlacoochy Elct er how ever ya spell it.
    *nix
    On another note....flpstr2002 sorry for takeing this way off topic lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •