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. |
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é |
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. |
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.
|
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: |
Code:
Example 8-9. Adding Somebody to a Group Using pw(8) Source: http://www.freebsd.org/doc/en_US.ISO...rs-groups.html |
> 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. |