Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!newsfeed.internetmci.com!newsreader.sprintlink.net!news.sprintlink.net!news-pen-4.sprintlink.net!news.cirrus.com!usenet From: Clint Wolff <clint_w@colorado.cirrus.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: PPP & Shell Accnts. how to? Date: Thu, 25 Jul 1996 08:59:01 -0600 Organization: Cirrus Logic, Inc. Lines: 45 Message-ID: <31F78BB5.41C67EA6@colorado.cirrus.com> References: <31F49024.6618@mail.hon.hn> NNTP-Posting-Host: star.corp.cirrus.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (X11; I; SunOS 4.1.3_U1 sun4m) Samuel E. Romero wrote: ; ; I'm trying to setup an ISP server using FreeBSD 2.1.5, already have the ; link to my ISP, and I want to offer both PPP and Shell accounts, like ; this: ; ; PPP accounts (group pppusr), can't have access to the server through, ; telnet or ftp, even from other servers (so they can only connect to ; the services they have access to, like e-mail, even from other ; servers, or their machines). They only use the account to surf the net ; and e-mail. ; ; Shell accounts (group shlusr), must have access to telnet, ftp and all ; the other stuff, even ppp if they want. ; ; I want to setup the machine (8+ incoming modems), so when a pppusr logs ; in, the account will connect trough ppp (pppd, iijppp, slirp, whatever), ; but when a shlusr user logs in, it will be presented a shell prompt (as ; a normal user), both types of users will call at the same number and the ; server will decide what to do on the type of user (ppp or shl). ; ; How can I setup this, or where can I find the info to do it?. ; ; Thanks. Does your ISP know you are going to do this? Usually, they will assign one IP address to your machine, and route incoming packets with that address to it. If you attach more machines (PPP/SLIP/ETHERNET/...) you need more IP addresses, and your machine has to provide routing support for them. This strikes me as a non-trivial task... However, to select between shell or PPP account is pretty easy. In the /etc/passwd file, change the :/bin/sh: to :/usr/sbin/pppd: for the PPP users. When they log in, the system will run the proper "shell" for them... Hope this helps... clint -- Underscores added to return address to defeat advertising engines. clintw@colorado.cirrus.com /* The gene pool could use a little chlorine. */ 668: The Neighbor of the Beast -- Emo Phillips