BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 22nd, 2004, 05:11 PM
Issac Issac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 5 Issac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A couple questions...

I'm sorry if these were asked and answered before, but I searched and couldn't find anything, so...

I am completely new to UNIX. I have been slowly but surely learning, for it is much different from what I'm used to. It's the reverse of DOS, and clumps everything together... I'm like... Trying.

Anyway, how would you go about removing a user on a FreeBSD 5.2 machine?

Next, how would you get to the files on your HDD when you're in the fixit console booted from the CD? I've had to reinstall FreeBSD multiple times just because I couldn't fix the boot files I borked, amoung multiple other things. This also applies to browsing files on a CD from the HDD. I know there's mount labels and points, or something, but how the heck do I use them? I searched the FreeBSD site for helpfiles on that, but I still couldn't figure it out. =/

My head is about to explode, heh.

Reply With Quote
  #2  
Old February 23rd, 2004, 01:06 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
The FreeBSD handbook (www.freebsd.org/handbook/ or /usr/share/docs/books/handbook/en/ ) has a chapter "Unix Basics". You should read it (and after this, read the parts of the handbook that you think are interesting to you).

Managing removable media (CDs) is also described there in detail.

To access the hard disk from the recovery console, you have to mount it.

To remove a user, type "vipw" and delete the line containing his login. After this (or before, doesn't matter), you should also delete his home directory (login as root, type "rm -rf /usr/home/<username>" and be careful not to delete the wrong one )

hth,
M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old February 23rd, 2004, 01:45 PM
Issac Issac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 5 Issac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Yes, but how would you go about mounting it properly? I searched through the handbook and got a brain tumor.

And even after you "mount" it properly, which I am half-clueless on, how would you switch to it without getting an access denied error?

Reply With Quote
  #4  
Old February 23rd, 2004, 02:24 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
Well, agreed. The chapter about mounting / unmounting is a little short...

I could write a book to answer your questions because they are not very specific. Let's start with some hints:
- when you are logged in as root, you won't ever get "permission denied". If you do, you accessed something non-existent because root can access anything. The only special case I know of is extended filesystem attributes, but until you encounter them, you'll probably have to learn a lot of other things first.

- Mounting:
# mount /dev/ad0s1e /mnt
This will mount the "e" slice on the first primary partition of your first IDE hard disk. You can use "fdisk" to see all partitions and "disklabel -r /dev/ad0s1" to see all the "slices" on a specific partition. This example here would list those of your first IDE hard disk, first partition.

- "switching" to a partition
What do you mean "switch to it"? Partitions are mounted to folders (they are called "mount-points" then). So you can simply use "cd" to change to that folder:
# cd /mnt

After booting the rescue system, you probably want to make some folders for mounting several partitions eg. like this:
# mkdir /mnt/usr
# mkdir /mnt/home
And then you can mount your partitions similar to this:
# mount /dev/ad0s1e /mnt/usr
# mount /dev/ad0s1f /mnt/home

All these commands depend on your specific setup, so unless you have a specific problem and tell us the details about it, it is really hard to give you further hints...

Since you are new to unix, you might want to try out some linux distributions first. They are usually more newbie-friendly. You won't have much fun with BSD unless you got the basics first. BSD is for the more experienced users who can't get what they want from linux anymore. Just my personal POV on the BSDs...

hth,
M.

Reply With Quote
  #5  
Old February 23rd, 2004, 04:05 PM
Issac Issac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 5 Issac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Somewhere mid-reading in your explanation I realized that the purpose of the /dev directory is! Those files matched my partition labels, but I didn't take the hint...

That really helped, thanks a lot... Maybe you should submit that tutorial, because it was small and to the point.

About going through Linux first, I'm a glutton for pain. I'm thinking that forcing myself in this enviroment will help me greatly in learning it. Besides, I have heard so many good things of FreeBSD, then later learned the history behind it.

Then I learned of all the different projects that sprouted off of BSD, like DragonflyBSD, OpenBSD, and NetBSD. There's probably a lot more, but I find the concept fascinating.

Also, I'm completely ready and willing to extend my knowledge beyond DOS and all the OS's based off it, (*cough* Windows *cough*) because it's just a smart thing to do, in my opinion.

Anyway, thanks a bunch!

EDIT:

Really sorry, but does the same apply to removable discs, or is there a different way to go about that?

Last edited by Issac : February 24th, 2004 at 09:23 PM.

Reply With Quote
  #6  
Old March 6th, 2004, 08:22 PM
mttatkns mttatkns is offline
Got source?
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Mar 2003
Location: Laguna Niguel, California, USA
Posts: 2,332 mttatkns User rank is Private First Class (20 - 50 Reputation Level)mttatkns User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
The same rules apply to all disks, except different medians have different device names.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > A couple questions...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway