Stop Microsoft
Operating Systems => Linux and UNIX => Topic started by: Paladin9 on 7 March 2004, 02:08
-
how do I prevent users from actually being able to login in to slackware? I want the users to be able to access stuff over the network, but I do not want them login into the slackware server itself. Another question; I know how to "jail" users to their home directory in proftpd, but how do I jail only some users and not all of them?
-
To give a user access to everything but a shell prompt, edit the /etc/passwd file and replace their shell (e.g. /bin/bash) with /sbin/nologin.
Not sure about the proftpd jailing question.. I stopped using any form of FTPD years ago.
-
Slackware doesn't actually have an /sbin/nologin, but you can copy it from RedHat.
-
quote:
Originally posted by Tux:
Slackware doesn't actually have an /sbin/nologin, but you can copy it from RedHat.
I tried that in slackware and it worked, however it prevented those users from logging in to proftpd.
-
You could probably put symlinks in the home directorys to the other stuff you want them to accses.
eg, if you wanted user "jesus" to accses /bible.
ln -s /home/jesus/bible /bible
or somthing like that.
-
1 vote for bin