Stop Microsoft

Operating Systems => Linux and UNIX => Topic started by: Paladin9 on 7 March 2004, 02:08

Title: banning users
Post 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?
Title: banning users
Post by: mobrien_12 on 7 March 2004, 02:27
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.
Title: banning users
Post by: KernelPanic on 7 March 2004, 03:13
Slackware doesn't actually have an /sbin/nologin, but you can copy it from RedHat.
Title: banning users
Post by: Paladin9 on 7 March 2004, 04:48
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.
Title: banning users
Post by: Kintaro on 7 March 2004, 07:42
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.
Title: banning users
Post by: Kintaro on 7 March 2004, 07:58
1 vote for bin