URN Logo
UNIX Resources » Linux » Linux Forum » Linux Security » Page.3 » Disable User In Unix
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
Disable User In Unix
Subject: Disable User In Unix
Author: wshamroukh    Posted: 2005-11-26 08:44:38    Length: 80 byte(s)
[Original] [Print] [Top]
How can i disable a user in the unix, i mean prevent him/her from logging in???
[Original] [Print] [Top]
Subject: Disable User In Unix
Author: caveman    Posted: 2005-11-26 19:25:55    Length: 109 byte(s)
[Original] [Print] [Top]
edit your /etc/passwd file and change there shell from /bin/bash or /bin/sh to /bin/false

Technology, The Outdoors and Adventures Through a Technocrats Eyes

[Original] [Print] [Top]
Subject: Disable User In Unix
Author: wshamroukh    Posted: 2005-11-30 04:12:17    Length: 259 byte(s)
[Original] [Print] [Top]
i did this but still the users i disabled them can get to their email accounts. By the way the server i am talking about is an email server and i don't want the users who left our company from getting in to our mail anymore. how can i do this?
[Original] [Print] [Top]
Subject: Disable User In Unix
Author: foobar47    Posted: 2005-11-30 04:21:52    Length: 142 byte(s)
[Original] [Print] [Top]
If user really won't connect anymore, simply delete the account...
Backup his /home if you want and userdel account !!  
Linux is like sex, it's better when it's free...
My WebPage
[Original] [Print] [Top]
Subject: Disable User In Unix
Author: EvilC0P    Posted: 2005-12-06 12:23:48    Length: 131 byte(s)
[Original] [Print] [Top]
either userdel
or put a diff password if u wanna keep the account in the database and change the shell so no one can log in.
[Original] [Print] [Top]
Subject: Disable User In Unix
Author: webfreakzef    Posted: 2005-12-18 14:14:35    Length: 95 byte(s)
[Original] [Print] [Top]
passwd -l  $USER # lock user account
passwd -u $USER # unlock user account
[Original] [Print] [Top]
Subject: Disable User In Unix
Author: Nikesh    Posted: 2006-04-05 07:22:09    Length: 99 byte(s)
[Original] [Print] [Top]
Lock the user account : usermod -L <username>

Unlock : usermod -U <username>
Check more at : http://linux-poison.blogspot.com
[Original] [Print] [Top]
« Previous thread
Setting A Root User Ip
Linux Security
Page. 3
Next thread »
How To Getapplication Name Of Packet

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:46:23, cost 0.035271883010864 ms.