LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-17-2004, 10:14 AM   #1
omashhour
LQ Newbie
 
Registered: May 2004
Posts: 10

Rep: Reputation: 0
how can i add users to ssh


how can i add a username and password for new remote users and in which file?
 
Old 12-17-2004, 10:23 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

if u want to use the command line mode then have a look at

man useradd

regards
 
Old 12-17-2004, 10:26 AM   #3
omashhour
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
can you give an example please of how to use this command
 
Old 12-17-2004, 11:06 AM   #4
omashhour
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
thanks i managed to add users
but i cant delete them using userdel -r <username>
i get this error
userdel: unknown user <username>
 
Old 12-17-2004, 11:29 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

try

userdel <username>

and did u create the required home directory while creating the users???

regards
 
Old 12-17-2004, 02:51 PM   #6
omashhour
LQ Newbie
 
Registered: May 2004
Posts: 10

Original Poster
Rep: Reputation: 0
no i didnt how can this be done?
 
Old 12-17-2004, 02:59 PM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
have a look at the man page of useradd

meanwhile

useradd test -d /home/test -p gaurav -s /bin/bash -G gaurav

regards
 
  


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
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 02:50 AM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 02:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 03:09 AM
how to add SSH users? LammaDog Linux - Security 5 09-13-2001 07:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:43 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
Open Source Consulting | Domain Registration