LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-16-2014, 08:03 AM   #46
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12

Cyn,
I think the main issue is still that I can't switch to su user and here are what I've got

huamin@:~ % shutdown now
/sbin/shutdown: Permission denied.
huamin@:~ % shutdown -r
/sbin/shutdown: Permission denied.
huamin@:~ % host -r
Usage: host [-aCdilrsTvw46] [-c class] [-N ndots] [-R number]
[-t type] [-W wait] name [server]
-a same as -v -t ANY
-C query SOA records from all authoritative name servers
-c use this query class (IN, CH, HS, etc)
-d produce verbose output, same as -v
-i use IP6.INT for IPv6 reverse lookups
-l list records in a zone via AXFR
-N consider names with at least this many dots as absolute
-R retry UDP queries this many times
-r disable recursive query
-s do not ignore SERVFAIL responses
-T send query via TCP
-t use this query type (A, AAAA, MX, etc)
-v produce verbose output
-w wait forever for a server reply
-W wait this many seconds for a reply
-4 use IPv4 only
-6 use IPv6 only
huamin@:~ % init 1
init: Operation not permitted
huamin@:~ %
 
Old 08-16-2014, 08:44 AM   #47
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by cynwulf View Post
You should be able to switch to a different VT using e.g. CTRL+ALT+F2, login as root, etc.

If all else fails, boot into single user mode: http://www.freebsdwiki.net/index.php/Single-user_mode
Do the above.

Add your user to the wheel group.

Then your user will be able to su.
 
Old 08-22-2014, 08:20 PM   #48
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Hi Cyn,
CTRL+ALT+F2 is the way to logon as root. what is the way to switch back to previous GUI interface?
 
Old 08-22-2014, 08:43 PM   #49
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by Huamin View Post
Hi Cyn,
CTRL+ALT+F2 is the way to logon as root. what is the way to switch back to previous GUI interface?
Here is the FreeBSD Handbook page on virtual terminals. OpenBSD should be very similar.

The quick answer is Alt-F8, but please read at least Sec. 4.2.1 to understand why (it also assumes that you have configured a graphical login by which X was started). If Alt-F8 should produce a text screen filled with Xorg messages it probably means that the X login is not correctly configured - easiest to just kill it (kill ### from another console, or Ctrl-C from Alt-F8) and restart it with startx unless xdm restarts it.

Last edited by astrogeek; 08-22-2014 at 09:10 PM.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD: nvidia drivers, screen resolution and FreeBSD binaries on OpenBSD ::: *BSD 2 08-21-2009 04:18 AM
LXer: Fsck errors in the Linux filesystem on my OpenBSD laptop NOT caused by OpenBSD LXer Syndicated Linux News 1 08-31-2008 03:15 AM
LXer: OpenBSD: The OpenBSD Foundation LXer Syndicated Linux News 0 07-26-2007 10:31 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 5 04-08-2005 07:09 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 1 04-07-2005 08:46 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration