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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old January 11th, 2002, 04:08 PM
mizzory mizzory is offline
Webmaster - Trying
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 478 mizzory User rank is Lance Corporal (50 - 100 Reputation Level)mizzory User rank is Lance Corporal (50 - 100 Reputation Level)mizzory User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 5 h 24 m 52 sec
Reputation Power: 8
Send a message via ICQ to mizzory
Logging in

When I start my FreeBSD 4.4, sometimes I get asked to log in and sometimes I get asked to enter the path to shell.

When I have to enter the shell, I get the command prompt with # but when I log in, I get $.

Is the # prompt for the superuser? How do I switch between the superuser and a user I made? I tried logout and login and it just says they can not be found.

Reply With Quote
  #2  
Old January 11th, 2002, 04:22 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level)AlCapone User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 13
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
# is for chs and $ is for sh, and yes afaik csh is by default for root.
To switch between users use 'su username', if you're logged in as root then you wont neet to enter the password. Of course, you could always 'logout' or 'exit' and log in again, or switch ttys - which is probably the best way to be logged in as two users at the same time.
__________________
And you know I mean that.

Reply With Quote
  #3  
Old January 12th, 2002, 04:34 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 9
You typically get asked to enter the path to a shell at boot-time if there is a configuration problem that freebsd detects and it determines from this it is best to drop you into single user mode so you can make the required modifications to the system configuration. Single user mode is analogous to windows 'safe mode', loading the system minimally so as to allow you to make the changes needed to get the system up.

For example the last time this happened to me was yesterday after I had edited the /etc/rc.conf file. I had mistakenly missed a closing " in one of my /etc/rc.conf entries and so freebsd, unable to parse the file correctly, dropped me into single user mode so I could make the changes to the file.

This required specifying the full path to the vi editor/file:
Code:
/usr/bin/vi /etc/rc.conf

from where I could make the necessary changes to the rc.conf file to allow me to reboot into multi-user mode.

READ THE ERROR BEFORE THE LINES ASKING YOU FOR THE PATH TO YOUR SHELL - you should get some indication of what went wrong and what you should do to fix it.

Note also that you may need to mount one or more of your drive devices first to fix the problem. Also you may need to remount the partition in rw mode (since freebsd mounts some partitions read only to avoid corruption).

To check what is currently mounted and in what mode, simply type: /sbin/mount at the command prompt (again using the full path to the mount executable because your path may not be setup in single user mode). If the partition on which the files you need to fix reside is not mounted (or mounted in read only mode), you will need to mount the partition using: /sbin/mount -t ufs <mount-point>, where <mount-point> is a valid entry in your fstab file (ie mount -t ufs /).

Reply With Quote
  #4  
Old January 12th, 2002, 09:38 AM
mizzory mizzory is offline
Webmaster - Trying
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 478 mizzory User rank is Lance Corporal (50 - 100 Reputation Level)mizzory User rank is Lance Corporal (50 - 100 Reputation Level)mizzory User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 5 h 24 m 52 sec
Reputation Power: 8
Send a message via ICQ to mizzory
I tried to use the full path to vi editor (/usr/bin/vi) but that was not found. I tried to use the man command but that isn't even working....

FreeBSD said that my hostname in rc.conf should look like this
Quote:
And your hostname must be set to a FQDN in this form: xxx.yyy.zzz where xxx is your hostname -s and yyy.zzz is your fake domain.
Linux or BSDs no difference.
In /etc/rc.conf, you need to set hostname="xxx.yyy.zzz"

Quote:
ipconfig_ep0="inet 192.168.0.3 netmask 255.255.255.250"

Quote:
>> inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255

Just set all boxes to use 255.255.255.0 (0xffffff00).


this should be what I need, correct?

Reply With Quote
  #5  
Old January 12th, 2002, 02:24 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I already told you if you wanted to learn FreeBSD, do a fresh install on a dedicated box. Running it on Virtual PC (emulator) or whatever makes your life tougher because it's non-standard. When it's non-standard, you can't expect your FreeBSD is fully compatible with Virtual PC. When weird things happen, you need to ask the people who run Virtual PC, but I doubt if they can help you at all.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Logging in


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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