Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-04-2004, 11:21 AM   #1
LQ Newbie
Registered: Mar 2004
Location: United Kingdom
Posts: 21

Rep: Reputation: 15
adding users


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, 11:26 AM   #2
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, 11:28 AM   #3
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, 11:30 AM   #4
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).


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 12:33 PM
Adding New Users guygriffiths Linux - General 4 10-13-2003 10:11 AM
Adding many users? ricardocastro Programming 4 02-19-2002 01:22 PM
Adding new users Fried Linux - Newbie 4 09-24-2001 10:37 AM
adding Users hextex Linux - Newbie 5 06-08-2001 03:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration