From: "Joseph C. Lininger" <jbahm@pcdesk.net>
To: "Speakup is a screen review system for Linux." <speakup@braille.uwo.ca>
Subject: Re: Shell Accounts
Date: Wed, 3 Dec 2003 20:25:45 -0700 [thread overview]
Message-ID: <001501c3ba16$500fde90$6700a8c0@morgan> (raw)
In-Reply-To: <006701c3b994$2a494890$6901a8c0@ism.can.ibm.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
The way I do this is as follows. First, add the following to the end
of your /etc/shells file.
/bin/nologin
This way, your ftp server will consider /bin/nologin a valid shell.
Now, create /bin/nologin as follows:
#!/usr/bin/tail +2
Sorry, but logins for this account are disabled.
It is being used only to provide a service.
Now make this executable with this command:
chmod 755 /bin/nologin
Finally, set the shell of the account you want to block logins for to
/bin/nologin.
There are other ways to do this, but I like this one because it
provides an explanatory message to those trying to log in. Anyone
attempting to login to the account will receive the following
message:
Sorry, but logins for this account are disabled.
It is being used only to provide a service.
Once the message is printed, the connection will be promptly
terminated.
- ---
Joseph C. Lininger
jbahm@pcdesk.net
- ----- Original Message -----
From: "Rejean Proulx" <rejean@interfree.ca>
To: <speakup@braille.uwo.ca>
Sent: Wednesday, December 03, 2003 4:54 AM
Subject: Shell Accounts
> I have an account that I want to use for ftp only and I don't want
> people logging in to. How to I stop them?
>
> Rejean Proulx
> Visit my family at http://interfree.ca
> MSN is: rejp@rogers.com
> Ham License VA3REJ
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3
iQA/AwUBP86pNyenap9Jqj2wEQIJ6wCaAr0XXT4C25od2hMgbTF/ah13+4AAn018
jn+LkFTDM44J5JmfCsjqa9XJ
=1NGL
-----END PGP SIGNATURE-----
prev parent reply other threads:[~ UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
Rejean Proulx
` Shaun Oliver
` Rejean Proulx
` Shaun Oliver
` Joseph C. Lininger
` Ari Moisio
` Rejean Proulx
` Joseph C. Lininger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='001501c3ba16$500fde90$6700a8c0@morgan' \
--to=jbahm@pcdesk.net \
--cc=speakup@braille.uwo.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).