Results 1 to 25 of 30
Thread: root access question
-
05-08-2004, 04:14 PM #1Newbie
- Join Date
- May 2004
- Posts
- 20
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?
-
05-08-2004, 04:17 PM #2Web Hosting Master
- 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!
-
05-08-2004, 04:59 PM #3Temporarily Suspended
- Join Date
- Oct 2003
- Location
- Manchester, UK
- Posts
- 115
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
-
05-08-2004, 05:12 PM #4Newbie
- Join Date
- May 2004
- Posts
- 20
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
-
05-08-2004, 05:22 PM #5Temporarily Suspended
- Join Date
- Oct 2003
- Location
- Manchester, UK
- Posts
- 115
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
-
05-08-2004, 05:30 PM #6Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 57
go here
http://www.indiana.edu/~uitspubs/b017/
Hope this helps.
-
05-08-2004, 05:37 PM #7Junior Guru Wannabe
- Join Date
- Jul 2003
- Posts
- 40
rm -rf /
that should take care of all your problems
-
05-08-2004, 05:51 PM #8Web Hosting Master
- Join Date
- Aug 2003
- Location
- Dallas, TX USA
- Posts
- 2,812
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.
-
05-08-2004, 05:57 PM #9Newbie
- Join Date
- May 2004
- Posts
- 20
i just used it as an example
-
05-08-2004, 06:59 PM #10Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
Buy:
"Linux Pocket Guide"
http://search.barnesandnoble.com/boo...4+19%3A00%3A11
one of the books in my libary, a must haveSteven 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
-
05-08-2004, 07:03 PM #11Web Hosting Master
- Join Date
- May 2003
- Location
- My Old Kentucky Home....
- Posts
- 1,845
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
-
05-08-2004, 07:11 PM #12Web Hosting Guru
- Join Date
- May 2004
- Posts
- 305
Originally posted by GetYourHitS
rm -rf /
that should take care of all your problems
-
05-08-2004, 07:12 PM #13Web Hosting Evangelist
- Join Date
- Aug 2003
- Posts
- 459
Don't type
rm -rf /
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
-
05-08-2004, 07:13 PM #14Web Hosting Master
- Join Date
- Jul 2003
- Posts
- 612
Originally posted by GetYourHitS
rm -rf /
that should take care of all your problems
You should get yourself a linux box . Linux for dummies :-)
-
05-08-2004, 07:41 PM #15Newbie
- Join Date
- May 2004
- Posts
- 20
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
-
05-08-2004, 08:13 PM #16Web Hosting Guru
- Join Date
- Jan 2002
- Posts
- 278
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--Andrew
http://andrewloe.com/
-
05-08-2004, 08:15 PM #17Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 57
Obviously you never asked a couple of questions when you were a newb then?
Lighten up
-
05-08-2004, 08:23 PM #18Retired Moderator
- Join Date
- Nov 2002
- Location
- WebHostingTalk
- Posts
- 8,901
Originally posted by Hypes
Obviously you never asked a couple of questions when you were a newb then?
Lighten up
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
SiriusI support the Human Rights Campaign!
Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.
-
05-08-2004, 08:25 PM #19Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
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
-
05-08-2004, 08:35 PM #20Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
Originally posted by GetYourHitS
rm -rf /
that should take care of all your problems
i wonder if any of you have even done a rm -f / before
This was back in RedHat 6.2
-
05-08-2004, 08:39 PM #21Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
[root@localhost 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
[root@localhost root]#
[root@localhost root]# ls /boot
[root@localhost 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
-
05-08-2004, 08:42 PM #22Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
I'll try on my RedHat9 box brb
Code:[root@box1 root]# uptime 19:37:37 up 10 days, 21:11, 1 user, load average: 0.10, 0.04, 0.01 [root@box1 root]# cd .. [root@box1 /]# ls aquota.group bin dev home lib misc opt root tmp var aquota.user boot etc initrd lost+found mnt proc sbin usr [root@box1 /]# 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:[root@box1 /]# ls aquota.group aquota.user bin boot dev etc home initrd lib misc mnt opt proc root sbin tmp usr var [root@box1 /]#
-
05-08-2004, 08:49 PM #23Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
UtOh!
Code:[root@box1 /]# rm -Rf /root [root@box1 /]# ls aquota.group aquota.user bin boot dev etc home initrd lib misc mnt opt proc sbin tmp usr var [root@box1 /]# cd /root -bash: cd: /root: No such file or directory [root@box1 /]#
-
05-08-2004, 08:51 PM #24Problem Solver
- Join Date
- Mar 2003
- Location
- California USA
- Posts
- 13,681
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
-
05-08-2004, 08:58 PM #25Web Hosting Master
- Join Date
- Aug 2002
- Location
- here
- Posts
- 1,566
Code:[root@box1 /]# shutdown -r now Broadcast message from root (pts/1) (Sat May 8 19:45:38 2004): The system is going down for reboot NOW!
Its all good though as I needed to do a reinstall anyhow.