LinuxQuestions.org
Review your favorite Linux distribution.
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 02-04-2004, 12:07 AM   #1
pariahservers
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD, Slackware Linux
Posts: 2

Rep: Reputation: 0
Question BSD root issues


I have recently install a new bsd box and i would like to enable root logins through ssh from differenet hosts other than the localhost. What to i need to change to be able to login from my home pc to the box using root as the user.

Another problem i hav is tha i can't su once im logged into the box with my username. How can i get that working aswell?

any help would be appreciated.
 
Old 02-04-2004, 04:06 AM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
I would strongly advise against allowing root to login via ssh, that is just asking for trouble.

On BSD you must be a member of the "wheel" group in order to su to root. Again though, su'ing to root is not advised. You should investigate and implement sudo for administration tasks. That will let you run individual commands with root privilages.
 
Old 02-04-2004, 01:28 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
I would also highly recommend avoiding this. If you insist on doing this change some of the
ttyp* none network
lines in /etc/ttys to
ttyp* none network secure

/etc/ssh/sshd_config: add the line
PermitRootLogin yes

This should do it... PLEASE DO NOT DO IT THOUGH. Just because it is possible doesn't make it wise... just login as yourself, have yourself in the wheel group, and su -.

That should work fine...
 
Old 02-04-2004, 08:43 PM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

Rep: Reputation: 48
Oh, adding yourself to the wheel group.

/etc/group:

wheel:*:0:root,your_username
 
Old 02-05-2004, 11:47 PM   #5
witeshark
Member
 
Registered: Jan 2004
Location: Miami FL
Distribution: Mac OS X 10.4.11 Ubuntu 12.04 LTS
Posts: 429

Rep: Reputation: 30
Lightbulb

Quote:
Originally posted by chort
I would strongly advise against allowing root to login via ssh, that is just asking for trouble.

On BSD you must be a member of the "wheel" group in order to su to root. Again though, su'ing to root is not advised. You should investigate and implement sudo for administration tasks. That will let you run individual commands with root privileges.

Here is what I would say, because it's so like the Mac I now use and love! Nice, Chort, couldn't add a character to this post my su to root really must be a local function only

Last edited by witeshark; 02-05-2004 at 11:49 PM.
 
Old 02-10-2004, 11:42 AM   #6
pariahservers
LQ Newbie
 
Registered: Feb 2004
Location: Canada
Distribution: FreeBSD, Slackware Linux
Posts: 2

Original Poster
Rep: Reputation: 0
ok shot okes!

i got it working.. and i took your advice and i added myself to the wheel group.

Thanks alot!

Last edited by pariahservers; 02-10-2004 at 01:18 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
two usb issues, digital camera only as root and scanner module not found nedwardss Debian 2 10-20-2004 06:23 AM
Help Needed for Root Password/permission issues. Ebenonce General 3 08-19-2004 05:57 AM
root users on bsd... scoob8000 *BSD 8 10-20-2003 06:23 AM
Choose Free BSD or Open BSD? Which one? explorer1979 *BSD 5 12-15-2002 12:26 PM
Gnome-Terminal non root issues natto34 Linux - Software 6 07-15-2002 10:08 PM

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

All times are GMT -5. The time now is 09:29 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