Mateen Ahmed

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 14 June 2013

How To Add a non-login User in Linux so that he/she doesn't have shell.

Posted on 04:50 by Unknown


useradd & usermod commands are used to add and modify the users in linux. When invoked without the -D option, the useradd command creates a new user account using the values specified on the command line plus the default values from the system. Depending on command line options, the useradd command will update system files and may also create the new user's home directory and copy initial files.


By default, a group will also be created for the new user



Syntax of useradd command :



# useradd [options] <user-name>


Options :- 
-c comment
-d home_dir
-e expire_date
-G Secondary group
-s shell
-u uid
 



Example :


Syntax of usermod :



# usermod <options> <user-name>



This command is used to modify the existing users. Options will be same as of “useradd” command


Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

Blog Archive

  • ▼  2013 (19)
    • ►  July (1)
    • ▼  June (6)
      • Most Common Apache Tuning Parameters :
      • How to Assign the IP Address and Default gateway i...
      • Key Based / Password Less SSH Authentication on Li...
      • How To Add a non-login User in Linux so that he/sh...
      • What is yum and how do I use it?
      • Set up yum repository for locally-mounted DVD onRH...
    • ►  May (1)
    • ►  April (11)
  • ►  2012 (12)
    • ►  December (11)
    • ►  November (1)
Powered by Blogger.

About Me

Unknown
View my complete profile