LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2004, 12:16 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
user can't login


Hi there. I want to prevene some users for logging in to the machine. I dont wat to disable their accounts. For example lets think the apache user. What i must add to the /etc/passwd so no shell corresponds to the user?
Thx
 
Old 03-13-2004, 05:23 AM   #2
tk31337
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Linux Mint
Posts: 194

Rep: Reputation: 32
It's pretty simple to deduce, look at these two entries for example:

user:x:500:100::/home/user:/bin/bash
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown

Obviously, the shell is the part at the end. I think standard practice is to replace the last part with "/bin/false". If you want a graphical way to do this, check out linuxconf or your distro's tools (such as Drakconf for Mandrake, or YaST for SuSE, both very simple with which to administrate user accounts).
 
  


Reply



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
Root login but no user login on samba Cybercool Linux - Newbie 3 07-13-2011 05:36 AM
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:41 PM.

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
Open Source Consulting | Domain Registration