LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   FreeBSD telnet, ssh problem (https://www.linuxquestions.org/questions/%2Absd-17/freebsd-telnet-ssh-problem-114881/)

newpenguin 11-11-2003 01:40 PM

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.

Iturbide 11-11-2003 01:48 PM

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é

lujan 11-11-2003 02:56 PM

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.

penguinz 11-11-2003 03:56 PM

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.

newpenguin 11-14-2003 02:30 PM

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?? :confused:

penguinz 11-14-2003 04:28 PM

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

J_Szucs 11-15-2003 07:50 PM

> 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.


All times are GMT -5. The time now is 05:20 AM.