LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2012, 12:51 PM   #1
WhoAmI99
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
Question How to block users to open a session?


Hi,

I am on a Mandriva One 2011 x86 with Apache/mySQL/PHP/proftpd and KDE as GUI. All on a virtual machine (virtualbox). The goal is to practise myself.

So I created some users and I want them not to be able to open a session on the system. Those users were created only for my FTP access (proftpd). Their home are here: /var/www/html/user1 /var/www/html/user2... They are chroot on their home, everything works.

So how can I block them everywhere? (Like at the KDE login screen)...
I want them to use my FTP access ONLY, that's it, and only be able to access their home (/var/www/html/userX).

Sorry for my bad english. :/
Thanks for the help!
 
Old 03-17-2012, 01:32 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Set their login in the /etc/passwd file to be "/sbin/nologin". That will do the trick.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel module development: how to open block devices and use them (open, seek, read). eantoranz Linux - Kernel 41 07-08-2013 08:11 AM
[SOLVED] Slackware 13.1 beta1 "Cannot open ConsoleKit session: Unable to open session..." fl0 Slackware 2 05-13-2010 09:37 AM
Squid: cannot open session manager, cannot open network socket Ratibhan.upadhyay Linux - Server 1 01-27-2010 02:40 AM
Block access to CDROM for some users (or all users) emil_jfb Linux - Hardware 3 07-21-2008 12:21 PM
copying kde configuration for 2 users OR 2 users on 1 x session for vnc blackphiber Linux - General 0 02-26-2004 08:57 PM


All times are GMT -5. The time now is 02:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration