LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-29-2004, 04:30 PM   #1
manon
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Posts: 2

Rep: Reputation: 0
Post Adding user and groups


Hi all,

Maybe the following questions are stupid, but this is a newbie forum after all, so let's just get started with it.

I'm running Fedora now, and I want to create a new user, specified in a certain group, with a specified home-dir.

Like this :

user: trix
pasw: pasw
name: John Doe
groups : trix, Doe

I also want to create a homedir /export/home0/trix for this user.

What I managed to do up untill now is this :

* created user trix, assigned a password and name (John Doe). The trix group was added.
* created a group called Doe

So, finally my questions :

* how do I add user trix to the Doe group ?
* how do I set a homedir for this user to /export/home0/trix ?

Thanks for your help !

manon
 
Old 03-29-2004, 04:47 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, and welcome to LQ ...


Well, if you had first created the group using
groupadd
and then the userd using
useradd
it would all have been easy :)

Now you'll need to:
useradd -g trix -G trix,Doe trix

:}


Cheers,
Tink
 
Old 04-21-2004, 10:12 PM   #3
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Rep: Reputation: 30
Or you could simply useradd, groupadd and go to /etc/group add your user on the group of trix, doe
 
Old 04-26-2004, 01:14 PM   #4
manon
LQ Newbie
 
Registered: Mar 2004
Location: Belgium
Posts: 2

Original Poster
Rep: Reputation: 0
thanks a lot ! :-)

-m-
 
  


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
creating groups, adding users, and setting permissions bowie101 Linux - Newbie 2 11-23-2005 01:42 PM
viewing, adding(to), deleting(from) groups chibi Linux - Newbie 6 10-16-2005 09:38 PM
Adding more groups to files djchris Linux - Security 1 07-27-2005 11:36 AM
Simple script for adding groups to Linux kenji1903 Programming 20 06-03-2004 11:14 PM
Adding secondary groups thepurpleblob Linux - General 1 09-03-2003 11:19 AM


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