Operating Systems > Linux and UNIX

banning users

(1/2) > >>

Paladin9:
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?

mobrien_12:
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.

KernelPanic:
Slackware doesn't actually have an /sbin/nologin, but you can copy it from RedHat.

Paladin9:

quote:Originally posted by Tux:
Slackware doesn't actually have an /sbin/nologin, but you can copy it from RedHat.
--- End quote ---


I tried that in slackware and it worked, however it prevented those users from logging in to proftpd.

Kintaro:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version