LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2004, 12:21 PM   #1
Lucasite
LQ Newbie
 
Registered: Mar 2004
Location: United Kingdom
Posts: 21

Rep: Reputation: 15
adding users


Hi,

ok, this is a complete newbie question.

If I add a user, i enter the command useradd joe .
Which is fine, it works.
However i cant login using that user account, password not accepted.
So, I tried using the command usermod but i just cannot for the life of me work out the parameters.
If i enter the command usermod joe -p donut to change user Joe's password to donut, its wont except it.

One other question, if I want this user only to be able to access one directory, do i use the command chmod, and can someone provide an example of using it?


Put me out of my misery please!


Many thanks
 
Old 03-04-2004, 12:26 PM   #2
gregaryh
Member
 
Registered: Jan 2004
Location: Utah USA
Distribution: SuSE Pro 9.0
Posts: 43

Rep: Reputation: 15
use passwd joe to change the password.
Which distro are you using? Each one has different aliases for adding users and setting up accounts.
 
Old 03-04-2004, 12:28 PM   #3
Lucasite
LQ Newbie
 
Registered: Mar 2004
Location: United Kingdom
Posts: 21

Original Poster
Rep: Reputation: 15
Im using RH 9. Havent installed X or anything, cus I just want to use it as a server.

So I guess I got to become good at console admin !
 
Old 03-04-2004, 12:30 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
To disable 'passwd -d joe'. As root of course. I think you can change it via 'passwd joe'.

For chmod:
To let everyone read: chmod a+r the_dir
To only let joe read, you will have to make a group for him (and other things).
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding new users Brian Du Preez Linux - Newbie 1 10-04-2005 01:33 PM
Adding New Users guygriffiths Linux - General 4 10-13-2003 11:11 AM
Adding many users? ricardocastro Programming 4 02-19-2002 02:22 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 11:37 AM
adding Users hextex Linux - Newbie 5 06-08-2001 04:54 AM


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