Unix Technical Forum

Using PROFTPD and want a user to log in without valid shell

This is a discussion on Using PROFTPD and want a user to log in without valid shell within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I have ProFTPD running on my 9.1 box and want to put a users home directory in the web ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 07:54 AM
Gecko
 
Posts: n/a
Default Using PROFTPD and want a user to log in without valid shell

I have ProFTPD running on my 9.1 box and want to put a users home
directory in the web folder as this user will be putting docs on our
website. I have successfully chrooted the ftp server to lock him in the
directory, however I do NOT want that user to be able to log in and get
a shell. Whenever I put an invalid shell in the /etc/passwd file I am
unable to log into FTP. When i put it to /bin/bash, I have no problems.
Is it possible to have a user login via FTP but not have a valid shell
or am I out of luck. I would have to believe the former, but I cant
seem to find a way.

Thanks,

Gecko
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 07:54 AM
=?ISO-8859-2?Q?=22Jacek_K=2E_B=B3aszkowski=22?=
 
Posts: n/a
Default Re: Using PROFTPD and want a user to log in without valid shell

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gecko wrote:
| I have ProFTPD running on my 9.1 box and want to put a users home
| directory in the web folder as this user will be putting docs on our
| website. I have successfully chrooted the ftp server to lock him in
the
| directory, however I do NOT want that user to be able to log in and get
| a shell. Whenever I put an invalid shell in the /etc/passwd file I am
| unable to log into FTP. When i put it to /bin/bash, I have no
problems.
| Is it possible to have a user login via FTP but not have a valid shell
| or am I out of luck. I would have to believe the former, but I cant
| seem to find a way.

http://www.proftpd.org/docs/directiv...alidShell.html
jkb


- --
Im wyzszy postawisz sobie cel, tym bardziej bedziesz samotny.
(R. Kapuscinski)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAGTrkQhBzeHEgRd4RAs5bAJ4sJGqUcMC2CKmd4Wdaqz T6oeCAMQCff6ed
tAII1LqGlMmBCvBrgn06mw4=
=kch8
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 07:54 AM
Mark Hill
 
Posts: n/a
Default Re: Using PROFTPD and want a user to log in without valid shell

On Thu, 29 Jan 2004 09:33:23 -0500,
Gecko <jason@eubulus.net> wrote:
> Whenever I put an invalid shell in the /etc/passwd file I am
> unable to log into FTP. When i put it to /bin/bash, I have no problems.
> Is it possible to have a user login via FTP but not have a valid shell
> or am I out of luck. I would have to believe the former, but I cant
> seem to find a way.


I'm not sure, but it might help to put your invlaid shell in to
/etc/shells


--
Mark Hill <usenet@mark.ukfsn.org> (Yahoo address not read)
GPG KeyID: 4A3B58AC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 07:54 AM
Gecko
 
Posts: n/a
Default Re: Using PROFTPD and want a user to log in without valid shell

Thank you very much Jacek.

I have been looking for that and just passed it over.

I really appreciate your message. Works great!

Jacek K. B?aszkowski wrote:



> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Gecko wrote:
> | I have ProFTPD running on my 9.1 box and want to put a users home
> | directory in the web folder as this user will be putting docs on our
> | website. I have successfully chrooted the ftp server to lock him in
> the
> | directory, however I do NOT want that user to be able to log in and get
> | a shell. Whenever I put an invalid shell in the /etc/passwd file I am
> | unable to log into FTP. When i put it to /bin/bash, I have no
> problems.
> | Is it possible to have a user login via FTP but not have a valid shell
> | or am I out of luck. I would have to believe the former, but I cant
> | seem to find a way.
>
> http://www.proftpd.org/docs/directiv...alidShell.html
>
> jkb
>
>
> - --
> Im wyzszy postawisz sobie cel, tym bardziej bedziesz samotny.
> (R. Kapuscinski)
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
>
> iD8DBQFAGTrkQhBzeHEgRd4RAs5bAJ4sJGqUcMC2CKmd4Wdaqz T6oeCAMQCff6ed
> tAII1LqGlMmBCvBrgn06mw4=
> =kch8
> -----END PGP SIGNATURE-----

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com