LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-04-2003, 05:49 PM   #1
b_usa
Member
 
Registered: Feb 2003
Location: Springfield, OR
Posts: 30

Rep: Reputation: 15
need to adduser(s)


hole seniors and senioritas! greeetings form the good ol' U.S. of A.! I have just switched over my server to linux from win2k. Got apache running... got SSH running... now I need to add some users so the people I host for can SSH into their web directories... I hae read the man page and a plethora of other documents, but I cant seem to et this to work. I nned to add the user, set their password, set their home directory to their apache directory.... Can anyone give me a hand with this? (Also I would love to hear some suggestions on things I should be doing as a first time Linux web server administrator) thanks...

edit: I also need to learn a few user related commands, such as away to review the users and groups on my box, as well as see whos cureently logged in, etc...

Last edited by b_usa; 04-04-2003 at 05:51 PM.
 
Old 04-04-2003, 05:54 PM   #2
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
Use the 'useradd' program. check out 'man useradd' for the details, but it I think these are the options that might be usefull to you:
Code:
useradd -d <home_dir> -p <password> <login_name>
There's all kids of nifty stuff you can do with this program. If you want each new user to have any number of specific files in their home dir's by default, put those files in /etc/skel and use the '-m' switch (will also create the home dir if it doesn't exist)

good luck and have fun!
 
Old 04-04-2003, 05:56 PM   #3
PTBmilo
Member
 
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
The users and groups are stored in the /etc/passwd and /etc/group files respectively (actually useradd just adds lines to these files... you can do it by hand if you want).

If you want to see who is logged on, use either 'who' or 'finger'
 
Old 04-04-2003, 08:40 PM   #4
b_usa
Member
 
Registered: Feb 2003
Location: Springfield, OR
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks you that is exactly what I needed...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adduser jp_ Linux - General 6 10-18-2005 03:11 PM
adduser bally Linux - General 7 08-09-2004 02:28 PM
adduser trophy Red Hat 1 05-01-2004 10:11 AM
adduser teqno Linux - Newbie 5 12-08-2003 01:26 PM
Adduser - xmdms Linux - Newbie 3 10-23-2003 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:23 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