Re: [SLUG] user rights in Linux

From: Steven Johnson (alinuxguru@hotmail.com)
Date: Wed Oct 24 2001 - 20:59:58 EDT


Well, I had not done this in a long time so my information may not be
up-to-date.

I like to be cute, so I wrote my own message for /bin/noshell

1. Just take this source and compile it as /bin/noshell or use the existing
one if available.

2. Add /bin/noshell to /etc/shells

3. Change the users shell in the password file to use /bin/noshell instead
of /bin/whatever

4. Refer to the documentation that comes with your ftp server. My
particular ftp server allowed me to lock in the user to their home directory
by adding a . in the password file. I.e. to lock in a user who's home
directory is /home/users/johnnie I change that to /home/users/./johnnie

#include <unistd.h>

#define MSG "You do not have access to a shell. Please contact Your local
MIS H
elp Desk\n\n"

#define IMG "\n\t*------------------------ My Company, Inc.
--------------------
--*\n\t|................................................................|\n\t|.A
ll logins are monitored... //// ...All logins are
monitored...|\n\t|............
.............. 0(o o)0
.............................|\n\t*----------------------
--oOO--(_)--OOo---------------------------*\n\n"

void main()
{
        write(1,IMG,strlen(IMG));
        write(1,MSG,strlen(MSG));
        exit(0);
}

----Original Message Follows----
From: "Patrick Grantham" <pwgrant@yahoo.com>
Reply-To: slug@nks.net
To: <slug@nks.net>
Subject: [SLUG] user rights in Linux
Date: Wed, 24 Oct 2001 16:21:30 -0400

This topic is about the best way to control access. I only want a user to
only have ftp (not telnet) access to there own home directory. How would
one approach this?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:45:27 EDT