LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 11-11-2003, 01:40 PM   #1
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
Smile FreeBSD telnet, ssh problem


hello

how are u all

i am new to bsd world. just installed freebsd 4.4.
i want to now how to allow remote root logins to freebsd box. in linux we just need to add pts/x lines in /etc/securetty but how to do this in Freebsd.

it allows us to login from any other user account except root.but when we do "su" it gives error that not in "wheel" group.i edited the "/etc/passwd" and make it the member of " wheel " group(setted the group id 0 ) but it didnt worked. users also can do "su" when login locally.

another problem is this that i changed the root default shell to "/usr/local/bin/bash" in "/etc/passwd" but it still gets the "csh" when login.it worked for other users but why not for root.

i will be very greatful for ur replies.

thanks
usman.
 
Old 11-11-2003, 01:48 PM   #2
Iturbide
Member
 
Registered: Aug 2003
Location: The Hague, The Netherlands
Distribution: Mandrake 9something, Gentoo
Posts: 48

Rep: Reputation: 15
Hi,

IIRC you'll find that defined in /etc/sshd.conf (or somesuch place.) You should see an entry that disallows root logins. Do the obvious and restart sshd.

Dunno about the other thing, though. Perhaps google a bit?

cheerio,

René
 
Old 11-11-2003, 02:56 PM   #3
lujan
Member
 
Registered: Sep 2003
Distribution: Ubuntu, Debian Sarge, Mac OS X, FreeBSD
Posts: 45

Rep: Reputation: 16
try (as root) running chsh USERNAME

it allows you to edit all the details and then updates them so they work. AFAIK just editing /etc/group isn't enough anymore.
 
Old 11-11-2003, 03:56 PM   #4
penguinz
Member
 
Registered: Feb 2003
Posts: 48

Rep: Reputation: 15
Do nopt enable Telnet. This is very insecure. Also would recommend against giving root ssh access. Just add your user to the wheel group. SSH in with you username and then su to root.
 
Old 11-14-2003, 02:30 PM   #5
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
so the summary is

1. " In FreeBSD changing /etc/passwd does not work "

2. " it is only made to show information."

so from where system reads the information about a specific user??
 
Old 11-14-2003, 04:28 PM   #6
penguinz
Member
 
Registered: Feb 2003
Posts: 48

Rep: Reputation: 15
Code:
Example 8-9. Adding Somebody to a Group Using pw(8)

# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
teamtwo:*:1100:jru




The argument to the -M option is a comma-delimited list of users who are members of
 the group. From the preceding sections, we know that the password file also contains a
 group for each user. The latter (the user) is automatically added to the group list by the 
system; the user will not show up as a member when using the groupshow command to 
pw(8), but will show up when the information is queried via id(1) or similar tool. In other 
words, pw(8) only manipulates the /etc/group file; it will never attempt to read 
additionally data from /etc/passwd.

Source: http://www.freebsd.org/doc/en_US.ISO...rs-groups.html
 
Old 11-15-2003, 07:50 PM   #7
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
> so the summary is
> 1. " In FreeBSD changing /etc/passwd does not work "

I wonder why not?
I also use FreeBSD 4.4, and I always make such changes successfully by directly editing /etc/passwd and/or /etc/group.
I think adding the users to the wheel group in /etc/group should work in FreeBSD 4.4.

Though I know the others gave you a better tip.

Last edited by J_Szucs; 11-15-2003 at 07:54 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
printing during a telnet session in freebsd jedimastermopar *BSD 5 08-06-2004 11:55 AM
ssh and telnet problem dbratton Linux - Newbie 0 03-17-2004 01:45 AM
telnet banner freebsd? evilchild *BSD 2 01-10-2004 04:30 AM
Strange! SSH and Telnet login problem McSmooth Linux - General 7 10-03-2003 09:24 AM
Telnet and SSH Rampage2884 Linux - Networking 3 04-30-2002 02:31 PM


All times are GMT -5. The time now is 02:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration