Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

Adding users

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
19 posts • Page 1 of 1
Author
Message
dave
n00b
n00b
Posts: 16
Joined: Sat Apr 13, 2002 1:54 pm
Location: Illinois

Adding users

  • Quote

Post by dave » Sat Apr 13, 2002 2:13 pm

Hi all. Have gentoo installed no problem, and have been running around as root for a bit. Tried adduser myusername, but was given warnings about templates, etc. What do I need to do to add a user and give them everything they need, assign them to proper groups (ie, add them to the wheel group if they need to su, etc)?

Thanks a ton!
Top
gschneider
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 81
Joined: Wed Apr 10, 2002 11:56 am
Location: Rostock, Germany
Contact:
Contact gschneider
Website

  • Quote

Post by gschneider » Sat Apr 13, 2002 3:04 pm

man username

for starters:

Code: Select all

adduser -g users -G wheel -d /home/username -s /bin/bash -c "Full Name" -m username
param -m is important, it creates the home directory (given with -d) and copies all files from /et/skel.

then run

Code: Select all

passwd username
and enter a password for the user.

Regards,
Gerald
Last edited by gschneider on Sat Apr 13, 2002 3:08 pm, edited 1 time in total.
/(bb|[^b]{2})/
Top
Nitro
Bodhisattva
Bodhisattva
User avatar
Posts: 660
Joined: Mon Apr 08, 2002 11:20 pm
Location: San Francisco
Contact:
Contact Nitro
Website

  • Quote

Post by Nitro » Sat Apr 13, 2002 3:06 pm

I suggest that you look at

Code: Select all

man useradd
it will show you all kinds of information about how to use the command.

Is the error you are getting:

Code: Select all

useradd: warning: CREATE_HOME not supported, please use -m instead.
The CREATE_HOME is little feature of the useradd used on RedHat and Mandrake. It doesn't work in Gentoo. For somereason; however, it is include in the config file and generates an error. To get rid of the error edit /etc/login.defs and on (or near) line 10 you will find: 'CREATE_HOME no' simply put a comment at the beginning of the line.

Some other things you can do are:

Code: Select all

useradd username   # should run without error now
useradd -m username   # will create the users homedirectory in /home
useradd -g wheel username  # will add a user and set their primary group to wheel (defaults to users)
useradd -G group1,group2  # sets the seconday groups
passwd username   # will set a password for username, this is needed to actually login
And, if you wish to modify a user after adding them, use the usermod command, you can read more about that in

Code: Select all

man usermod
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Top
dave
n00b
n00b
Posts: 16
Joined: Sat Apr 13, 2002 1:54 pm
Location: Illinois

Thanks everyone!

  • Quote

Post by dave » Sat Apr 13, 2002 6:40 pm

I appreciate all of the help, and have to admit this is a great community (and so far a killer distro)! :)
Top
danielrm26
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 92
Joined: Thu Apr 18, 2002 7:18 am

Superadduser...

  • Quote

Post by danielrm26 » Thu Apr 18, 2002 8:03 am

One of the guys in #gentoo hooked me up so I am passing it along to you guys.

emerge superadduser

That is a user adding script that will prompt you for most of the important paramaters. Then just make an alias to adduser or whatevery you want to type to execute it.

:)
dmiessler.com -- grep understanding knowledge
Top
freefall
Tux's lil' helper
Tux's lil' helper
Posts: 89
Joined: Sat Apr 13, 2002 12:11 pm

  • Quote

Post by freefall » Thu Apr 18, 2002 10:31 am

emerge superadduser actually works now. It didn't last week and now I have begun to like useradd.
Top
static
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Thu Apr 18, 2002 6:05 pm
Location: Canada

  • Quote

Post by static » Tue Apr 23, 2002 3:14 pm

What is this wheel group? static will need to be part of group wheel to be able to su to root?
Gentoo and Doom III. 'Nuff Said.
_______________________________________
Top
klieber
Bodhisattva
Bodhisattva
User avatar
Posts: 3657
Joined: Wed Apr 17, 2002 4:48 pm
Location: San Francisco, CA
Contact:
Contact klieber
Website

  • Quote

Post by klieber » Tue Apr 23, 2002 3:33 pm

static wrote:What is this wheel group? static will need to be part of group wheel to be able to su to root?
My understanding is that membership in the wheel group gives you the ability to su. I'm sure it has other uses, but I believe that's the primary one.

--kurt
The problem with political jokes is that they get elected
Top
Lemma
Guru
Guru
User avatar
Posts: 416
Joined: Fri Apr 19, 2002 7:02 pm
Location: Uppsala, Sweden

  • Quote

Post by Lemma » Sun May 05, 2002 4:25 pm

The different user-groups that there are in this dist, how do i track them down? (So I can use them, ex wheel, cdrw and audio, what do?)
/Lemma
Always make it as simple as possible, but no simpler
/Einstein
Top
klieber
Bodhisattva
Bodhisattva
User avatar
Posts: 3657
Joined: Wed Apr 17, 2002 4:48 pm
Location: San Francisco, CA
Contact:
Contact klieber
Website

  • Quote

Post by klieber » Sun May 05, 2002 4:30 pm

Lemma wrote:The different user-groups that there are in this dist, how do i track them down?

Code: Select all

cat /etc/group
(or replace "cat" with your favorite pager)

--kurt
The problem with political jokes is that they get elected
Top
LosD
n00b
n00b
User avatar
Posts: 61
Joined: Wed Jun 12, 2002 4:30 pm
Location: Taastrup, Denmark

  • Quote

Post by LosD » Wed Feb 05, 2003 4:55 am

static wrote:What is this wheel group? static will need to be part of group wheel to be able to su to root?
wheel is a group used for people with administrator (or "semi-administrator") privileges...

Common uses are su, sudo, samba write access to some shares, and whatever else you want to use it for... (or, AFAIK, in the case of su and maybe some other commands, is forced to use it for).

I think the name is from the *BSD's...
Dennis
Top
papaC
n00b
n00b
Posts: 19
Joined: Thu Apr 25, 2002 12:46 pm
Location: Florida

  • Quote

Post by papaC » Tue Feb 18, 2003 9:00 pm

And how to add a user that can only login if they are seated in front of the machine? I want to add some people to be able to login to my main box to use desktop apps, games, etc. But don't want them to be able to login over the network.
Top
sarnold
Developer
Developer
User avatar
Posts: 115
Joined: Thu Nov 28, 2002 3:22 am
Location: California
Contact:
Contact sarnold
Website

  • Quote

Post by sarnold » Mon Feb 24, 2003 8:09 pm

papaC wrote:And how to add a user that can only login if they are seated in front of the machine? I want to add some people to be able to login to my main box to use desktop apps, games, etc. But don't want them to be able to login over the network.
Try /etc/login.access for that...
Top
ollie
n00b
n00b
User avatar
Posts: 35
Joined: Sun Nov 24, 2002 8:24 pm

  • Quote

Post by ollie » Wed Feb 26, 2003 9:12 pm

Code: Select all

emerge superadduser
;)
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Wed Feb 26, 2003 9:28 pm

emerge superadduser had already been suggested.
Quis separabit? Quo animo?
Top
MacMasta
Guru
Guru
User avatar
Posts: 545
Joined: Thu Apr 18, 2002 5:29 am
Location: Anchorage, AK

  • Quote

Post by MacMasta » Wed Feb 26, 2003 10:33 pm

Actually BSDs (and Solaris) use the operator group, not wheel...


I always used:

Code: Select all

#useradd -g wheel -G othergroup1, othergroup2 -d /home/user/ -s /bin/bash -c Name -m -k /etc/skel username
and then passwd username.

~Mac~
Top
modal
Apprentice
Apprentice
User avatar
Posts: 277
Joined: Wed Oct 02, 2002 6:05 am

  • Quote

Post by modal » Wed Feb 26, 2003 11:41 pm

I've always used superadduser with gentoo, it's been great. But, i've heard that it has quite a bit of functionality problems ie., pretending to accept certain information, when in fact it should spit out an error, and other things. (unfortunately i'm not sure about them, since i'm not the one who was talking about them on #gentoo)
Does anyone know of a port from BSD's user adding program that is much like superadduser?
Top
golemB
n00b
n00b
User avatar
Posts: 18
Joined: Fri Mar 07, 2003 3:51 am
Location: New York, NY

still not a player

  • Quote

Post by golemB » Wed Apr 16, 2003 4:42 pm

I tried out the helpful hints in this thread, and it worked fine - with a hitch.

I got my system up and running with Gentoo by preserving my /home filesystem (with just myself as the primary user) and wiping out the / and other filesystems. I got KDE up as root (took a lonnnng time) and then I tried to "useradd" myself in, using:

Code: Select all

useradd -g wheel -G floppy,cdrw,audio -d /home/myusername -c "My Name" myusername
When I try to "su - myusername" it hangs indefinitely, and same problem with plain "su myusername". I tried the same thing (this time with the -m flag to actually create home dir) for "myusername2" and that worked fine, and I can become that user with no problem.
Top
golemB
n00b
n00b
User avatar
Posts: 18
Joined: Fri Mar 07, 2003 3:51 am
Location: New York, NY

chown saves the day!

  • Quote

Post by golemB » Wed Apr 16, 2003 5:44 pm

Never mind - I realized afterwards that I had to chown -R the /home/myusername directory. Odd that su dies without ownership of the home dir.
Top
Post Reply

19 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic